303303- [ Get] ( #securitycontacts_get )
304304- [ List] ( #securitycontacts_list )
305305
306+ ## SecurityOperators
307+
308+ - [ CreateOrUpdate] ( #securityoperators_createorupdate )
309+ - [ Delete] ( #securityoperators_delete )
310+ - [ Get] ( #securityoperators_get )
311+ - [ List] ( #securityoperators_list )
312+
306313## SecuritySolutions
307314
308315- [ Get] ( #securitysolutions_get )
@@ -4525,14 +4532,66 @@ public final class MdeOnboardingsListSamples {
45254532/* * Samples for Pricings Get. */
45264533public final class PricingsGetSamples {
45274534 /*
4528- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2022-03 -01/examples/Pricings/GetPricingByName_example .json
4535+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-01 -01/examples/Pricings/GetPricingByNameCloudPosture_example .json
45294536 */
45304537 /**
4531- * Sample code: Get pricings on subscription.
4538+ * Sample code: Get pricings on subscription - CloudPosture plan .
45324539 *
45334540 * @param manager Entry point to SecurityManager.
45344541 */
4535- public static void getPricingsOnSubscription (com.azure.resourcemanager.security. SecurityManager manager ) {
4542+ public static void getPricingsOnSubscriptionCloudPosturePlan (
4543+ com.azure.resourcemanager.security. SecurityManager manager ) {
4544+ manager. pricings(). getWithResponse(" CloudPosture" , com.azure.core.util. Context . NONE );
4545+ }
4546+
4547+ /*
4548+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-01-01/examples/Pricings/GetPricingByNameDns_example.json
4549+ */
4550+ /**
4551+ * Sample code: Get pricings on subscription - Dns plan.
4552+ *
4553+ * @param manager Entry point to SecurityManager.
4554+ */
4555+ public static void getPricingsOnSubscriptionDnsPlan (com.azure.resourcemanager.security. SecurityManager manager ) {
4556+ manager. pricings(). getWithResponse(" Dns" , com.azure.core.util. Context . NONE );
4557+ }
4558+
4559+ /*
4560+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-01-01/examples/Pricings/GetPricingByNameContainers_example.json
4561+ */
4562+ /**
4563+ * Sample code: Get pricings on subscription - Containers plan.
4564+ *
4565+ * @param manager Entry point to SecurityManager.
4566+ */
4567+ public static void getPricingsOnSubscriptionContainersPlan (
4568+ com.azure.resourcemanager.security. SecurityManager manager ) {
4569+ manager. pricings(). getWithResponse(" Containers" , com.azure.core.util. Context . NONE );
4570+ }
4571+
4572+ /*
4573+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-01-01/examples/Pricings/GetPricingByNameStorageAccounts_example.json
4574+ */
4575+ /**
4576+ * Sample code: Get pricings on subscription - StorageAccounts plan.
4577+ *
4578+ * @param manager Entry point to SecurityManager.
4579+ */
4580+ public static void getPricingsOnSubscriptionStorageAccountsPlan (
4581+ com.azure.resourcemanager.security. SecurityManager manager ) {
4582+ manager. pricings(). getWithResponse(" StorageAccounts" , com.azure.core.util. Context . NONE );
4583+ }
4584+
4585+ /*
4586+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-01-01/examples/Pricings/GetPricingByNameVirtualMachines_example.json
4587+ */
4588+ /**
4589+ * Sample code: Get pricings on subscription - VirtualMachines plan.
4590+ *
4591+ * @param manager Entry point to SecurityManager.
4592+ */
4593+ public static void getPricingsOnSubscriptionVirtualMachinesPlan (
4594+ com.azure.resourcemanager.security. SecurityManager manager ) {
45364595 manager. pricings(). getWithResponse(" VirtualMachines" , com.azure.core.util. Context . NONE );
45374596 }
45384597}
@@ -4544,7 +4603,7 @@ public final class PricingsGetSamples {
45444603/* * Samples for Pricings List. */
45454604public final class PricingsListSamples {
45464605 /*
4547- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2022-03 -01/examples/Pricings/ListPricings_example.json
4606+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-01 -01/examples/Pricings/ListPricings_example.json
45484607 */
45494608 /**
45504609 * Sample code: Get pricings on subscription.
@@ -4566,7 +4625,25 @@ import com.azure.resourcemanager.security.models.PricingTier;
45664625/* * Samples for Pricings Update. */
45674626public final class PricingsUpdateSamples {
45684627 /*
4569- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2022-03-01/examples/Pricings/PutPricingByName_example.json
4628+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-01-01/examples/Pricings/PutPricingByNamePartialSuccess_example.json
4629+ */
4630+ /**
4631+ * Sample code: Update pricing on subscription - partial success.
4632+ *
4633+ * @param manager Entry point to SecurityManager.
4634+ */
4635+ public static void updatePricingOnSubscriptionPartialSuccess (
4636+ com.azure.resourcemanager.security. SecurityManager manager ) {
4637+ manager
4638+ .pricings()
4639+ .updateWithResponse(
4640+ " CloudPosture" ,
4641+ new PricingInner (). withPricingTier(PricingTier . STANDARD ),
4642+ com.azure.core.util. Context . NONE );
4643+ }
4644+
4645+ /*
4646+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-01-01/examples/Pricings/PutPricingByName_example.json
45704647 */
45714648 /**
45724649 * Sample code: Update pricing on subscription.
@@ -4577,8 +4654,8 @@ public final class PricingsUpdateSamples {
45774654 manager
45784655 .pricings()
45794656 .updateWithResponse(
4580- " VirtualMachines " ,
4581- new PricingInner (). withPricingTier(PricingTier . STANDARD ). withSubPlan( " P2 " ) ,
4657+ " CloudPosture " ,
4658+ new PricingInner (). withPricingTier(PricingTier . STANDARD ),
45824659 com.azure.core.util. Context . NONE );
45834660 }
45844661}
@@ -4974,7 +5051,7 @@ import java.util.Map;
49745051/* * Samples for SecurityConnectors CreateOrUpdate. */
49755052public final class SecurityConnectorsCreateOrUpdateSamples {
49765053 /*
4977- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-08 -01-preview/examples/SecurityConnectors/PutSecurityConnector_example.json
5054+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-03 -01-preview/examples/SecurityConnectors/PutSecurityConnector_example.json
49785055 */
49795056 /**
49805057 * Sample code: Create or update a security connector.
@@ -5020,7 +5097,7 @@ public final class SecurityConnectorsCreateOrUpdateSamples {
50205097/* * Samples for SecurityConnectors Delete. */
50215098public final class SecurityConnectorsDeleteSamples {
50225099 /*
5023- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-08 -01-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json
5100+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-03 -01-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json
50245101 */
50255102 /**
50265103 * Sample code: Delete a security connector.
@@ -5041,7 +5118,7 @@ public final class SecurityConnectorsDeleteSamples {
50415118/* * Samples for SecurityConnectors GetByResourceGroup. */
50425119public final class SecurityConnectorsGetByResourceGroupSamples {
50435120 /*
5044- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-08 -01-preview/examples/SecurityConnectors/GetSecurityConnectorSingleResource_example.json
5121+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-03 -01-preview/examples/SecurityConnectors/GetSecurityConnectorSingleResource_example.json
50455122 */
50465123 /**
50475124 * Sample code: Retrieve a security connector.
@@ -5063,7 +5140,7 @@ public final class SecurityConnectorsGetByResourceGroupSamples {
50635140/* * Samples for SecurityConnectors List. */
50645141public final class SecurityConnectorsListSamples {
50655142 /*
5066- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-08 -01-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json
5143+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-03 -01-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json
50675144 */
50685145 /**
50695146 * Sample code: List all security connectors of a specified subscription.
@@ -5083,7 +5160,7 @@ public final class SecurityConnectorsListSamples {
50835160/* * Samples for SecurityConnectors ListByResourceGroup. */
50845161public final class SecurityConnectorsListByResourceGroupSamples {
50855162 /*
5086- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-08 -01-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json
5163+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-03 -01-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json
50875164 */
50885165 /**
50895166 * Sample code: List all security connectors of a specified resource group.
@@ -5112,7 +5189,7 @@ import java.util.Map;
51125189/* * Samples for SecurityConnectors Update. */
51135190public final class SecurityConnectorsUpdateSamples {
51145191 /*
5115- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-08 -01-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json
5192+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-03 -01-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json
51165193 */
51175194 /**
51185195 * Sample code: Update a security connector.
@@ -5251,6 +5328,93 @@ public final class SecurityContactsListSamples {
52515328}
52525329```
52535330
5331+ ### SecurityOperators_CreateOrUpdate
5332+
5333+ ``` java
5334+ /* * Samples for SecurityOperators CreateOrUpdate. */
5335+ public final class SecurityOperatorsCreateOrUpdateSamples {
5336+ /*
5337+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-01-01-preview/examples/SecurityOperators/PutSecurityOperatorByName_example.json
5338+ */
5339+ /**
5340+ * Sample code: Create a security operator on the given scope.
5341+ *
5342+ * @param manager Entry point to SecurityManager.
5343+ */
5344+ public static void createASecurityOperatorOnTheGivenScope (
5345+ com.azure.resourcemanager.security. SecurityManager manager ) {
5346+ manager
5347+ .securityOperators()
5348+ .createOrUpdateWithResponse(
5349+ " CloudPosture" , " DefenderCSPMSecurityOperator" , com.azure.core.util. Context . NONE );
5350+ }
5351+ }
5352+ ```
5353+
5354+ ### SecurityOperators_Delete
5355+
5356+ ``` java
5357+ /* * Samples for SecurityOperators Delete. */
5358+ public final class SecurityOperatorsDeleteSamples {
5359+ /*
5360+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-01-01-preview/examples/SecurityOperators/DeleteSecurityOperatorByName_example.json
5361+ */
5362+ /**
5363+ * Sample code: Delete SecurityOperator on subscription.
5364+ *
5365+ * @param manager Entry point to SecurityManager.
5366+ */
5367+ public static void deleteSecurityOperatorOnSubscription (
5368+ com.azure.resourcemanager.security. SecurityManager manager ) {
5369+ manager
5370+ .securityOperators()
5371+ .deleteByResourceGroupWithResponse(
5372+ " CloudPosture" , " DefenderCSPMSecurityOperator" , com.azure.core.util. Context . NONE );
5373+ }
5374+ }
5375+ ```
5376+
5377+ ### SecurityOperators_Get
5378+
5379+ ``` java
5380+ /* * Samples for SecurityOperators Get. */
5381+ public final class SecurityOperatorsGetSamples {
5382+ /*
5383+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-01-01-preview/examples/SecurityOperators/GetSecurityOperatorByName_example.json
5384+ */
5385+ /**
5386+ * Sample code: Get a specific security operator by scope and securityOperatorName.
5387+ *
5388+ * @param manager Entry point to SecurityManager.
5389+ */
5390+ public static void getASpecificSecurityOperatorByScopeAndSecurityOperatorName (
5391+ com.azure.resourcemanager.security. SecurityManager manager ) {
5392+ manager
5393+ .securityOperators()
5394+ .getWithResponse(" CloudPosture" , " DefenderCSPMSecurityOperator" , com.azure.core.util. Context . NONE );
5395+ }
5396+ }
5397+ ```
5398+
5399+ ### SecurityOperators_List
5400+
5401+ ``` java
5402+ /* * Samples for SecurityOperators List. */
5403+ public final class SecurityOperatorsListSamples {
5404+ /*
5405+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-01-01-preview/examples/SecurityOperators/ListSecurityOperators_example.json
5406+ */
5407+ /**
5408+ * Sample code: List SecurityOperators.
5409+ *
5410+ * @param manager Entry point to SecurityManager.
5411+ */
5412+ public static void listSecurityOperators (com.azure.resourcemanager.security. SecurityManager manager ) {
5413+ manager. securityOperators(). listWithResponse(" CloudPosture" , com.azure.core.util. Context . NONE );
5414+ }
5415+ }
5416+ ```
5417+
52545418### SecuritySolutions_Get
52555419
52565420``` java
0 commit comments