303
303
- [ Get] ( #securitycontacts_get )
304
304
- [ List] ( #securitycontacts_list )
305
305
306
+ ## SecurityOperators
307
+
308
+ - [ CreateOrUpdate] ( #securityoperators_createorupdate )
309
+ - [ Delete] ( #securityoperators_delete )
310
+ - [ Get] ( #securityoperators_get )
311
+ - [ List] ( #securityoperators_list )
312
+
306
313
## SecuritySolutions
307
314
308
315
- [ Get] ( #securitysolutions_get )
@@ -4525,14 +4532,66 @@ public final class MdeOnboardingsListSamples {
4525
4532
/* * Samples for Pricings Get. */
4526
4533
public final class PricingsGetSamples {
4527
4534
/*
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
4529
4536
*/
4530
4537
/**
4531
- * Sample code: Get pricings on subscription.
4538
+ * Sample code: Get pricings on subscription - CloudPosture plan .
4532
4539
*
4533
4540
* @param manager Entry point to SecurityManager.
4534
4541
*/
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 ) {
4536
4595
manager. pricings(). getWithResponse(" VirtualMachines" , com.azure.core.util. Context . NONE );
4537
4596
}
4538
4597
}
@@ -4544,7 +4603,7 @@ public final class PricingsGetSamples {
4544
4603
/* * Samples for Pricings List. */
4545
4604
public final class PricingsListSamples {
4546
4605
/*
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
4548
4607
*/
4549
4608
/**
4550
4609
* Sample code: Get pricings on subscription.
@@ -4566,7 +4625,25 @@ import com.azure.resourcemanager.security.models.PricingTier;
4566
4625
/* * Samples for Pricings Update. */
4567
4626
public final class PricingsUpdateSamples {
4568
4627
/*
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
4570
4647
*/
4571
4648
/**
4572
4649
* Sample code: Update pricing on subscription.
@@ -4577,8 +4654,8 @@ public final class PricingsUpdateSamples {
4577
4654
manager
4578
4655
.pricings()
4579
4656
.updateWithResponse(
4580
- " VirtualMachines " ,
4581
- new PricingInner (). withPricingTier(PricingTier . STANDARD ). withSubPlan( " P2 " ) ,
4657
+ " CloudPosture " ,
4658
+ new PricingInner (). withPricingTier(PricingTier . STANDARD ),
4582
4659
com.azure.core.util. Context . NONE );
4583
4660
}
4584
4661
}
@@ -4974,7 +5051,7 @@ import java.util.Map;
4974
5051
/* * Samples for SecurityConnectors CreateOrUpdate. */
4975
5052
public final class SecurityConnectorsCreateOrUpdateSamples {
4976
5053
/*
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
4978
5055
*/
4979
5056
/**
4980
5057
* Sample code: Create or update a security connector.
@@ -5020,7 +5097,7 @@ public final class SecurityConnectorsCreateOrUpdateSamples {
5020
5097
/* * Samples for SecurityConnectors Delete. */
5021
5098
public final class SecurityConnectorsDeleteSamples {
5022
5099
/*
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
5024
5101
*/
5025
5102
/**
5026
5103
* Sample code: Delete a security connector.
@@ -5041,7 +5118,7 @@ public final class SecurityConnectorsDeleteSamples {
5041
5118
/* * Samples for SecurityConnectors GetByResourceGroup. */
5042
5119
public final class SecurityConnectorsGetByResourceGroupSamples {
5043
5120
/*
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
5045
5122
*/
5046
5123
/**
5047
5124
* Sample code: Retrieve a security connector.
@@ -5063,7 +5140,7 @@ public final class SecurityConnectorsGetByResourceGroupSamples {
5063
5140
/* * Samples for SecurityConnectors List. */
5064
5141
public final class SecurityConnectorsListSamples {
5065
5142
/*
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
5067
5144
*/
5068
5145
/**
5069
5146
* Sample code: List all security connectors of a specified subscription.
@@ -5083,7 +5160,7 @@ public final class SecurityConnectorsListSamples {
5083
5160
/* * Samples for SecurityConnectors ListByResourceGroup. */
5084
5161
public final class SecurityConnectorsListByResourceGroupSamples {
5085
5162
/*
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
5087
5164
*/
5088
5165
/**
5089
5166
* Sample code: List all security connectors of a specified resource group.
@@ -5112,7 +5189,7 @@ import java.util.Map;
5112
5189
/* * Samples for SecurityConnectors Update. */
5113
5190
public final class SecurityConnectorsUpdateSamples {
5114
5191
/*
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
5116
5193
*/
5117
5194
/**
5118
5195
* Sample code: Update a security connector.
@@ -5251,6 +5328,93 @@ public final class SecurityContactsListSamples {
5251
5328
}
5252
5329
```
5253
5330
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
+
5254
5418
### SecuritySolutions_Get
5255
5419
5256
5420
``` java
0 commit comments