137
137
- [ List] ( #customentitystoreassignments_list )
138
138
- [ ListByResourceGroup] ( #customentitystoreassignments_listbyresourcegroup )
139
139
140
+ ## DefenderForStorage
141
+
142
+ - [ Create] ( #defenderforstorage_create )
143
+ - [ Get] ( #defenderforstorage_get )
144
+
140
145
## DeviceSecurityGroups
141
146
142
147
- [ CreateOrUpdate] ( #devicesecuritygroups_createorupdate )
172
177
- [ List] ( #governancerules_list )
173
178
- [ OperationResults] ( #governancerules_operationresults )
174
179
175
- ## HealthReportOperation
176
-
177
- - [ Get] ( #healthreportoperation_get )
178
-
179
180
## HealthReports
180
181
182
+ - [ Get] ( #healthreports_get )
181
183
- [ List] ( #healthreports_list )
182
184
183
185
## InformationProtectionPolicies
262
264
- [ Get] ( #regulatorycompliancestandards_get )
263
265
- [ List] ( #regulatorycompliancestandards_list )
264
266
267
+ ## ResourceProvider
268
+
269
+ - [ GetSensitivitySettings] ( #resourceprovider_getsensitivitysettings )
270
+ - [ UpdateSensitivitySettings] ( #resourceprovider_updatesensitivitysettings )
271
+
265
272
## SecureScoreControlDefinitions
266
273
267
274
- [ List] ( #securescorecontroldefinitions_list )
320
327
- [ List] ( #securitysolutionsreferencedata_list )
321
328
- [ ListByHomeRegion] ( #securitysolutionsreferencedata_listbyhomeregion )
322
329
330
+ ## SensitivitySettings
331
+
332
+ - [ List] ( #sensitivitysettings_list )
333
+
323
334
## ServerVulnerabilityAssessment
324
335
325
336
- [ CreateOrUpdate] ( #servervulnerabilityassessment_createorupdate )
326
337
- [ Delete] ( #servervulnerabilityassessment_delete )
327
338
- [ Get] ( #servervulnerabilityassessment_get )
328
339
- [ ListByExtendedResource] ( #servervulnerabilityassessment_listbyextendedresource )
329
340
341
+ ## ServerVulnerabilityAssessmentsSettings
342
+
343
+ - [ CreateOrUpdate] ( #servervulnerabilityassessmentssettings_createorupdate )
344
+ - [ Delete] ( #servervulnerabilityassessmentssettings_delete )
345
+ - [ Get] ( #servervulnerabilityassessmentssettings_get )
346
+ - [ List] ( #servervulnerabilityassessmentssettings_list )
347
+
330
348
## Settings
331
349
332
350
- [ Get] ( #settings_get )
@@ -2678,6 +2696,65 @@ public final class CustomEntityStoreAssignmentsListByResourceGroupSamples {
2678
2696
}
2679
2697
```
2680
2698
2699
+ ### DefenderForStorage_Create
2700
+
2701
+ ``` java
2702
+ import com.azure.resourcemanager.security.models.SettingNameAutoGenerated ;
2703
+
2704
+ /* * Samples for DefenderForStorage Create. */
2705
+ public final class DefenderForStorageCreateSamples {
2706
+ /*
2707
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-12-01-preview/examples/DefenderForStorage/PutDefenderForStorageSettings_example.json
2708
+ */
2709
+ /**
2710
+ * Sample code: Creates or updates the Defender for Storage settings on a specified resource.
2711
+ *
2712
+ * @param manager Entry point to SecurityManager.
2713
+ */
2714
+ public static void createsOrUpdatesTheDefenderForStorageSettingsOnASpecifiedResource (
2715
+ com.azure.resourcemanager.security. SecurityManager manager ) {
2716
+ manager
2717
+ .defenderForStorages()
2718
+ .define(SettingNameAutoGenerated . CURRENT )
2719
+ .withExistingResourceId(
2720
+ " subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Storage/storageAccounts/samplestorageaccount" )
2721
+ .withIsEnabled(true )
2722
+ .withOverrideSubscriptionLevelSettings(true )
2723
+ .withIsEnabledMalwareScanningIsEnabled(true )
2724
+ .withCapGBPerMonth(- 1 )
2725
+ .withIsEnabledSensitiveDataDiscoveryIsEnabled(true )
2726
+ .create();
2727
+ }
2728
+ }
2729
+ ```
2730
+
2731
+ ### DefenderForStorage_Get
2732
+
2733
+ ``` java
2734
+ import com.azure.resourcemanager.security.models.SettingNameAutoGenerated ;
2735
+
2736
+ /* * Samples for DefenderForStorage Get. */
2737
+ public final class DefenderForStorageGetSamples {
2738
+ /*
2739
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-12-01-preview/examples/DefenderForStorage/GetDefenderForStorageSettings_example.json
2740
+ */
2741
+ /**
2742
+ * Sample code: Gets the Defender for Storage settings for the specified resource.
2743
+ *
2744
+ * @param manager Entry point to SecurityManager.
2745
+ */
2746
+ public static void getsTheDefenderForStorageSettingsForTheSpecifiedResource (
2747
+ com.azure.resourcemanager.security. SecurityManager manager ) {
2748
+ manager
2749
+ .defenderForStorages()
2750
+ .getWithResponse(
2751
+ " subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Storage/storageAccounts/samplestorageaccount" ,
2752
+ SettingNameAutoGenerated . CURRENT ,
2753
+ com.azure.core.util. Context . NONE );
2754
+ }
2755
+ }
2756
+ ```
2757
+
2681
2758
### DeviceSecurityGroups_CreateOrUpdate
2682
2759
2683
2760
``` java
@@ -3488,13 +3565,13 @@ public final class GovernanceRulesOperationResultsSamples {
3488
3565
}
3489
3566
```
3490
3567
3491
- ### HealthReportOperation_Get
3568
+ ### HealthReports_Get
3492
3569
3493
3570
``` java
3494
- /* * Samples for HealthReportOperation Get. */
3495
- public final class HealthReportOperationGetSamples {
3571
+ /* * Samples for HealthReports Get. */
3572
+ public final class HealthReportsGetSamples {
3496
3573
/*
3497
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02 -01-preview/examples/HealthReports/GetHealthReport_example .json
3574
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-05 -01-preview/examples/HealthReports/GetHealthReports_example .json
3498
3575
*/
3499
3576
/**
3500
3577
* Sample code: Get health report of resource.
@@ -3503,7 +3580,7 @@ public final class HealthReportOperationGetSamples {
3503
3580
*/
3504
3581
public static void getHealthReportOfResource (com.azure.resourcemanager.security. SecurityManager manager ) {
3505
3582
manager
3506
- .healthReportOperations ()
3583
+ .healthReports ()
3507
3584
.getWithResponse(
3508
3585
" subscriptions/a1efb6ca-fbc5-4782-9aaa-5c7daded1ce2/resourcegroups/E2E-IBB0WX/providers/Microsoft.Security/securityconnectors/AwsConnectorAllOfferings" ,
3509
3586
" 909c629a-bf39-4521-8e4f-10b443a0bc02" ,
@@ -3518,7 +3595,7 @@ public final class HealthReportOperationGetSamples {
3518
3595
/* * Samples for HealthReports List. */
3519
3596
public final class HealthReportsListSamples {
3520
3597
/*
3521
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02 -01-preview/examples/HealthReports/ListHealthReports_example.json
3598
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-05 -01-preview/examples/HealthReports/ListHealthReports_example.json
3522
3599
*/
3523
3600
/**
3524
3601
* Sample code: List health reports.
@@ -4784,6 +4861,60 @@ public final class RegulatoryComplianceStandardsListSamples {
4784
4861
}
4785
4862
```
4786
4863
4864
+ ### ResourceProvider_GetSensitivitySettings
4865
+
4866
+ ``` java
4867
+ /* * Samples for ResourceProvider GetSensitivitySettings. */
4868
+ public final class ResourceProviderGetSensitivitySettingsSamples {
4869
+ /*
4870
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SensitivitySettings/GetSensitivitySettings_example.json
4871
+ */
4872
+ /**
4873
+ * Sample code: Get sensitivity settings.
4874
+ *
4875
+ * @param manager Entry point to SecurityManager.
4876
+ */
4877
+ public static void getSensitivitySettings (com.azure.resourcemanager.security. SecurityManager manager ) {
4878
+ manager. resourceProviders(). getSensitivitySettingsWithResponse(com.azure.core.util. Context . NONE );
4879
+ }
4880
+ }
4881
+ ```
4882
+
4883
+ ### ResourceProvider_UpdateSensitivitySettings
4884
+
4885
+ ``` java
4886
+ import com.azure.resourcemanager.security.models.UpdateSensitivitySettingsRequest ;
4887
+ import java.util.Arrays ;
4888
+ import java.util.UUID ;
4889
+
4890
+ /* * Samples for ResourceProvider UpdateSensitivitySettings. */
4891
+ public final class ResourceProviderUpdateSensitivitySettingsSamples {
4892
+ /*
4893
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SensitivitySettings/PutSensitivitySettings_example.json
4894
+ */
4895
+ /**
4896
+ * Sample code: Update sensitivity settings.
4897
+ *
4898
+ * @param manager Entry point to SecurityManager.
4899
+ */
4900
+ public static void updateSensitivitySettings (com.azure.resourcemanager.security. SecurityManager manager ) {
4901
+ manager
4902
+ .resourceProviders()
4903
+ .updateSensitivitySettingsWithResponse(
4904
+ new UpdateSensitivitySettingsRequest ()
4905
+ .withSensitiveInfoTypesIds(
4906
+ Arrays
4907
+ .asList(
4908
+ UUID . fromString(" f2f8a7a1-28c0-404b-9ab4-30a0a7af18cb" ),
4909
+ UUID . fromString(" b452f22b-f87d-4f48-8490-ecf0873325b5" ),
4910
+ UUID . fromString(" d59ee8b6-2618-404b-a5e7-aa377cd67543" )))
4911
+ .withSensitivityThresholdLabelOrder(2.0F )
4912
+ .withSensitivityThresholdLabelId(UUID . fromString(" f2f8a7a1-28c0-404b-9ab4-30a0a7af18cb" )),
4913
+ com.azure.core.util. Context . NONE );
4914
+ }
4915
+ }
4916
+ ```
4917
+
4787
4918
### SecureScoreControlDefinitions_List
4788
4919
4789
4920
``` java
@@ -5497,6 +5628,25 @@ public final class SecuritySolutionsReferenceDataListByHomeRegionSamples {
5497
5628
}
5498
5629
```
5499
5630
5631
+ ### SensitivitySettings_List
5632
+
5633
+ ``` java
5634
+ /* * Samples for SensitivitySettings List. */
5635
+ public final class SensitivitySettingsListSamples {
5636
+ /*
5637
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SensitivitySettings/GetSensitivitySettingsList_example.json
5638
+ */
5639
+ /**
5640
+ * Sample code: Get sensitivity settings list.
5641
+ *
5642
+ * @param manager Entry point to SecurityManager.
5643
+ */
5644
+ public static void getSensitivitySettingsList (com.azure.resourcemanager.security. SecurityManager manager ) {
5645
+ manager. sensitivitySettings(). listWithResponse(com.azure.core.util. Context . NONE );
5646
+ }
5647
+ }
5648
+ ```
5649
+
5500
5650
### ServerVulnerabilityAssessment_CreateOrUpdate
5501
5651
5502
5652
``` java
@@ -5595,6 +5745,107 @@ public final class ServerVulnerabilityAssessmentListByExtendedResourceSamples {
5595
5745
}
5596
5746
```
5597
5747
5748
+ ### ServerVulnerabilityAssessmentsSettings_CreateOrUpdate
5749
+
5750
+ ``` java
5751
+ import com.azure.resourcemanager.security.models.AzureServersSetting ;
5752
+ import com.azure.resourcemanager.security.models.ServerVulnerabilityAssessmentsAzureSettingSelectedProvider ;
5753
+ import com.azure.resourcemanager.security.models.ServerVulnerabilityAssessmentsSettingKindName ;
5754
+
5755
+ /* * Samples for ServerVulnerabilityAssessmentsSettings CreateOrUpdate. */
5756
+ public final class ServerVulnerabilityAssessmentsSettingsCreateOrUpdateSamples {
5757
+ /*
5758
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-05-01/examples/ServerVulnerabilityAssessmentsSettings/PutServerVulnerabilityAssessmentsSetting_example.json
5759
+ */
5760
+ /**
5761
+ * Sample code: Set a server vulnerability assessments setting of the kind settingKind on the subscription.
5762
+ *
5763
+ * @param manager Entry point to SecurityManager.
5764
+ */
5765
+ public static void setAServerVulnerabilityAssessmentsSettingOfTheKindSettingKindOnTheSubscription (
5766
+ com.azure.resourcemanager.security. SecurityManager manager ) {
5767
+ manager
5768
+ .serverVulnerabilityAssessmentsSettings()
5769
+ .createOrUpdateWithResponse(
5770
+ ServerVulnerabilityAssessmentsSettingKindName . AZURE_SERVERS_SETTING ,
5771
+ new AzureServersSetting ()
5772
+ .withSelectedProvider(ServerVulnerabilityAssessmentsAzureSettingSelectedProvider . MDE_TVM ),
5773
+ com.azure.core.util. Context . NONE );
5774
+ }
5775
+ }
5776
+ ```
5777
+
5778
+ ### ServerVulnerabilityAssessmentsSettings_Delete
5779
+
5780
+ ``` java
5781
+ import com.azure.resourcemanager.security.models.ServerVulnerabilityAssessmentsSettingKindName ;
5782
+
5783
+ /* * Samples for ServerVulnerabilityAssessmentsSettings Delete. */
5784
+ public final class ServerVulnerabilityAssessmentsSettingsDeleteSamples {
5785
+ /*
5786
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-05-01/examples/ServerVulnerabilityAssessmentsSettings/DeleteServerVulnerabilityAssessmentsSetting_example.json
5787
+ */
5788
+ /**
5789
+ * Sample code: Delete the server vulnerability assessments setting of the kind settingKind from the subscription.
5790
+ *
5791
+ * @param manager Entry point to SecurityManager.
5792
+ */
5793
+ public static void deleteTheServerVulnerabilityAssessmentsSettingOfTheKindSettingKindFromTheSubscription (
5794
+ com.azure.resourcemanager.security. SecurityManager manager ) {
5795
+ manager
5796
+ .serverVulnerabilityAssessmentsSettings()
5797
+ .deleteWithResponse(
5798
+ ServerVulnerabilityAssessmentsSettingKindName . AZURE_SERVERS_SETTING , com.azure.core.util. Context . NONE );
5799
+ }
5800
+ }
5801
+ ```
5802
+
5803
+ ### ServerVulnerabilityAssessmentsSettings_Get
5804
+
5805
+ ``` java
5806
+ import com.azure.resourcemanager.security.models.ServerVulnerabilityAssessmentsSettingKindName ;
5807
+
5808
+ /* * Samples for ServerVulnerabilityAssessmentsSettings Get. */
5809
+ public final class ServerVulnerabilityAssessmentsSettingsGetSamples {
5810
+ /*
5811
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-05-01/examples/ServerVulnerabilityAssessmentsSettings/GetServerVulnerabilityAssessmentsSetting_example.json
5812
+ */
5813
+ /**
5814
+ * Sample code: Get the server vulnerability assessments setting of the kind settingKind that is set on the
5815
+ * subscription.
5816
+ *
5817
+ * @param manager Entry point to SecurityManager.
5818
+ */
5819
+ public static void getTheServerVulnerabilityAssessmentsSettingOfTheKindSettingKindThatIsSetOnTheSubscription (
5820
+ com.azure.resourcemanager.security. SecurityManager manager ) {
5821
+ manager
5822
+ .serverVulnerabilityAssessmentsSettings()
5823
+ .getWithResponse(
5824
+ ServerVulnerabilityAssessmentsSettingKindName . AZURE_SERVERS_SETTING , com.azure.core.util. Context . NONE );
5825
+ }
5826
+ }
5827
+ ```
5828
+
5829
+ ### ServerVulnerabilityAssessmentsSettings_List
5830
+
5831
+ ``` java
5832
+ /* * Samples for ServerVulnerabilityAssessmentsSettings List. */
5833
+ public final class ServerVulnerabilityAssessmentsSettingsListSamples {
5834
+ /*
5835
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-05-01/examples/ServerVulnerabilityAssessmentsSettings/ListServerVulnerabilityAssessmentsSettings_example.json
5836
+ */
5837
+ /**
5838
+ * Sample code: List the server vulnerability assessments settings set on the subscription.
5839
+ *
5840
+ * @param manager Entry point to SecurityManager.
5841
+ */
5842
+ public static void listTheServerVulnerabilityAssessmentsSettingsSetOnTheSubscription (
5843
+ com.azure.resourcemanager.security. SecurityManager manager ) {
5844
+ manager. serverVulnerabilityAssessmentsSettings(). list(com.azure.core.util. Context . NONE );
5845
+ }
5846
+ }
5847
+ ```
5848
+
5598
5849
### Settings_Get
5599
5850
5600
5851
``` java
0 commit comments