diff --git a/sdk/security/azure-resourcemanager-security/CHANGELOG.md b/sdk/security/azure-resourcemanager-security/CHANGELOG.md
index 33b7843e8f5e..6455303eebe2 100644
--- a/sdk/security/azure-resourcemanager-security/CHANGELOG.md
+++ b/sdk/security/azure-resourcemanager-security/CHANGELOG.md
@@ -1,7 +1,8 @@
# Release History
-## 1.0.0-beta.2 (Unreleased)
+## 1.0.0-beta.1 (2021-11-02)
+- Azure Resource Manager Security client library for Java. This package contains Microsoft Azure SDK for Security Management SDK. API spec for Microsoft.Security (Azure Security Center) resource provider. Package tag package-composite-v3. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## 1.0.0-beta.1 (2021-07-14)
diff --git a/sdk/security/azure-resourcemanager-security/README.md b/sdk/security/azure-resourcemanager-security/README.md
index dae5056f7c71..5049f5e61582 100644
--- a/sdk/security/azure-resourcemanager-security/README.md
+++ b/sdk/security/azure-resourcemanager-security/README.md
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-security
- 1.0.0-beta.1
+ 1.0.0-beta.2
```
[//]: # ({x-version-update-end})
diff --git a/sdk/security/azure-resourcemanager-security/SAMPLE.md b/sdk/security/azure-resourcemanager-security/SAMPLE.md
index 0fe03d7c6216..df9426e8d135 100644
--- a/sdk/security/azure-resourcemanager-security/SAMPLE.md
+++ b/sdk/security/azure-resourcemanager-security/SAMPLE.md
@@ -1,360 +1,5573 @@
# Code snippets and samples
-### AdaptiveApplicationControls
+## AdaptiveApplicationControls
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AdaptiveApplicationControlsDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AdaptiveApplicationControlsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AdaptiveApplicationControlsListSamples.java)
-- [Put](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AdaptiveApplicationControlsPutSamples.java)
+- [Delete](#adaptiveapplicationcontrols_delete)
+- [Get](#adaptiveapplicationcontrols_get)
+- [List](#adaptiveapplicationcontrols_list)
+- [Put](#adaptiveapplicationcontrols_put)
-### AdaptiveNetworkHardenings
+## AdaptiveNetworkHardenings
-- [Enforce](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AdaptiveNetworkHardeningsEnforceSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AdaptiveNetworkHardeningsGetSamples.java)
-- [ListByExtendedResource](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AdaptiveNetworkHardeningsListByExtendedResourceSamples.java)
+- [Enforce](#adaptivenetworkhardenings_enforce)
+- [Get](#adaptivenetworkhardenings_get)
+- [ListByExtendedResource](#adaptivenetworkhardenings_listbyextendedresource)
-### AdvancedThreatProtection
+## AdvancedThreatProtection
-- [Create](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AdvancedThreatProtectionCreateSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AdvancedThreatProtectionGetSamples.java)
+- [Create](#advancedthreatprotection_create)
+- [Get](#advancedthreatprotection_get)
-### Alerts
+## Alerts
-- [GetResourceGroupLevel](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AlertsGetResourceGroupLevelSamples.java)
-- [GetSubscriptionLevel](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AlertsGetSubscriptionLevelSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AlertsListSamples.java)
-- [ListByResourceGroup](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AlertsListByResourceGroupSamples.java)
-- [ListResourceGroupLevelByRegion](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AlertsListResourceGroupLevelByRegionSamples.java)
-- [ListSubscriptionLevelByRegion](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AlertsListSubscriptionLevelByRegionSamples.java)
-- [Simulate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AlertsSimulateSamples.java)
-- [UpdateResourceGroupLevelStateToActivate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AlertsUpdateResourceGroupLevelStateToActivateSamples.java)
-- [UpdateResourceGroupLevelStateToDismiss](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AlertsUpdateResourceGroupLevelStateToDismissSamples.java)
-- [UpdateResourceGroupLevelStateToResolve](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AlertsUpdateResourceGroupLevelStateToResolveSamples.java)
-- [UpdateSubscriptionLevelStateToActivate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AlertsUpdateSubscriptionLevelStateToActivateSamples.java)
-- [UpdateSubscriptionLevelStateToDismiss](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AlertsUpdateSubscriptionLevelStateToDismissSamples.java)
-- [UpdateSubscriptionLevelStateToResolve](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AlertsUpdateSubscriptionLevelStateToResolveSamples.java)
+- [GetResourceGroupLevel](#alerts_getresourcegrouplevel)
+- [GetSubscriptionLevel](#alerts_getsubscriptionlevel)
+- [List](#alerts_list)
+- [ListByResourceGroup](#alerts_listbyresourcegroup)
+- [ListResourceGroupLevelByRegion](#alerts_listresourcegrouplevelbyregion)
+- [ListSubscriptionLevelByRegion](#alerts_listsubscriptionlevelbyregion)
+- [Simulate](#alerts_simulate)
+- [UpdateResourceGroupLevelStateToActivate](#alerts_updateresourcegrouplevelstatetoactivate)
+- [UpdateResourceGroupLevelStateToDismiss](#alerts_updateresourcegrouplevelstatetodismiss)
+- [UpdateResourceGroupLevelStateToResolve](#alerts_updateresourcegrouplevelstatetoresolve)
+- [UpdateSubscriptionLevelStateToActivate](#alerts_updatesubscriptionlevelstatetoactivate)
+- [UpdateSubscriptionLevelStateToDismiss](#alerts_updatesubscriptionlevelstatetodismiss)
+- [UpdateSubscriptionLevelStateToResolve](#alerts_updatesubscriptionlevelstatetoresolve)
-### AlertsSuppressionRules
+## AlertsSuppressionRules
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AlertsSuppressionRulesDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AlertsSuppressionRulesGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AlertsSuppressionRulesListSamples.java)
-- [Update](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AlertsSuppressionRulesUpdateSamples.java)
+- [Delete](#alertssuppressionrules_delete)
+- [Get](#alertssuppressionrules_get)
+- [List](#alertssuppressionrules_list)
+- [Update](#alertssuppressionrules_update)
-### AllowedConnections
+## AllowedConnections
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AllowedConnectionsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AllowedConnectionsListSamples.java)
-- [ListByHomeRegion](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AllowedConnectionsListByHomeRegionSamples.java)
+- [Get](#allowedconnections_get)
+- [List](#allowedconnections_list)
+- [ListByHomeRegion](#allowedconnections_listbyhomeregion)
-### Assessments
+## Assessments
-- [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AssessmentsCreateOrUpdateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AssessmentsDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AssessmentsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AssessmentsListSamples.java)
+- [CreateOrUpdate](#assessments_createorupdate)
+- [Delete](#assessments_delete)
+- [Get](#assessments_get)
+- [List](#assessments_list)
-### AssessmentsMetadata
+## AssessmentsMetadata
-- [CreateInSubscription](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AssessmentsMetadataCreateInSubscriptionSamples.java)
-- [DeleteInSubscription](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AssessmentsMetadataDeleteInSubscriptionSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AssessmentsMetadataGetSamples.java)
-- [GetInSubscription](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AssessmentsMetadataGetInSubscriptionSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AssessmentsMetadataListSamples.java)
-- [ListBySubscription](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AssessmentsMetadataListBySubscriptionSamples.java)
+- [CreateInSubscription](#assessmentsmetadata_createinsubscription)
+- [DeleteInSubscription](#assessmentsmetadata_deleteinsubscription)
+- [Get](#assessmentsmetadata_get)
+- [GetInSubscription](#assessmentsmetadata_getinsubscription)
+- [List](#assessmentsmetadata_list)
+- [ListBySubscription](#assessmentsmetadata_listbysubscription)
-### AutoProvisioningSettings
+## AutoProvisioningSettings
-- [Create](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AutoProvisioningSettingsCreateSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AutoProvisioningSettingsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AutoProvisioningSettingsListSamples.java)
+- [Create](#autoprovisioningsettings_create)
+- [Get](#autoprovisioningsettings_get)
+- [List](#autoprovisioningsettings_list)
-### Automations
+## Automations
-- [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AutomationsCreateOrUpdateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AutomationsDeleteSamples.java)
-- [GetByResourceGroup](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AutomationsGetByResourceGroupSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AutomationsListSamples.java)
-- [ListByResourceGroup](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AutomationsListByResourceGroupSamples.java)
-- [Validate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/AutomationsValidateSamples.java)
+- [CreateOrUpdate](#automations_createorupdate)
+- [Delete](#automations_delete)
+- [GetByResourceGroup](#automations_getbyresourcegroup)
+- [List](#automations_list)
+- [ListByResourceGroup](#automations_listbyresourcegroup)
+- [Validate](#automations_validate)
-### ComplianceResults
+## ComplianceResults
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/ComplianceResultsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/ComplianceResultsListSamples.java)
+- [Get](#complianceresults_get)
+- [List](#complianceresults_list)
-### Compliances
+## Compliances
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/CompliancesGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/CompliancesListSamples.java)
+- [Get](#compliances_get)
+- [List](#compliances_list)
-### Connectors
+## Connectors
-- [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/ConnectorsCreateOrUpdateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/ConnectorsDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/ConnectorsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/ConnectorsListSamples.java)
+- [CreateOrUpdate](#connectors_createorupdate)
+- [Delete](#connectors_delete)
+- [Get](#connectors_get)
+- [List](#connectors_list)
-### Device
+## CustomAssessmentAutomations
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/DeviceGetSamples.java)
+- [Create](#customassessmentautomations_create)
+- [Delete](#customassessmentautomations_delete)
+- [GetByResourceGroup](#customassessmentautomations_getbyresourcegroup)
+- [List](#customassessmentautomations_list)
+- [ListByResourceGroup](#customassessmentautomations_listbyresourcegroup)
-### DeviceSecurityGroups
+## CustomEntityStoreAssignments
-- [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/DeviceSecurityGroupsCreateOrUpdateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/DeviceSecurityGroupsDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/DeviceSecurityGroupsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/DeviceSecurityGroupsListSamples.java)
+- [Create](#customentitystoreassignments_create)
+- [Delete](#customentitystoreassignments_delete)
+- [GetByResourceGroup](#customentitystoreassignments_getbyresourcegroup)
+- [List](#customentitystoreassignments_list)
+- [ListByResourceGroup](#customentitystoreassignments_listbyresourcegroup)
-### DevicesForHub
+## DeviceSecurityGroups
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/DevicesForHubListSamples.java)
+- [CreateOrUpdate](#devicesecuritygroups_createorupdate)
+- [Delete](#devicesecuritygroups_delete)
+- [Get](#devicesecuritygroups_get)
+- [List](#devicesecuritygroups_list)
-### DevicesForSubscription
+## DiscoveredSecuritySolutions
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/DevicesForSubscriptionListSamples.java)
+- [Get](#discoveredsecuritysolutions_get)
+- [List](#discoveredsecuritysolutions_list)
+- [ListByHomeRegion](#discoveredsecuritysolutions_listbyhomeregion)
-### DiscoveredSecuritySolutions
+## ExternalSecuritySolutions
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/DiscoveredSecuritySolutionsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/DiscoveredSecuritySolutionsListSamples.java)
-- [ListByHomeRegion](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/DiscoveredSecuritySolutionsListByHomeRegionSamples.java)
+- [Get](#externalsecuritysolutions_get)
+- [List](#externalsecuritysolutions_list)
+- [ListByHomeRegion](#externalsecuritysolutions_listbyhomeregion)
-### ExternalSecuritySolutions
+## InformationProtectionPolicies
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/ExternalSecuritySolutionsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/ExternalSecuritySolutionsListSamples.java)
-- [ListByHomeRegion](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/ExternalSecuritySolutionsListByHomeRegionSamples.java)
+- [CreateOrUpdate](#informationprotectionpolicies_createorupdate)
+- [Get](#informationprotectionpolicies_get)
+- [List](#informationprotectionpolicies_list)
-### InformationProtectionPolicies
+## IngestionSettings
-- [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/InformationProtectionPoliciesCreateOrUpdateSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/InformationProtectionPoliciesGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/InformationProtectionPoliciesListSamples.java)
+- [Create](#ingestionsettings_create)
+- [Delete](#ingestionsettings_delete)
+- [Get](#ingestionsettings_get)
+- [List](#ingestionsettings_list)
+- [ListConnectionStrings](#ingestionsettings_listconnectionstrings)
+- [ListTokens](#ingestionsettings_listtokens)
-### IngestionSettings
+## IotSecuritySolution
-- [Create](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IngestionSettingsCreateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IngestionSettingsDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IngestionSettingsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IngestionSettingsListSamples.java)
-- [ListConnectionStrings](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IngestionSettingsListConnectionStringsSamples.java)
-- [ListTokens](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IngestionSettingsListTokensSamples.java)
+- [CreateOrUpdate](#iotsecuritysolution_createorupdate)
+- [Delete](#iotsecuritysolution_delete)
+- [GetByResourceGroup](#iotsecuritysolution_getbyresourcegroup)
+- [List](#iotsecuritysolution_list)
+- [ListByResourceGroup](#iotsecuritysolution_listbyresourcegroup)
+- [Update](#iotsecuritysolution_update)
-### IotAlertTypes
+## IotSecuritySolutionAnalytics
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotAlertTypesGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotAlertTypesListSamples.java)
+- [Get](#iotsecuritysolutionanalytics_get)
+- [List](#iotsecuritysolutionanalytics_list)
-### IotAlerts
+## IotSecuritySolutionsAnalyticsAggregatedAlert
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotAlertsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotAlertsListSamples.java)
+- [Dismiss](#iotsecuritysolutionsanalyticsaggregatedalert_dismiss)
+- [Get](#iotsecuritysolutionsanalyticsaggregatedalert_get)
+- [List](#iotsecuritysolutionsanalyticsaggregatedalert_list)
-### IotDefenderSettings
+## IotSecuritySolutionsAnalyticsRecommendation
-- [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotDefenderSettingsCreateOrUpdateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotDefenderSettingsDeleteSamples.java)
-- [DownloadManagerActivation](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotDefenderSettingsDownloadManagerActivationSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotDefenderSettingsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotDefenderSettingsListSamples.java)
-- [PackageDownloads](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotDefenderSettingsPackageDownloadsSamples.java)
+- [Get](#iotsecuritysolutionsanalyticsrecommendation_get)
+- [List](#iotsecuritysolutionsanalyticsrecommendation_list)
-### IotRecommendationTypes
+## JitNetworkAccessPolicies
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotRecommendationTypesGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotRecommendationTypesListSamples.java)
+- [CreateOrUpdate](#jitnetworkaccesspolicies_createorupdate)
+- [Delete](#jitnetworkaccesspolicies_delete)
+- [Get](#jitnetworkaccesspolicies_get)
+- [Initiate](#jitnetworkaccesspolicies_initiate)
+- [List](#jitnetworkaccesspolicies_list)
+- [ListByRegion](#jitnetworkaccesspolicies_listbyregion)
+- [ListByResourceGroup](#jitnetworkaccesspolicies_listbyresourcegroup)
+- [ListByResourceGroupAndRegion](#jitnetworkaccesspolicies_listbyresourcegroupandregion)
-### IotRecommendations
+## Locations
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotRecommendationsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotRecommendationsListSamples.java)
+- [Get](#locations_get)
+- [List](#locations_list)
-### IotSecuritySolution
+## MdeOnboardings
-- [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSecuritySolutionCreateOrUpdateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSecuritySolutionDeleteSamples.java)
-- [GetByResourceGroup](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSecuritySolutionGetByResourceGroupSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSecuritySolutionListSamples.java)
-- [ListByResourceGroup](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSecuritySolutionListByResourceGroupSamples.java)
-- [Update](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSecuritySolutionUpdateSamples.java)
+- [Get](#mdeonboardings_get)
+- [List](#mdeonboardings_list)
-### IotSecuritySolutionAnalytics
+## Pricings
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSecuritySolutionAnalyticsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSecuritySolutionAnalyticsListSamples.java)
+- [Get](#pricings_get)
+- [List](#pricings_list)
+- [Update](#pricings_update)
-### IotSecuritySolutionsAnalyticsAggregatedAlert
+## RegulatoryComplianceAssessments
-- [Dismiss](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSecuritySolutionsAnalyticsAggregatedAlertDismissSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSecuritySolutionsAnalyticsAggregatedAlertGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSecuritySolutionsAnalyticsAggregatedAlertListSamples.java)
+- [Get](#regulatorycomplianceassessments_get)
+- [List](#regulatorycomplianceassessments_list)
-### IotSecuritySolutionsAnalyticsRecommendation
+## RegulatoryComplianceControls
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSecuritySolutionsAnalyticsRecommendationGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSecuritySolutionsAnalyticsRecommendationListSamples.java)
+- [Get](#regulatorycompliancecontrols_get)
+- [List](#regulatorycompliancecontrols_list)
-### IotSensors
+## RegulatoryComplianceStandards
-- [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSensorsCreateOrUpdateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSensorsDeleteSamples.java)
-- [DownloadActivation](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSensorsDownloadActivationSamples.java)
-- [DownloadResetPassword](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSensorsDownloadResetPasswordSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSensorsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSensorsListSamples.java)
-- [TriggerTiPackageUpdate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSensorsTriggerTiPackageUpdateSamples.java)
+- [Get](#regulatorycompliancestandards_get)
+- [List](#regulatorycompliancestandards_list)
-### IotSites
+## SecureScoreControlDefinitions
-- [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSitesCreateOrUpdateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSitesDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSitesGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSitesListSamples.java)
+- [List](#securescorecontroldefinitions_list)
+- [ListBySubscription](#securescorecontroldefinitions_listbysubscription)
-### JitNetworkAccessPolicies
+## SecureScoreControls
-- [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/JitNetworkAccessPoliciesCreateOrUpdateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/JitNetworkAccessPoliciesDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/JitNetworkAccessPoliciesGetSamples.java)
-- [Initiate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/JitNetworkAccessPoliciesInitiateSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/JitNetworkAccessPoliciesListSamples.java)
-- [ListByRegion](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/JitNetworkAccessPoliciesListByRegionSamples.java)
-- [ListByResourceGroup](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/JitNetworkAccessPoliciesListByResourceGroupSamples.java)
-- [ListByResourceGroupAndRegion](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/JitNetworkAccessPoliciesListByResourceGroupAndRegionSamples.java)
+- [List](#securescorecontrols_list)
+- [ListBySecureScore](#securescorecontrols_listbysecurescore)
-### Locations
+## SecureScores
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/LocationsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/LocationsListSamples.java)
+- [Get](#securescores_get)
+- [List](#securescores_list)
-### OnPremiseIotSensors
+## SecurityConnectors
-- [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/OnPremiseIotSensorsCreateOrUpdateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/OnPremiseIotSensorsDeleteSamples.java)
-- [DownloadActivation](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/OnPremiseIotSensorsDownloadActivationSamples.java)
-- [DownloadResetPassword](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/OnPremiseIotSensorsDownloadResetPasswordSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/OnPremiseIotSensorsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/OnPremiseIotSensorsListSamples.java)
+- [CreateOrUpdate](#securityconnectors_createorupdate)
+- [Delete](#securityconnectors_delete)
+- [GetByResourceGroup](#securityconnectors_getbyresourcegroup)
+- [List](#securityconnectors_list)
+- [ListByResourceGroup](#securityconnectors_listbyresourcegroup)
+- [Update](#securityconnectors_update)
-### Pricings
+## SecurityContacts
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/PricingsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/PricingsListSamples.java)
-- [Update](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/PricingsUpdateSamples.java)
+- [Create](#securitycontacts_create)
+- [Delete](#securitycontacts_delete)
+- [Get](#securitycontacts_get)
+- [List](#securitycontacts_list)
+- [Update](#securitycontacts_update)
-### RegulatoryComplianceAssessments
+## SecuritySolutions
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/RegulatoryComplianceAssessmentsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/RegulatoryComplianceAssessmentsListSamples.java)
+- [Get](#securitysolutions_get)
+- [List](#securitysolutions_list)
-### RegulatoryComplianceControls
+## SecuritySolutionsReferenceData
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/RegulatoryComplianceControlsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/RegulatoryComplianceControlsListSamples.java)
+- [List](#securitysolutionsreferencedata_list)
+- [ListByHomeRegion](#securitysolutionsreferencedata_listbyhomeregion)
-### RegulatoryComplianceStandards
+## ServerVulnerabilityAssessment
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/RegulatoryComplianceStandardsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/RegulatoryComplianceStandardsListSamples.java)
+- [CreateOrUpdate](#servervulnerabilityassessment_createorupdate)
+- [Delete](#servervulnerabilityassessment_delete)
+- [Get](#servervulnerabilityassessment_get)
+- [ListByExtendedResource](#servervulnerabilityassessment_listbyextendedresource)
-### SecureScoreControlDefinitions
+## Settings
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SecureScoreControlDefinitionsListSamples.java)
-- [ListBySubscription](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SecureScoreControlDefinitionsListBySubscriptionSamples.java)
+- [Get](#settings_get)
+- [List](#settings_list)
+- [Update](#settings_update)
-### SecureScoreControls
+## SoftwareInventories
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SecureScoreControlsListSamples.java)
-- [ListBySecureScore](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SecureScoreControlsListBySecureScoreSamples.java)
+- [Get](#softwareinventories_get)
+- [List](#softwareinventories_list)
+- [ListByExtendedResource](#softwareinventories_listbyextendedresource)
-### SecureScores
+## SqlVulnerabilityAssessmentBaselineRules
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SecureScoresGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SecureScoresListSamples.java)
+- [Add](#sqlvulnerabilityassessmentbaselinerules_add)
+- [CreateOrUpdate](#sqlvulnerabilityassessmentbaselinerules_createorupdate)
+- [Delete](#sqlvulnerabilityassessmentbaselinerules_delete)
+- [Get](#sqlvulnerabilityassessmentbaselinerules_get)
+- [List](#sqlvulnerabilityassessmentbaselinerules_list)
-### SecurityContacts
+## SqlVulnerabilityAssessmentScanResults
-- [Create](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SecurityContactsCreateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SecurityContactsDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SecurityContactsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SecurityContactsListSamples.java)
-- [Update](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SecurityContactsUpdateSamples.java)
+- [Get](#sqlvulnerabilityassessmentscanresults_get)
+- [List](#sqlvulnerabilityassessmentscanresults_list)
-### SecuritySolutions
+## SqlVulnerabilityAssessmentScans
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SecuritySolutionsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SecuritySolutionsListSamples.java)
+- [Get](#sqlvulnerabilityassessmentscans_get)
+- [List](#sqlvulnerabilityassessmentscans_list)
-### SecuritySolutionsReferenceData
+## SubAssessments
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SecuritySolutionsReferenceDataListSamples.java)
-- [ListByHomeRegion](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SecuritySolutionsReferenceDataListByHomeRegionSamples.java)
+- [Get](#subassessments_get)
+- [List](#subassessments_list)
+- [ListAll](#subassessments_listall)
-### ServerVulnerabilityAssessment
+## Tasks
-- [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/ServerVulnerabilityAssessmentCreateOrUpdateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/ServerVulnerabilityAssessmentDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/ServerVulnerabilityAssessmentGetSamples.java)
-- [ListByExtendedResource](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/ServerVulnerabilityAssessmentListByExtendedResourceSamples.java)
+- [GetResourceGroupLevelTask](#tasks_getresourcegroupleveltask)
+- [GetSubscriptionLevelTask](#tasks_getsubscriptionleveltask)
+- [List](#tasks_list)
+- [ListByHomeRegion](#tasks_listbyhomeregion)
+- [ListByResourceGroup](#tasks_listbyresourcegroup)
+- [UpdateResourceGroupLevelTaskState](#tasks_updateresourcegroupleveltaskstate)
+- [UpdateSubscriptionLevelTaskState](#tasks_updatesubscriptionleveltaskstate)
-### Settings
+## Topology
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SettingsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SettingsListSamples.java)
-- [Update](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SettingsUpdateSamples.java)
+- [Get](#topology_get)
+- [List](#topology_list)
+- [ListByHomeRegion](#topology_listbyhomeregion)
-### SoftwareInventories
+## WorkspaceSettings
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SoftwareInventoriesGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SoftwareInventoriesListSamples.java)
-- [ListByExtendedResource](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SoftwareInventoriesListByExtendedResourceSamples.java)
+- [Create](#workspacesettings_create)
+- [Delete](#workspacesettings_delete)
+- [Get](#workspacesettings_get)
+- [List](#workspacesettings_list)
+- [Update](#workspacesettings_update)
+### AdaptiveApplicationControls_Delete
-### SqlVulnerabilityAssessmentBaselineRules
+```java
+import com.azure.core.util.Context;
-- [Add](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SqlVulnerabilityAssessmentBaselineRulesAddSamples.java)
-- [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SqlVulnerabilityAssessmentBaselineRulesDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SqlVulnerabilityAssessmentBaselineRulesGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SqlVulnerabilityAssessmentBaselineRulesListSamples.java)
+/** Samples for AdaptiveApplicationControls Delete. */
+public final class AdaptiveApplicationControlsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ApplicationWhitelistings/DeleteAdaptiveApplicationControls_example.json
+ */
+ /**
+ * Sample code: Delete an application control machine group.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void deleteAnApplicationControlMachineGroup(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.adaptiveApplicationControls().deleteWithResponse("centralus", "GROUP1", Context.NONE);
+ }
+}
+```
-### SqlVulnerabilityAssessmentScanResults
+### AdaptiveApplicationControls_Get
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SqlVulnerabilityAssessmentScanResultsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SqlVulnerabilityAssessmentScanResultsListSamples.java)
+```java
+import com.azure.core.util.Context;
-### SqlVulnerabilityAssessmentScans
+/** Samples for AdaptiveApplicationControls Get. */
+public final class AdaptiveApplicationControlsGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsGroup_example.json
+ */
+ /**
+ * Sample code: Gets a configured application control VM/server group.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getsAConfiguredApplicationControlVMServerGroup(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.adaptiveApplicationControls().getWithResponse("centralus", "ERELGROUP1", Context.NONE);
+ }
+}
+```
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SqlVulnerabilityAssessmentScansGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SqlVulnerabilityAssessmentScansListSamples.java)
+### AdaptiveApplicationControls_List
-### SubAssessments
+```java
+import com.azure.core.util.Context;
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SubAssessmentsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SubAssessmentsListSamples.java)
-- [ListAll](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/SubAssessmentsListAllSamples.java)
+/** Samples for AdaptiveApplicationControls List. */
+public final class AdaptiveApplicationControlsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsSubscription_example.json
+ */
+ /**
+ * Sample code: Gets a list of application control groups of machines for the subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getsAListOfApplicationControlGroupsOfMachinesForTheSubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.adaptiveApplicationControls().listWithResponse(true, false, Context.NONE);
+ }
+}
+```
-### Tasks
+### AdaptiveApplicationControls_Put
-- [GetResourceGroupLevelTask](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/TasksGetResourceGroupLevelTaskSamples.java)
-- [GetSubscriptionLevelTask](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/TasksGetSubscriptionLevelTaskSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/TasksListSamples.java)
-- [ListByHomeRegion](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/TasksListByHomeRegionSamples.java)
-- [ListByResourceGroup](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/TasksListByResourceGroupSamples.java)
-- [UpdateResourceGroupLevelTaskState](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/TasksUpdateResourceGroupLevelTaskStateSamples.java)
-- [UpdateSubscriptionLevelTaskState](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/TasksUpdateSubscriptionLevelTaskStateSamples.java)
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.models.AdaptiveApplicationControlGroup;
+import com.azure.resourcemanager.security.models.ConfigurationStatus;
+import com.azure.resourcemanager.security.models.EnforcementMode;
+import com.azure.resourcemanager.security.models.EnforcementSupport;
+import com.azure.resourcemanager.security.models.FileType;
+import com.azure.resourcemanager.security.models.PathRecommendation;
+import com.azure.resourcemanager.security.models.ProtectionMode;
+import com.azure.resourcemanager.security.models.PublisherInfo;
+import com.azure.resourcemanager.security.models.RecommendationAction;
+import com.azure.resourcemanager.security.models.RecommendationType;
+import com.azure.resourcemanager.security.models.UserRecommendation;
+import com.azure.resourcemanager.security.models.VmRecommendation;
+import java.util.Arrays;
-### Topology
+/** Samples for AdaptiveApplicationControls Put. */
+public final class AdaptiveApplicationControlsPutSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ApplicationWhitelistings/PutAdaptiveApplicationControls_example.json
+ */
+ /**
+ * Sample code: Update an application control machine group by adding a new application.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void updateAnApplicationControlMachineGroupByAddingANewApplication(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ AdaptiveApplicationControlGroup resource =
+ manager.adaptiveApplicationControls().getWithResponse("centralus", "ERELGROUP1", Context.NONE).getValue();
+ resource
+ .update()
+ .withEnforcementMode(EnforcementMode.AUDIT)
+ .withProtectionMode(
+ new ProtectionMode()
+ .withExe(EnforcementMode.AUDIT)
+ .withMsi(EnforcementMode.NONE)
+ .withScript(EnforcementMode.NONE))
+ .withVmRecommendations(
+ Arrays
+ .asList(
+ new VmRecommendation()
+ .withConfigurationStatus(ConfigurationStatus.CONFIGURED)
+ .withRecommendationAction(RecommendationAction.RECOMMENDED)
+ .withResourceId(
+ "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/erelh-stable/providers/microsoft.compute/virtualmachines/erelh-16090")
+ .withEnforcementSupport(EnforcementSupport.SUPPORTED),
+ new VmRecommendation()
+ .withConfigurationStatus(ConfigurationStatus.CONFIGURED)
+ .withRecommendationAction(RecommendationAction.RECOMMENDED)
+ .withResourceId(
+ "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/matanvs/providers/microsoft.compute/virtualmachines/matanvs19")
+ .withEnforcementSupport(EnforcementSupport.SUPPORTED)))
+ .withPathRecommendations(
+ Arrays
+ .asList(
+ new PathRecommendation()
+ .withPath("[Exe] O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US\\*\\*\\0.0.0.0")
+ .withAction(RecommendationAction.RECOMMENDED)
+ .withType(RecommendationType.fromString("PublisherSignature"))
+ .withPublisherInfo(
+ new PublisherInfo()
+ .withPublisherName("O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US")
+ .withProductName("*")
+ .withBinaryName("*")
+ .withVersion("0.0.0.0"))
+ .withCommon(true)
+ .withUserSids(Arrays.asList("S-1-1-0"))
+ .withUsernames(
+ Arrays
+ .asList(
+ new UserRecommendation()
+ .withUsername("Everyone")
+ .withRecommendationAction(RecommendationAction.RECOMMENDED)))
+ .withFileType(FileType.EXE)
+ .withConfigurationStatus(ConfigurationStatus.CONFIGURED),
+ new PathRecommendation()
+ .withPath("%OSDRIVE%\\WINDOWSAZURE\\SECAGENT\\WASECAGENTPROV.EXE")
+ .withAction(RecommendationAction.RECOMMENDED)
+ .withType(RecommendationType.fromString("ProductSignature"))
+ .withPublisherInfo(
+ new PublisherInfo()
+ .withPublisherName("CN=MICROSOFT AZURE DEPENDENCY CODE SIGN")
+ .withProductName("MICROSOFT® COREXT")
+ .withBinaryName("*")
+ .withVersion("0.0.0.0"))
+ .withCommon(true)
+ .withUserSids(Arrays.asList("S-1-1-0"))
+ .withUsernames(
+ Arrays
+ .asList(
+ new UserRecommendation()
+ .withUsername("NT AUTHORITY\\SYSTEM")
+ .withRecommendationAction(RecommendationAction.RECOMMENDED)))
+ .withFileType(FileType.EXE)
+ .withConfigurationStatus(ConfigurationStatus.CONFIGURED),
+ new PathRecommendation()
+ .withPath("%OSDRIVE%\\WINDOWSAZURE\\PACKAGES_201973_7415\\COLLECTGUESTLOGS.EXE")
+ .withAction(RecommendationAction.RECOMMENDED)
+ .withType(RecommendationType.fromString("PublisherSignature"))
+ .withPublisherInfo(
+ new PublisherInfo()
+ .withPublisherName("CN=MICROSOFT AZURE DEPENDENCY CODE SIGN")
+ .withProductName("*")
+ .withBinaryName("*")
+ .withVersion("0.0.0.0"))
+ .withCommon(true)
+ .withUserSids(Arrays.asList("S-1-1-0"))
+ .withUsernames(
+ Arrays
+ .asList(
+ new UserRecommendation()
+ .withUsername("NT AUTHORITY\\SYSTEM")
+ .withRecommendationAction(RecommendationAction.RECOMMENDED)))
+ .withFileType(FileType.EXE)
+ .withConfigurationStatus(ConfigurationStatus.CONFIGURED),
+ new PathRecommendation()
+ .withPath("C:\\directory\\file.exe")
+ .withAction(RecommendationAction.ADD)
+ .withType(RecommendationType.fromString("File"))
+ .withCommon(true)))
+ .apply();
+ }
+}
+```
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/TopologyGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/TopologyListSamples.java)
-- [ListByHomeRegion](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/TopologyListByHomeRegionSamples.java)
+### AdaptiveNetworkHardenings_Enforce
-### WorkspaceSettings
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.models.AdaptiveNetworkHardeningEnforceRequest;
+import com.azure.resourcemanager.security.models.Direction;
+import com.azure.resourcemanager.security.models.Rule;
+import com.azure.resourcemanager.security.models.TransportProtocol;
+import java.util.Arrays;
+
+/** Samples for AdaptiveNetworkHardenings Enforce. */
+public final class AdaptiveNetworkHardeningsEnforceSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/AdaptiveNetworkHardenings/EnforceAdaptiveNetworkHardeningRules_example.json
+ */
+ /**
+ * Sample code: Enforces the given rules on the NSG(s) listed in the request.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void enforcesTheGivenRulesOnTheNSGSListedInTheRequest(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .adaptiveNetworkHardenings()
+ .enforce(
+ "rg1",
+ "Microsoft.Compute",
+ "virtualMachines",
+ "vm1",
+ "default",
+ new AdaptiveNetworkHardeningEnforceRequest()
+ .withRules(
+ Arrays
+ .asList(
+ new Rule()
+ .withName("rule1")
+ .withDirection(Direction.INBOUND)
+ .withDestinationPort(3389)
+ .withProtocols(Arrays.asList(TransportProtocol.TCP))
+ .withIpAddresses(Arrays.asList("100.10.1.1", "200.20.2.2", "81.199.3.0/24")),
+ new Rule()
+ .withName("rule2")
+ .withDirection(Direction.INBOUND)
+ .withDestinationPort(22)
+ .withProtocols(Arrays.asList(TransportProtocol.TCP))
+ .withIpAddresses(Arrays.asList())))
+ .withNetworkSecurityGroups(
+ Arrays
+ .asList(
+ "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1",
+ "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg2/providers/Microsoft.Network/networkSecurityGroups/nsg2")),
+ Context.NONE);
+ }
+}
+```
+
+### AdaptiveNetworkHardenings_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AdaptiveNetworkHardenings Get. */
+public final class AdaptiveNetworkHardeningsGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/AdaptiveNetworkHardenings/GetAdaptiveNetworkHardening_example.json
+ */
+ /**
+ * Sample code: Get a single Adaptive Network Hardening resource.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getASingleAdaptiveNetworkHardeningResource(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .adaptiveNetworkHardenings()
+ .getWithResponse("rg1", "Microsoft.Compute", "virtualMachines", "vm1", "default", Context.NONE);
+ }
+}
+```
+
+### AdaptiveNetworkHardenings_ListByExtendedResource
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AdaptiveNetworkHardenings ListByExtendedResource. */
+public final class AdaptiveNetworkHardeningsListByExtendedResourceSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/AdaptiveNetworkHardenings/ListByExtendedResourceAdaptiveNetworkHardenings_example.json
+ */
+ /**
+ * Sample code: List Adaptive Network Hardenings resources of an extended resource.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listAdaptiveNetworkHardeningsResourcesOfAnExtendedResource(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .adaptiveNetworkHardenings()
+ .listByExtendedResource("rg1", "Microsoft.Compute", "virtualMachines", "vm1", Context.NONE);
+ }
+}
+```
+
+### AdvancedThreatProtection_Create
+
+```java
+/** Samples for AdvancedThreatProtection Create. */
+public final class AdvancedThreatProtectionCreateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/examples/AdvancedThreatProtection/PutAdvancedThreatProtectionSettings_example.json
+ */
+ /**
+ * Sample code: Creates or updates the Advanced Threat Protection settings on a specified resource.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createsOrUpdatesTheAdvancedThreatProtectionSettingsOnASpecifiedResource(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .advancedThreatProtections()
+ .define()
+ .withExistingResourceId(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Storage/storageAccounts/samplestorageaccount")
+ .withIsEnabled(true)
+ .create();
+ }
+}
+```
+
+### AdvancedThreatProtection_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AdvancedThreatProtection Get. */
+public final class AdvancedThreatProtectionGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/examples/AdvancedThreatProtection/GetAdvancedThreatProtectionSettings_example.json
+ */
+ /**
+ * Sample code: Gets the Advanced Threat Protection settings for the specified resource.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getsTheAdvancedThreatProtectionSettingsForTheSpecifiedResource(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .advancedThreatProtections()
+ .getWithResponse(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Storage/storageAccounts/samplestorageaccount",
+ Context.NONE);
+ }
+}
+```
+
+### Alerts_GetResourceGroupLevel
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Alerts GetResourceGroupLevel. */
+public final class AlertsGetResourceGroupLevelSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-01-01/examples/Alerts/GetAlertResourceGroupLocation_example.json
+ */
+ /**
+ * Sample code: Get security alert on a resource group from a security data location.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecurityAlertOnAResourceGroupFromASecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .alerts()
+ .getResourceGroupLevelWithResponse(
+ "westeurope", "2518298467986649999_4d25bfef-2d77-4a08-adc0-3e35715cc92a", "myRg1", Context.NONE);
+ }
+}
+```
+
+### Alerts_GetSubscriptionLevel
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Alerts GetSubscriptionLevel. */
+public final class AlertsGetSubscriptionLevelSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-01-01/examples/Alerts/GetAlertSubscriptionLocation_example.json
+ */
+ /**
+ * Sample code: Get security alert on a subscription from a security data location.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecurityAlertOnASubscriptionFromASecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .alerts()
+ .getSubscriptionLevelWithResponse(
+ "westeurope", "2518770965529163669_F144EE95-A3E5-42DA-A279-967D115809AA", Context.NONE);
+ }
+}
+```
+
+### Alerts_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Alerts List. */
+public final class AlertsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-01-01/examples/Alerts/GetAlertsSubscription_example.json
+ */
+ /**
+ * Sample code: Get security alerts on a subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecurityAlertsOnASubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.alerts().list(Context.NONE);
+ }
+}
+```
+
+### Alerts_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Alerts ListByResourceGroup. */
+public final class AlertsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-01-01/examples/Alerts/GetAlertsResourceGroup_example.json
+ */
+ /**
+ * Sample code: Get security alerts on a resource group.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecurityAlertsOnAResourceGroup(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.alerts().listByResourceGroup("myRg1", Context.NONE);
+ }
+}
+```
+
+### Alerts_ListResourceGroupLevelByRegion
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Alerts ListResourceGroupLevelByRegion. */
+public final class AlertsListResourceGroupLevelByRegionSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-01-01/examples/Alerts/GetAlertsResourceGroupLocation_example.json
+ */
+ /**
+ * Sample code: Get security alerts on a resource group from a security data location.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecurityAlertsOnAResourceGroupFromASecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.alerts().listResourceGroupLevelByRegion("westeurope", "myRg1", Context.NONE);
+ }
+}
+```
+
+### Alerts_ListSubscriptionLevelByRegion
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Alerts ListSubscriptionLevelByRegion. */
+public final class AlertsListSubscriptionLevelByRegionSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-01-01/examples/Alerts/GetAlertsSubscriptionsLocation_example.json
+ */
+ /**
+ * Sample code: Get security alerts on a subscription from a security data location.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecurityAlertsOnASubscriptionFromASecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.alerts().listSubscriptionLevelByRegion("westeurope", Context.NONE);
+ }
+}
+```
+
+### Alerts_Simulate
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.models.AlertSimulatorBundlesRequestProperties;
+import com.azure.resourcemanager.security.models.AlertSimulatorRequestBody;
+import com.azure.resourcemanager.security.models.BundleType;
+import java.util.Arrays;
+
+/** Samples for Alerts Simulate. */
+public final class AlertsSimulateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-01-01/examples/Alerts/SimulateAlerts_example.json
+ */
+ /**
+ * Sample code: Simulate security alerts on a subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void simulateSecurityAlertsOnASubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .alerts()
+ .simulate(
+ "centralus",
+ new AlertSimulatorRequestBody()
+ .withProperties(
+ new AlertSimulatorBundlesRequestProperties()
+ .withBundles(
+ Arrays
+ .asList(
+ BundleType.APP_SERVICES,
+ BundleType.DNS,
+ BundleType.KEY_VAULTS,
+ BundleType.KUBERNETES_SERVICE,
+ BundleType.RESOURCE_MANAGER,
+ BundleType.SQL_SERVERS,
+ BundleType.STORAGE_ACCOUNTS,
+ BundleType.VIRTUAL_MACHINES))),
+ Context.NONE);
+ }
+}
+```
+
+### Alerts_UpdateResourceGroupLevelStateToActivate
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Alerts UpdateResourceGroupLevelStateToActivate. */
+public final class AlertsUpdateResourceGroupLevelStateToActivateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-01-01/examples/Alerts/UpdateAlertResourceGroupLocation_example.json
+ */
+ /**
+ * Sample code: Update security alert state on a resource group from a security data location.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void updateSecurityAlertStateOnAResourceGroupFromASecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .alerts()
+ .updateResourceGroupLevelStateToActivateWithResponse(
+ "westeurope", "2518765996949954086_2325cf9e-42a2-4f72-ae7f-9b863cba2d22", "myRg2", Context.NONE);
+ }
+}
+```
+
+### Alerts_UpdateResourceGroupLevelStateToDismiss
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Alerts UpdateResourceGroupLevelStateToDismiss. */
+public final class AlertsUpdateResourceGroupLevelStateToDismissSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-01-01/examples/Alerts/UpdateAlertResourceGroupLocation_example.json
+ */
+ /**
+ * Sample code: Update security alert state on a resource group from a security data location.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void updateSecurityAlertStateOnAResourceGroupFromASecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .alerts()
+ .updateResourceGroupLevelStateToDismissWithResponse(
+ "westeurope", "2518765996949954086_2325cf9e-42a2-4f72-ae7f-9b863cba2d22", "myRg2", Context.NONE);
+ }
+}
+```
+
+### Alerts_UpdateResourceGroupLevelStateToResolve
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Alerts UpdateResourceGroupLevelStateToResolve. */
+public final class AlertsUpdateResourceGroupLevelStateToResolveSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-01-01/examples/Alerts/UpdateAlertResourceGroupLocation_resolve_example.json
+ */
+ /**
+ * Sample code: Update security alert state on a resource group from a security data location.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void updateSecurityAlertStateOnAResourceGroupFromASecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .alerts()
+ .updateResourceGroupLevelStateToResolveWithResponse(
+ "westeurope", "2518765996949954086_2325cf9e-42a2-4f72-ae7f-9b863cba2d22", "myRg2", Context.NONE);
+ }
+}
+```
+
+### Alerts_UpdateSubscriptionLevelStateToActivate
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Alerts UpdateSubscriptionLevelStateToActivate. */
+public final class AlertsUpdateSubscriptionLevelStateToActivateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-01-01/examples/Alerts/UpdateAlertSubscriptionLocation_example.json
+ */
+ /**
+ * Sample code: Update security alert state on a subscription from a security data location.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void updateSecurityAlertStateOnASubscriptionFromASecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .alerts()
+ .updateSubscriptionLevelStateToActivateWithResponse(
+ "westeurope", "2518298467986649999_4d25bfef-2d77-4a08-adc0-3e35715cc92a", Context.NONE);
+ }
+}
+```
+
+### Alerts_UpdateSubscriptionLevelStateToDismiss
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Alerts UpdateSubscriptionLevelStateToDismiss. */
+public final class AlertsUpdateSubscriptionLevelStateToDismissSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-01-01/examples/Alerts/UpdateAlertSubscriptionLocation_example.json
+ */
+ /**
+ * Sample code: Update security alert state on a subscription from a security data location.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void updateSecurityAlertStateOnASubscriptionFromASecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .alerts()
+ .updateSubscriptionLevelStateToDismissWithResponse(
+ "westeurope", "2518298467986649999_4d25bfef-2d77-4a08-adc0-3e35715cc92a", Context.NONE);
+ }
+}
+```
+
+### Alerts_UpdateSubscriptionLevelStateToResolve
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Alerts UpdateSubscriptionLevelStateToResolve. */
+public final class AlertsUpdateSubscriptionLevelStateToResolveSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-01-01/examples/Alerts/UpdateAlertSubscriptionLocation_resolve_example.json
+ */
+ /**
+ * Sample code: Update security alert state on a subscription from a security data location.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void updateSecurityAlertStateOnASubscriptionFromASecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .alerts()
+ .updateSubscriptionLevelStateToResolveWithResponse(
+ "westeurope", "2518298467986649999_4d25bfef-2d77-4a08-adc0-3e35715cc92a", Context.NONE);
+ }
+}
+```
+
+### AlertsSuppressionRules_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AlertsSuppressionRules Delete. */
+public final class AlertsSuppressionRulesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/DeleteAlertsSuppressionRule_example.json
+ */
+ /**
+ * Sample code: Delete suppression rule data for a subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void deleteSuppressionRuleDataForASubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.alertsSuppressionRules().deleteWithResponse("dismissIpAnomalyAlerts", Context.NONE);
+ }
+}
+```
+
+### AlertsSuppressionRules_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AlertsSuppressionRules Get. */
+public final class AlertsSuppressionRulesGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/GetAlertsSuppressionRule_example.json
+ */
+ /**
+ * Sample code: Get suppression alert rule for subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSuppressionAlertRuleForSubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.alertsSuppressionRules().getWithResponse("dismissIpAnomalyAlerts", Context.NONE);
+ }
+}
+```
+
+### AlertsSuppressionRules_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AlertsSuppressionRules List. */
+public final class AlertsSuppressionRulesListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/GetAlertsSuppressionRules_example.json
+ */
+ /**
+ * Sample code: Get suppression rules for subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSuppressionRulesForSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.alertsSuppressionRules().list(null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/GetAlertsSuppressionRulesWithAlertType_example.json
+ */
+ /**
+ * Sample code: Get suppression alert rule for subscription, filtered by AlertType.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSuppressionAlertRuleForSubscriptionFilteredByAlertType(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.alertsSuppressionRules().list("IpAnomaly", Context.NONE);
+ }
+}
+```
+
+### AlertsSuppressionRules_Update
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.security.fluent.models.AlertsSuppressionRuleInner;
+import com.azure.resourcemanager.security.models.RuleState;
+import com.azure.resourcemanager.security.models.ScopeElement;
+import com.azure.resourcemanager.security.models.SuppressionAlertsScope;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for AlertsSuppressionRules Update. */
+public final class AlertsSuppressionRulesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/PutAlertsSuppressionRule_example.json
+ */
+ /**
+ * Sample code: Update or create suppression rule for subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void updateOrCreateSuppressionRuleForSubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) throws IOException {
+ manager
+ .alertsSuppressionRules()
+ .updateWithResponse(
+ "dismissIpAnomalyAlerts",
+ new AlertsSuppressionRuleInner()
+ .withAlertType("IpAnomaly")
+ .withExpirationDateUtc(OffsetDateTime.parse("2019-12-01T19:50:47.083633Z"))
+ .withReason("FalsePositive")
+ .withState(RuleState.ENABLED)
+ .withComment("Test VM")
+ .withSuppressionAlertsScope(
+ new SuppressionAlertsScope()
+ .withAllOf(
+ Arrays
+ .asList(
+ new ScopeElement()
+ .withField("entities.ip.address")
+ .withAdditionalProperties(
+ mapOf(
+ "in",
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "[\"104.215.95.187\",\"52.164.206.56\"]",
+ Object.class,
+ SerializerEncoding.JSON))),
+ new ScopeElement()
+ .withField("entities.process.commandline")
+ .withAdditionalProperties(mapOf("contains", "POWERSHELL.EXE"))))),
+ Context.NONE);
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### AllowedConnections_Get
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.models.ConnectionType;
+
+/** Samples for AllowedConnections Get. */
+public final class AllowedConnectionsGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/AllowedConnections/GetAllowedConnections_example.json
+ */
+ /**
+ * Sample code: Get allowed connections.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getAllowedConnections(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .allowedConnections()
+ .getWithResponse("myResourceGroup", "centralus", ConnectionType.INTERNAL, Context.NONE);
+ }
+}
+```
+
+### AllowedConnections_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AllowedConnections List. */
+public final class AllowedConnectionsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/AllowedConnections/GetAllowedConnectionsSubscription_example.json
+ */
+ /**
+ * Sample code: Get allowed connections on a subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getAllowedConnectionsOnASubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.allowedConnections().list(Context.NONE);
+ }
+}
+```
+
+### AllowedConnections_ListByHomeRegion
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AllowedConnections ListByHomeRegion. */
+public final class AllowedConnectionsListByHomeRegionSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/AllowedConnections/GetAllowedConnectionsSubscriptionLocation_example.json
+ */
+ /**
+ * Sample code: Get allowed connections on a subscription from security data location.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getAllowedConnectionsOnASubscriptionFromSecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.allowedConnections().listByHomeRegion("centralus", Context.NONE);
+ }
+}
+```
+
+### Assessments_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.security.models.AssessmentStatus;
+import com.azure.resourcemanager.security.models.AssessmentStatusCode;
+import com.azure.resourcemanager.security.models.ResourceDetails;
+
+/** Samples for Assessments CreateOrUpdate. */
+public final class AssessmentsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/Assessments/PutAssessment_example.json
+ */
+ /**
+ * Sample code: Create security recommendation task on a resource.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createSecurityRecommendationTaskOnAResource(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .assessments()
+ .define("8bb8be0a-6010-4789-812f-e4d661c4ed0e")
+ .withExistingResourceId(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2")
+ .withStatus(new AssessmentStatus().withCode(AssessmentStatusCode.HEALTHY))
+ .withResourceDetails(new ResourceDetails())
+ .create();
+ }
+}
+```
+
+### Assessments_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Assessments Delete. */
+public final class AssessmentsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/Assessments/DeleteAssessment_example.json
+ */
+ /**
+ * Sample code: Delete a security recommendation task on a resource.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void deleteASecurityRecommendationTaskOnAResource(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .assessments()
+ .deleteWithResponse(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2",
+ "8bb8be0a-6010-4789-812f-e4d661c4ed0e",
+ Context.NONE);
+ }
+}
+```
+
+### Assessments_Get
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.models.ExpandEnum;
+
+/** Samples for Assessments Get. */
+public final class AssessmentsGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/Assessments/GetAssessmentWithExpand_example.json
+ */
+ /**
+ * Sample code: Get security recommendation task from security data location with expand parameter.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecurityRecommendationTaskFromSecurityDataLocationWithExpandParameter(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .assessments()
+ .getWithResponse(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2",
+ "21300918-b2e3-0346-785f-c77ff57d243b",
+ ExpandEnum.LINKS,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/Assessments/GetAssessment_example.json
+ */
+ /**
+ * Sample code: Get security recommendation task from security data location.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecurityRecommendationTaskFromSecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .assessments()
+ .getWithResponse(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2",
+ "21300918-b2e3-0346-785f-c77ff57d243b",
+ null,
+ Context.NONE);
+ }
+}
+```
+
+### Assessments_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Assessments List. */
+public final class AssessmentsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/Assessments/ListAssessments_example.json
+ */
+ /**
+ * Sample code: List security assessments.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listSecurityAssessments(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.assessments().list("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", Context.NONE);
+ }
+}
+```
+
+### AssessmentsMetadata_CreateInSubscription
+
+```java
+import com.azure.resourcemanager.security.models.AssessmentType;
+import com.azure.resourcemanager.security.models.Categories;
+import com.azure.resourcemanager.security.models.ImplementationEffort;
+import com.azure.resourcemanager.security.models.Severity;
+import com.azure.resourcemanager.security.models.Threats;
+import com.azure.resourcemanager.security.models.UserImpact;
+import java.util.Arrays;
+
+/** Samples for AssessmentsMetadata CreateInSubscription. */
+public final class AssessmentsMetadataCreateInSubscriptionSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/AssessmentsMetadata/CreateAssessmentsMetadata_subscription_example.json
+ */
+ /**
+ * Sample code: Create security assessment metadata for subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createSecurityAssessmentMetadataForSubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .assessmentsMetadatas()
+ .define("ca039e75-a276-4175-aebc-bcd41e4b14b7")
+ .withDisplayName("Install endpoint protection solution on virtual machine scale sets")
+ .withDescription(
+ "Install an endpoint protection solution on your virtual machines scale sets, to protect them from"
+ + " threats and vulnerabilities.")
+ .withRemediationDescription(
+ "To install an endpoint protection solution: 1. Follow"
+ + " the instructions in How do I turn on antimalware in my virtual machine scale set")
+ .withCategories(Arrays.asList(Categories.COMPUTE))
+ .withSeverity(Severity.MEDIUM)
+ .withUserImpact(UserImpact.LOW)
+ .withImplementationEffort(ImplementationEffort.LOW)
+ .withThreats(Arrays.asList(Threats.DATA_EXFILTRATION, Threats.DATA_SPILLAGE, Threats.MALICIOUS_INSIDER))
+ .withAssessmentType(AssessmentType.CUSTOMER_MANAGED)
+ .create();
+ }
+}
+```
+
+### AssessmentsMetadata_DeleteInSubscription
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AssessmentsMetadata DeleteInSubscription. */
+public final class AssessmentsMetadataDeleteInSubscriptionSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/AssessmentsMetadata/DeleteAssessmentsMetadata_subscription_example.json
+ */
+ /**
+ * Sample code: Delete a security assessment metadata for subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void deleteASecurityAssessmentMetadataForSubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .assessmentsMetadatas()
+ .deleteInSubscriptionWithResponse("ca039e75-a276-4175-aebc-bcd41e4b14b7", Context.NONE);
+ }
+}
+```
+
+### AssessmentsMetadata_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AssessmentsMetadata Get. */
+public final class AssessmentsMetadataGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/AssessmentsMetadata/GetAssessmentsMetadata_example.json
+ */
+ /**
+ * Sample code: Get security assessment metadata.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecurityAssessmentMetadata(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.assessmentsMetadatas().getWithResponse("21300918-b2e3-0346-785f-c77ff57d243b", Context.NONE);
+ }
+}
+```
+
+### AssessmentsMetadata_GetInSubscription
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AssessmentsMetadata GetInSubscription. */
+public final class AssessmentsMetadataGetInSubscriptionSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/AssessmentsMetadata/GetAssessmentsMetadata_subscription_example.json
+ */
+ /**
+ * Sample code: Get security assessment metadata for subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecurityAssessmentMetadataForSubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .assessmentsMetadatas()
+ .getInSubscriptionWithResponse("21300918-b2e3-0346-785f-c77ff57d243b", Context.NONE);
+ }
+}
+```
+
+### AssessmentsMetadata_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AssessmentsMetadata List. */
+public final class AssessmentsMetadataListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/AssessmentsMetadata/ListAssessmentsMetadata_example.json
+ */
+ /**
+ * Sample code: List security assessment metadata.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listSecurityAssessmentMetadata(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.assessmentsMetadatas().list(Context.NONE);
+ }
+}
+```
+
+### AssessmentsMetadata_ListBySubscription
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AssessmentsMetadata ListBySubscription. */
+public final class AssessmentsMetadataListBySubscriptionSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/AssessmentsMetadata/ListAssessmentsMetadata_subscription_example.json
+ */
+ /**
+ * Sample code: List security assessment metadata for subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listSecurityAssessmentMetadataForSubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.assessmentsMetadatas().listBySubscription(Context.NONE);
+ }
+}
+```
+
+### AutoProvisioningSettings_Create
+
+```java
+import com.azure.resourcemanager.security.models.AutoProvision;
+
+/** Samples for AutoProvisioningSettings Create. */
+public final class AutoProvisioningSettingsCreateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/AutoProvisioningSettings/CreateAutoProvisioningSettingsSubscription_example.json
+ */
+ /**
+ * Sample code: Create auto provisioning settings for subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createAutoProvisioningSettingsForSubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.autoProvisioningSettings().define("default").withAutoProvision(AutoProvision.ON).create();
+ }
+}
+```
+
+### AutoProvisioningSettings_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AutoProvisioningSettings Get. */
+public final class AutoProvisioningSettingsGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/AutoProvisioningSettings/GetAutoProvisioningSettingSubscription_example.json
+ */
+ /**
+ * Sample code: Get an auto provisioning setting for subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getAnAutoProvisioningSettingForSubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.autoProvisioningSettings().getWithResponse("default", Context.NONE);
+ }
+}
+```
+
+### AutoProvisioningSettings_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AutoProvisioningSettings List. */
+public final class AutoProvisioningSettingsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/AutoProvisioningSettings/GetAutoProvisioningSettingsSubscription_example.json
+ */
+ /**
+ * Sample code: Get auto provisioning settings for subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getAutoProvisioningSettingsForSubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.autoProvisioningSettings().list(Context.NONE);
+ }
+}
+```
+
+### Automations_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.security.models.AutomationActionLogicApp;
+import com.azure.resourcemanager.security.models.AutomationRuleSet;
+import com.azure.resourcemanager.security.models.AutomationScope;
+import com.azure.resourcemanager.security.models.AutomationSource;
+import com.azure.resourcemanager.security.models.AutomationTriggeringRule;
+import com.azure.resourcemanager.security.models.EventSource;
+import com.azure.resourcemanager.security.models.Operator;
+import com.azure.resourcemanager.security.models.PropertyType;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Automations CreateOrUpdate. */
+public final class AutomationsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/Automations/PutAutomationAllAssessments_example.json
+ */
+ /**
+ * Sample code: Create or update a security automation for all assessments (including all severities).
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createOrUpdateASecurityAutomationForAllAssessmentsIncludingAllSeverities(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .automations()
+ .define("exampleAutomation")
+ .withRegion("Central US")
+ .withExistingResourceGroup("exampleResourceGroup")
+ .withTags(mapOf())
+ .withDescription(
+ "An example of a security automation that triggers one LogicApp resource (myTest1) on any security"
+ + " assessment")
+ .withIsEnabled(true)
+ .withScopes(
+ Arrays
+ .asList(
+ new AutomationScope()
+ .withDescription(
+ "A description that helps to identify this scope - for example: security assessments"
+ + " that relate to the resource group myResourceGroup within the subscription"
+ + " a5caac9c-5c04-49af-b3d0-e204f40345d5")
+ .withScopePath(
+ "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/myResourceGroup")))
+ .withSources(Arrays.asList(new AutomationSource().withEventSource(EventSource.ASSESSMENTS)))
+ .withActions(
+ Arrays
+ .asList(
+ new AutomationActionLogicApp()
+ .withLogicAppResourceId(
+ "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1")
+ .withUri("https://exampleTriggerUri1.com")))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/Automations/PutDisableAutomation_example.json
+ */
+ /**
+ * Sample code: Disable or enable a security automation.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void disableOrEnableASecurityAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .automations()
+ .define("exampleAutomation")
+ .withRegion("Central US")
+ .withExistingResourceGroup("exampleResourceGroup")
+ .withTags(mapOf())
+ .withDescription(
+ "An example of a security automation that triggers one LogicApp resource (myTest1) on any security"
+ + " assessment of type customAssessment")
+ .withIsEnabled(false)
+ .withScopes(
+ Arrays
+ .asList(
+ new AutomationScope()
+ .withDescription(
+ "A description that helps to identify this scope - for example: security assessments"
+ + " that relate to the resource group myResourceGroup within the subscription"
+ + " a5caac9c-5c04-49af-b3d0-e204f40345d5")
+ .withScopePath(
+ "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/myResourceGroup")))
+ .withSources(
+ Arrays
+ .asList(
+ new AutomationSource()
+ .withEventSource(EventSource.ASSESSMENTS)
+ .withRuleSets(
+ Arrays
+ .asList(
+ new AutomationRuleSet()
+ .withRules(
+ Arrays
+ .asList(
+ new AutomationTriggeringRule()
+ .withPropertyJPath("$.Entity.AssessmentType")
+ .withPropertyType(PropertyType.STRING)
+ .withExpectedValue("customAssessment")
+ .withOperator(Operator.EQUALS)))))))
+ .withActions(
+ Arrays
+ .asList(
+ new AutomationActionLogicApp()
+ .withLogicAppResourceId(
+ "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1")
+ .withUri("https://exampleTriggerUri1.com")))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/Automations/PutAutomationHighSeverityAssessments_example.json
+ */
+ /**
+ * Sample code: Create or update a security automation for all high severity assessments.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createOrUpdateASecurityAutomationForAllHighSeverityAssessments(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .automations()
+ .define("exampleAutomation")
+ .withRegion("Central US")
+ .withExistingResourceGroup("exampleResourceGroup")
+ .withTags(mapOf())
+ .withDescription(
+ "An example of a security automation that triggers one LogicApp resource (myTest1) on any high"
+ + " severity security assessment")
+ .withIsEnabled(true)
+ .withScopes(
+ Arrays
+ .asList(
+ new AutomationScope()
+ .withDescription(
+ "A description that helps to identify this scope - for example: security assessments"
+ + " that relate to the resource group myResourceGroup within the subscription"
+ + " a5caac9c-5c04-49af-b3d0-e204f40345d5")
+ .withScopePath(
+ "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/myResourceGroup")))
+ .withSources(
+ Arrays
+ .asList(
+ new AutomationSource()
+ .withEventSource(EventSource.ASSESSMENTS)
+ .withRuleSets(
+ Arrays
+ .asList(
+ new AutomationRuleSet()
+ .withRules(
+ Arrays
+ .asList(
+ new AutomationTriggeringRule()
+ .withPropertyJPath("properties.metadata.severity")
+ .withPropertyType(PropertyType.STRING)
+ .withExpectedValue("High")
+ .withOperator(Operator.EQUALS)))))))
+ .withActions(
+ Arrays
+ .asList(
+ new AutomationActionLogicApp()
+ .withLogicAppResourceId(
+ "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1")
+ .withUri("https://exampleTriggerUri1.com")))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Automations_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Automations Delete. */
+public final class AutomationsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/Automations/DeleteAutomation_example.json
+ */
+ /**
+ * Sample code: Delete a security automation.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void deleteASecurityAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.automations().deleteWithResponse("myRg", "myAutomationName", Context.NONE);
+ }
+}
+```
+
+### Automations_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Automations GetByResourceGroup. */
+public final class AutomationsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/Automations/GetAutomationResourceGroup_example.json
+ */
+ /**
+ * Sample code: Retrieve a security automation.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void retrieveASecurityAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.automations().getByResourceGroupWithResponse("exampleResourceGroup", "exampleAutomation", Context.NONE);
+ }
+}
+```
+
+### Automations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Automations List. */
+public final class AutomationsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/Automations/GetAutomationsSubscription_example.json
+ */
+ /**
+ * Sample code: List all security automations of a specified subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listAllSecurityAutomationsOfASpecifiedSubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.automations().list(Context.NONE);
+ }
+}
+```
+
+### Automations_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Automations ListByResourceGroup. */
+public final class AutomationsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/Automations/GetAutomationsResourceGroup_example.json
+ */
+ /**
+ * Sample code: List all security automations of a specified resource group.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listAllSecurityAutomationsOfASpecifiedResourceGroup(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.automations().listByResourceGroup("exampleResourceGroup", Context.NONE);
+ }
+}
+```
+
+### Automations_Validate
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.fluent.models.AutomationInner;
+import com.azure.resourcemanager.security.models.AutomationActionLogicApp;
+import com.azure.resourcemanager.security.models.AutomationRuleSet;
+import com.azure.resourcemanager.security.models.AutomationScope;
+import com.azure.resourcemanager.security.models.AutomationSource;
+import com.azure.resourcemanager.security.models.AutomationTriggeringRule;
+import com.azure.resourcemanager.security.models.EventSource;
+import com.azure.resourcemanager.security.models.Operator;
+import com.azure.resourcemanager.security.models.PropertyType;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Automations Validate. */
+public final class AutomationsValidateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/Automations/ValidateAutomation_example.json
+ */
+ /**
+ * Sample code: Validate the security automation model before create or update.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void validateTheSecurityAutomationModelBeforeCreateOrUpdate(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .automations()
+ .validateWithResponse(
+ "exampleResourceGroup",
+ "exampleAutomation",
+ new AutomationInner()
+ .withLocation("Central US")
+ .withTags(mapOf())
+ .withDescription(
+ "An example of a security automation that triggers one LogicApp resource (myTest1) on any"
+ + " security assessment of type customAssessment")
+ .withIsEnabled(true)
+ .withScopes(
+ Arrays
+ .asList(
+ new AutomationScope()
+ .withDescription(
+ "A description that helps to identify this scope - for example: security"
+ + " assessments that relate to the resource group myResourceGroup within"
+ + " the subscription a5caac9c-5c04-49af-b3d0-e204f40345d5")
+ .withScopePath(
+ "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/myResourceGroup")))
+ .withSources(
+ Arrays
+ .asList(
+ new AutomationSource()
+ .withEventSource(EventSource.ASSESSMENTS)
+ .withRuleSets(
+ Arrays
+ .asList(
+ new AutomationRuleSet()
+ .withRules(
+ Arrays
+ .asList(
+ new AutomationTriggeringRule()
+ .withPropertyJPath("$.Entity.AssessmentType")
+ .withPropertyType(PropertyType.STRING)
+ .withExpectedValue("customAssessment")
+ .withOperator(Operator.EQUALS)))))))
+ .withActions(
+ Arrays
+ .asList(
+ new AutomationActionLogicApp()
+ .withLogicAppResourceId(
+ "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1")
+ .withUri("https://exampleTriggerUri1.com"))),
+ Context.NONE);
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ComplianceResults_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ComplianceResults Get. */
+public final class ComplianceResultsGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2017-08-01/examples/ComplianceResults/GetComplianceResults_example.json
+ */
+ /**
+ * Sample code: Get compliance results on subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getComplianceResultsOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .complianceResults()
+ .getWithResponse(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "DesignateMoreThanOneOwner", Context.NONE);
+ }
+}
+```
+
+### ComplianceResults_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ComplianceResults List. */
+public final class ComplianceResultsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2017-08-01/examples/ComplianceResults/ListComplianceResults_example.json
+ */
+ /**
+ * Sample code: Get compliance results on subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getComplianceResultsOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.complianceResults().list("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", Context.NONE);
+ }
+}
+```
+
+### Compliances_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Compliances Get. */
+public final class CompliancesGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/Compliances/GetCompliance_example.json
+ */
+ /**
+ * Sample code: Get security compliance data for a day.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecurityComplianceDataForADay(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .compliances()
+ .getWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "2018-01-01Z", Context.NONE);
+ }
+}
+```
+
+### Compliances_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Compliances List. */
+public final class CompliancesListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/Compliances/GetCompliances_example.json
+ */
+ /**
+ * Sample code: Get security compliance data over time.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecurityComplianceDataOverTime(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.compliances().list("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", Context.NONE);
+ }
+}
+```
+
+### Connectors_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.security.models.AutoProvision;
+import com.azure.resourcemanager.security.models.AwAssumeRoleAuthenticationDetailsProperties;
+import com.azure.resourcemanager.security.models.AwsCredsAuthenticationDetailsProperties;
+import com.azure.resourcemanager.security.models.GcpCredentialsDetailsProperties;
+import com.azure.resourcemanager.security.models.HybridComputeSettingsProperties;
+import com.azure.resourcemanager.security.models.ProxyServerProperties;
+import com.azure.resourcemanager.security.models.ServicePrincipalProperties;
+
+/** Samples for Connectors CreateOrUpdate. */
+public final class ConnectorsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/Connectors/CreateUpdateGcpCredentialsConnectorSubscription_example.json
+ */
+ /**
+ * Sample code: gcpCredentials - Create a cloud account connector for a subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void gcpCredentialsCreateACloudAccountConnectorForASubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .connectors()
+ .define("gcp_dev")
+ .withHybridComputeSettings(new HybridComputeSettingsProperties().withAutoProvision(AutoProvision.OFF))
+ .withAuthenticationDetails(
+ new GcpCredentialsDetailsProperties()
+ .withOrganizationId("AscDemoOrg")
+ .withType("service_account")
+ .withProjectId("asc-project-1234")
+ .withPrivateKeyId("6efg587hra2568as34d22326b044cc20dc2af")
+ .withPrivateKey(
+ "-----BEGIN PRIVATE KEY-----\n"
+ + "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCpxYHcLzcDZ6/Q\n"
+ + "AeQZnQXM5GTb3p09Xsbjo2T2F61b6I7FZiQXBrbw3Zf0CUCkkqTTpD5xifl82yQ6\n"
+ + "89V7SAe8hxI7esAcVDhm/aJMqzVjHLISAU2L3li1sn0jjY2oYtndwN6bRivP8O6t\n"
+ + "9F+W6E0zMlbCxtpZEHLbb6WxlJJrwEQ0MPH2yOCwZUQi6NHksAtEzX2nNKJNyUC7\n"
+ + "QyBVHHMm34H2bmZwsuQp3y2otpcJ9tJnVmYfC3k/w4x2L+DIK7JnQP/C1wQqu2du\n"
+ + "c0w6sydF6RhLoHButrVdYRJTdfK4k03SsSTyMqZ+f7LNnKw3xenzw1VmEpk8mvoQ\n"
+ + "t08tCBOrAgMBAAECggEAByzz6iyMtLYjNjV+QJ7kad6VbL2iA8AHxANZ9xTVHPdd\n"
+ + "YXaJu/dqsA+NpqDlfI8+LDva782XH/HbPCqmMUnAGfXTjXQIvqnIoIHD5F2wKfpC\n"
+ + "hIRNlMXXFgbvRxtqi11yO+80+XcjzuwuCmgzyhsTeEB+bkkdXXpWgHPdmv3emnM6\n"
+ + "MQM9Zgrug0UndPmiUwKOcJSU4PlmlTpHEV4vA6JfA4bvphy9m1jxO5qWeah5yym2\n"
+ + "6FP5BRIDF98kFrDnSXJjajwgLCQ+MypFQXyax6XkxDxuKXbng1bv7eZDjqazIChk\n"
+ + "m0y14X0s0jnWc+AX8vfeSf7d+EsGdVinEwR1aAawEQKBgQDqDB0qxcIQ1oI1Kww8\n"
+ + "9vXefTiuWsf47F+fJ/DIOEbiRfE8IdCgmOABvcqJIoxW/DFMBEdLCcx73Km7pOmd\n"
+ + "Kg1ddScnaO8cOj2v/Ub+fAqVrA4ki4ViYP0A7/Nogga3Jr/x3ey5bitrIfFImteS\n"
+ + "CgBHBzZvoQpvO4lB2tKVgo2P9wKBgQC5sgTEq4sasRGSAY6lIoJno0I8w28a/16D\n"
+ + "es60XQeY1ger8uTGwlT02v/u/arDUmRLPClpujXq6gK29KvtRCHy7JkpGbqW2bZs\n"
+ + "PFKKWR7Tk3XPKYyjv94AIi5/xoFeDhS4lpAvy3Z5tQhYS6wqWKvT6yZQ3kM+Hfxs\n"
+ + "pHgvu3mU7QKBgQC9/E1k3hj1cBtMK4CIsHPPQljTd4+iacYJPPPAo6YuoVX8WPqw\n"
+ + "ksgrwbN59Fh1d8xQh5yTtgWOegYx8uFMGcm1lpbM7+pBQKm4hWGuzGQPMRZd5f/F\n"
+ + "ZzOZIi61I+9tlv/yxxIVR+/ozCm/pSneO04UWi9/F/uPZYW6tnWAtfRR6wKBgGsZ\n"
+ + "8MQaCK4JaI/klAhMghgSQnbXZXKVzUZaA3Rln6cX8u7KtgapOOTMlwaZie8Dy1LV\n"
+ + "TTFstAJcm9o3/h1nyYjZy3C4JTUyNpPwqs6enjf7edxVI4eidwFutZD+xcigqHTa\n"
+ + "aikW2atSrZB3fMIjyF7+5meH+hKOqvNiXOty3qn1AoGAZuVxYQy5FVq3YZxzr3Aa\n"
+ + "Am0ShoXTF6QYIbsaUiUGoa/NlHcw9V/lj4AqBRbxbaYMD+hz2J/od9cb268eJKY8\n"
+ + "3b6MvaUqdNhNnWodJXLhgtmGEHDKmTppz2JSTx/tVzCfhFdcOC79StZvcKLhtoFQ\n"
+ + "+/3lEw6NCIXzm5E4+dtJG4k=\n"
+ + "-----END PRIVATE KEY-----\n")
+ .withClientEmail("asc-135@asc-project-1234.iam.gserviceaccount.com")
+ .withClientId("105889053725632919854")
+ .withAuthUri("https://accounts.google.com/o/oauth2/auth")
+ .withTokenUri("https://oauth2.googleapis.com/token")
+ .withAuthProviderX509CertUrl("https://www.googleapis.com/oauth2/v1/certs")
+ .withClientX509CertUrl(
+ "https://www.googleapis.com/robot/v1/metadata/x509/asc-135%40asc-project-1234.iam.gserviceaccount.com"))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/Connectors/CreateUpdateAwsCredConnectorSubscription_example.json
+ */
+ /**
+ * Sample code: AwsCred - Create a cloud account connector for a subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void awsCredCreateACloudAccountConnectorForASubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .connectors()
+ .define("aws_dev1")
+ .withHybridComputeSettings(
+ new HybridComputeSettingsProperties()
+ .withAutoProvision(AutoProvision.ON)
+ .withResourceGroupName("AwsConnectorRG")
+ .withRegion("West US 2")
+ .withProxyServer(new ProxyServerProperties().withIp("167.220.197.140").withPort("34"))
+ .withServicePrincipal(
+ new ServicePrincipalProperties()
+ .withApplicationId("ad9bcd79-be9c-45ab-abd8-80ca1654a7d1")
+ .withSecret("")))
+ .withAuthenticationDetails(
+ new AwsCredsAuthenticationDetailsProperties()
+ .withAwsAccessKeyId("AKIARPZCNODDNAEQFSOE")
+ .withAwsSecretAccessKey(""))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/Connectors/CreateUpdateAwsAssumeRoleConnectorSubscription_example.json
+ */
+ /**
+ * Sample code: AwsAssumeRole - Create a cloud account connector for a subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void awsAssumeRoleCreateACloudAccountConnectorForASubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .connectors()
+ .define("aws_dev2")
+ .withHybridComputeSettings(
+ new HybridComputeSettingsProperties()
+ .withAutoProvision(AutoProvision.ON)
+ .withResourceGroupName("AwsConnectorRG")
+ .withRegion("West US 2")
+ .withProxyServer(new ProxyServerProperties().withIp("167.220.197.140").withPort("34"))
+ .withServicePrincipal(
+ new ServicePrincipalProperties()
+ .withApplicationId("ad9bcd79-be9c-45ab-abd8-80ca1654a7d1")
+ .withSecret("")))
+ .withAuthenticationDetails(
+ new AwAssumeRoleAuthenticationDetailsProperties()
+ .withAwsAssumeRoleArn("arn:aws:iam::81231569658:role/AscConnector")
+ .withAwsExternalId("20ff7fc3-e762-44dd-bd96-b71116dcdc23"))
+ .create();
+ }
+}
+```
+
+### Connectors_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Connectors Delete. */
+public final class ConnectorsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/Connectors/DeleteConnectorSubscription_example.json
+ */
+ /**
+ * Sample code: Delete a cloud account connector from a subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void deleteACloudAccountConnectorFromASubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.connectors().deleteWithResponse("aws_dev1", Context.NONE);
+ }
+}
+```
+
+### Connectors_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Connectors Get. */
+public final class ConnectorsGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/Connectors/GetConnectorSubscription_example.json
+ */
+ /**
+ * Sample code: Details of a specific cloud account connector.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void detailsOfASpecificCloudAccountConnector(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.connectors().getWithResponse("aws_dev1", Context.NONE);
+ }
+}
+```
+
+### Connectors_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Connectors List. */
+public final class ConnectorsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/Connectors/GetListConnectorSubscription_example.json
+ */
+ /**
+ * Sample code: Get all cloud accounts connectors of a subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getAllCloudAccountsConnectorsOfASubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.connectors().list(Context.NONE);
+ }
+}
+```
+
+### CustomAssessmentAutomations_Create
+
+```java
+import com.azure.resourcemanager.security.models.SeverityEnum;
+import com.azure.resourcemanager.security.models.SupportedCloudEnum;
+
+/** Samples for CustomAssessmentAutomations Create. */
+public final class CustomAssessmentAutomationsCreateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationCreate_example.json
+ */
+ /**
+ * Sample code: Create a Custom Assessment Automation.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createACustomAssessmentAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .customAssessmentAutomations()
+ .define("MyCustomAssessmentAutomation")
+ .withExistingResourceGroup("TestResourceGroup")
+ .withCompressedQuery(
+ "DQAKAEkAYQBtAF8ARwByAG8AdQBwAA0ACgB8ACAAZQB4AHQAZQBuAGQAIABIAGUAYQBsAHQAaABTAHQAYQB0AHUAcwAgAD0AIABpAGYAZgAoAHQAbwBzAHQAcgBpAG4AZwAoAFIAZQBjAG8AcgBkAC4AVQBzAGUAcgBOAGEAbQBlACkAIABjAG8AbgB0AGEAaQBuAHMAIAAnAHUAcwBlAHIAJwAsACAAJwBVAE4ASABFAEEATABUAEgAWQAnACwAIAAnAEgARQBBAEwAVABIAFkAJwApAA0ACgA=")
+ .withSupportedCloud(SupportedCloudEnum.AWS)
+ .withSeverity(SeverityEnum.MEDIUM)
+ .withDisplayName("Password Policy")
+ .withDescription("Data should be encrypted")
+ .withRemediationDescription("Encrypt store by...")
+ .create();
+ }
+}
+```
+
+### CustomAssessmentAutomations_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for CustomAssessmentAutomations Delete. */
+public final class CustomAssessmentAutomationsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationDelete_example.json
+ */
+ /**
+ * Sample code: Delete a Custom Assessment Automation.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void deleteACustomAssessmentAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .customAssessmentAutomations()
+ .deleteWithResponse("TestResourceGroup", "MyCustomAssessmentAutomation", Context.NONE);
+ }
+}
+```
+
+### CustomAssessmentAutomations_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for CustomAssessmentAutomations GetByResourceGroup. */
+public final class CustomAssessmentAutomationsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationGet_example.json
+ */
+ /**
+ * Sample code: Get a Custom Assessment Automation.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getACustomAssessmentAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .customAssessmentAutomations()
+ .getByResourceGroupWithResponse("TestResourceGroup", "MyCustomAssessmentAutomation", Context.NONE);
+ }
+}
+```
+
+### CustomAssessmentAutomations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for CustomAssessmentAutomations List. */
+public final class CustomAssessmentAutomationsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListBySubscription_example.json
+ */
+ /**
+ * Sample code: List Custom Assessment Automations in a subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listCustomAssessmentAutomationsInASubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.customAssessmentAutomations().list(Context.NONE);
+ }
+}
+```
+
+### CustomAssessmentAutomations_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for CustomAssessmentAutomations ListByResourceGroup. */
+public final class CustomAssessmentAutomationsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListByResourceGroup_example.json
+ */
+ /**
+ * Sample code: List Custom Assessment Automations in a subscription and a resource group.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listCustomAssessmentAutomationsInASubscriptionAndAResourceGroup(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.customAssessmentAutomations().listByResourceGroup("TestResourceGroup", Context.NONE);
+ }
+}
+```
+
+### CustomEntityStoreAssignments_Create
+
+```java
+/** Samples for CustomEntityStoreAssignments Create. */
+public final class CustomEntityStoreAssignmentsCreateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentCreate_example.json
+ */
+ /**
+ * Sample code: Create a custom entity store assignment.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createACustomEntityStoreAssignment(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .customEntityStoreAssignments()
+ .define("33e7cc6e-a139-4723-a0e5-76993aee0771")
+ .withExistingResourceGroup("TestResourceGroup")
+ .withPrincipal("aaduser=f3923a3e-ad57-4752-b1a9-fbf3c8e5e082;72f988bf-86f1-41af-91ab-2d7cd011db47")
+ .create();
+ }
+}
+```
+
+### CustomEntityStoreAssignments_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for CustomEntityStoreAssignments Delete. */
+public final class CustomEntityStoreAssignmentsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentDelete_example.json
+ */
+ /**
+ * Sample code: Delete a custom entity store assignment.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void deleteACustomEntityStoreAssignment(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .customEntityStoreAssignments()
+ .deleteWithResponse("TestResourceGroup", "33e7cc6e-a139-4723-a0e5-76993aee0771", Context.NONE);
+ }
+}
+```
+
+### CustomEntityStoreAssignments_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for CustomEntityStoreAssignments GetByResourceGroup. */
+public final class CustomEntityStoreAssignmentsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentGet_example.json
+ */
+ /**
+ * Sample code: Get a custom entity store assignment.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getACustomEntityStoreAssignment(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .customEntityStoreAssignments()
+ .getByResourceGroupWithResponse("TestResourceGroup", "33e7cc6e-a139-4723-a0e5-76993aee0771", Context.NONE);
+ }
+}
+```
+
+### CustomEntityStoreAssignments_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for CustomEntityStoreAssignments List. */
+public final class CustomEntityStoreAssignmentsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListBySubscription_example.json
+ */
+ /**
+ * Sample code: List custom entity store assignments in a subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listCustomEntityStoreAssignmentsInASubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.customEntityStoreAssignments().list(Context.NONE);
+ }
+}
+```
+
+### CustomEntityStoreAssignments_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for CustomEntityStoreAssignments ListByResourceGroup. */
+public final class CustomEntityStoreAssignmentsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListByResourceGroup_example.json
+ */
+ /**
+ * Sample code: List custom entity store assignments in a subscription and a resource group.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listCustomEntityStoreAssignmentsInASubscriptionAndAResourceGroup(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.customEntityStoreAssignments().listByResourceGroup("TestResourceGroup", Context.NONE);
+ }
+}
+```
+
+### DeviceSecurityGroups_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.security.models.ActiveConnectionsNotInAllowedRange;
+import java.time.Duration;
+import java.util.Arrays;
+
+/** Samples for DeviceSecurityGroups CreateOrUpdate. */
+public final class DeviceSecurityGroupsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/DeviceSecurityGroups/PutDeviceSecurityGroups_example.json
+ */
+ /**
+ * Sample code: Create or update a device security group for the specified IoT hub resource.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createOrUpdateADeviceSecurityGroupForTheSpecifiedIoTHubResource(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .deviceSecurityGroups()
+ .define("samplesecuritygroup")
+ .withExistingResourceId(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Devices/iotHubs/sampleiothub")
+ .withTimeWindowRules(
+ Arrays
+ .asList(
+ new ActiveConnectionsNotInAllowedRange()
+ .withIsEnabled(true)
+ .withMinThreshold(0)
+ .withMaxThreshold(30)
+ .withTimeWindowSize(Duration.parse("PT05M"))))
+ .create();
+ }
+}
+```
+
+### DeviceSecurityGroups_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DeviceSecurityGroups Delete. */
+public final class DeviceSecurityGroupsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/DeviceSecurityGroups/DeleteDeviceSecurityGroups_example.json
+ */
+ /**
+ * Sample code: Delete a device security group for the specified IoT Hub resource.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void deleteADeviceSecurityGroupForTheSpecifiedIoTHubResource(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .deviceSecurityGroups()
+ .deleteWithResponse(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Devices/iotHubs/sampleiothub",
+ "samplesecuritygroup",
+ Context.NONE);
+ }
+}
+```
+
+### DeviceSecurityGroups_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DeviceSecurityGroups Get. */
+public final class DeviceSecurityGroupsGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/DeviceSecurityGroups/GetDeviceSecurityGroups_example.json
+ */
+ /**
+ * Sample code: Get a device security group for the specified IoT Hub resource.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getADeviceSecurityGroupForTheSpecifiedIoTHubResource(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .deviceSecurityGroups()
+ .getWithResponse(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Devices/iotHubs/sampleiothub",
+ "samplesecuritygroup",
+ Context.NONE);
+ }
+}
+```
+
+### DeviceSecurityGroups_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DeviceSecurityGroups List. */
+public final class DeviceSecurityGroupsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/DeviceSecurityGroups/ListDeviceSecurityGroups_example.json
+ */
+ /**
+ * Sample code: List all device security groups for the specified IoT Hub resource.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listAllDeviceSecurityGroupsForTheSpecifiedIoTHubResource(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .deviceSecurityGroups()
+ .list(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Devices/iotHubs/sampleiothub",
+ Context.NONE);
+ }
+}
+```
+
+### DiscoveredSecuritySolutions_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DiscoveredSecuritySolutions Get. */
+public final class DiscoveredSecuritySolutionsGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionResourceGroupLocation_example.json
+ */
+ /**
+ * Sample code: Get discovered security solution from a security data location.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getDiscoveredSecuritySolutionFromASecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.discoveredSecuritySolutions().getWithResponse("myRg2", "centralus", "paloalto7", Context.NONE);
+ }
+}
+```
+
+### DiscoveredSecuritySolutions_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DiscoveredSecuritySolutions List. */
+public final class DiscoveredSecuritySolutionsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscription_example.json
+ */
+ /**
+ * Sample code: Get discovered security solutions.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getDiscoveredSecuritySolutions(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.discoveredSecuritySolutions().list(Context.NONE);
+ }
+}
+```
+
+### DiscoveredSecuritySolutions_ListByHomeRegion
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DiscoveredSecuritySolutions ListByHomeRegion. */
+public final class DiscoveredSecuritySolutionsListByHomeRegionSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscriptionLocation_example.json
+ */
+ /**
+ * Sample code: Get discovered security solutions from a security data location.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getDiscoveredSecuritySolutionsFromASecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.discoveredSecuritySolutions().listByHomeRegion("centralus", Context.NONE);
+ }
+}
+```
+
+### ExternalSecuritySolutions_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ExternalSecuritySolutions Get. */
+public final class ExternalSecuritySolutionsGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/GetExternalSecuritySolution_example.json
+ */
+ /**
+ * Sample code: Get external security solution.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getExternalSecuritySolution(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .externalSecuritySolutions()
+ .getWithResponse(
+ "defaultresourcegroup-eus",
+ "centralus",
+ "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus",
+ Context.NONE);
+ }
+}
+```
+
+### ExternalSecuritySolutions_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ExternalSecuritySolutions List. */
+public final class ExternalSecuritySolutionsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscription_example.json
+ */
+ /**
+ * Sample code: Get external security solutions on a subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getExternalSecuritySolutionsOnASubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.externalSecuritySolutions().list(Context.NONE);
+ }
+}
+```
+
+### ExternalSecuritySolutions_ListByHomeRegion
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ExternalSecuritySolutions ListByHomeRegion. */
+public final class ExternalSecuritySolutionsListByHomeRegionSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscriptionLocation_example.json
+ */
+ /**
+ * Sample code: Get external security solutions on a subscription from security data location.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getExternalSecuritySolutionsOnASubscriptionFromSecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.externalSecuritySolutions().listByHomeRegion("centralus", Context.NONE);
+ }
+}
+```
+
+### InformationProtectionPolicies_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.security.models.InformationProtectionKeyword;
+import com.azure.resourcemanager.security.models.InformationProtectionPoliciesInformationProtectionPolicyName;
+import com.azure.resourcemanager.security.models.InformationType;
+import com.azure.resourcemanager.security.models.SensitivityLabel;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.UUID;
+
+/** Samples for InformationProtectionPolicies CreateOrUpdate. */
+public final class InformationProtectionPoliciesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/InformationProtectionPolicies/CreateOrUpdateInformationProtectionPolicy_example.json
+ */
+ /**
+ * Sample code: Create or update an information protection policy for a management group.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createOrUpdateAnInformationProtectionPolicyForAManagementGroup(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .informationProtectionPolicies()
+ .define(InformationProtectionPoliciesInformationProtectionPolicyName.CUSTOM)
+ .withExistingScope("providers/Microsoft.Management/managementGroups/148059f7-faf3-49a6-ba35-85122112291e")
+ .withLabels(
+ mapOf(
+ "1345da73-bc5a-4a8f-b7dd-3820eb713da8",
+ new SensitivityLabel().withDisplayName("Public").withOrder(100).withEnabled(true),
+ "575739d2-3d53-4df0-9042-4c7772d5c7b1",
+ new SensitivityLabel().withDisplayName("Confidential").withOrder(300).withEnabled(true),
+ "7aa516c7-5a53-4857-bc6e-6808c6acd542",
+ new SensitivityLabel().withDisplayName("General").withOrder(200).withEnabled(true)))
+ .withInformationTypes(
+ mapOf(
+ "3bf35491-99b8-41f2-86d5-c1200a7df658",
+ new InformationType()
+ .withDisplayName("Custom")
+ .withOrder(1400)
+ .withRecommendedLabelId(UUID.fromString("7aa516c7-5a53-4857-bc6e-6808c6acd542"))
+ .withEnabled(true)
+ .withCustom(true)
+ .withKeywords(
+ Arrays
+ .asList(
+ new InformationProtectionKeyword()
+ .withPattern("%custom%")
+ .withCustom(true)
+ .withCanBeNumeric(true))),
+ "7fb9419d-2473-4ad8-8e11-b25cc8cf6a07",
+ new InformationType()
+ .withDisplayName("Networking")
+ .withOrder(100)
+ .withRecommendedLabelId(UUID.fromString("575739d2-3d53-4df0-9042-4c7772d5c7b1"))
+ .withEnabled(true)
+ .withCustom(false)
+ .withKeywords(
+ Arrays
+ .asList(
+ new InformationProtectionKeyword()
+ .withPattern("%networking%")
+ .withCustom(true)
+ .withCanBeNumeric(false)))))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### InformationProtectionPolicies_Get
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.models.InformationProtectionPoliciesInformationProtectionPolicyName;
+
+/** Samples for InformationProtectionPolicies Get. */
+public final class InformationProtectionPoliciesGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/InformationProtectionPolicies/GetCustomInformationProtectionPolicy_example.json
+ */
+ /**
+ * Sample code: Get the customized information protection policy for a management group.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getTheCustomizedInformationProtectionPolicyForAManagementGroup(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .informationProtectionPolicies()
+ .getWithResponse(
+ "providers/Microsoft.Management/managementGroups/148059f7-faf3-49a6-ba35-85122112291e",
+ InformationProtectionPoliciesInformationProtectionPolicyName.CUSTOM,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/InformationProtectionPolicies/GetEffectiveInformationProtectionPolicy_example.json
+ */
+ /**
+ * Sample code: Get the effective information protection policy for a management group.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getTheEffectiveInformationProtectionPolicyForAManagementGroup(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .informationProtectionPolicies()
+ .getWithResponse(
+ "providers/Microsoft.Management/managementGroups/148059f7-faf3-49a6-ba35-85122112291e",
+ InformationProtectionPoliciesInformationProtectionPolicyName.EFFECTIVE,
+ Context.NONE);
+ }
+}
+```
+
+### InformationProtectionPolicies_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for InformationProtectionPolicies List. */
+public final class InformationProtectionPoliciesListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/InformationProtectionPolicies/ListInformationProtectionPolicies_example.json
+ */
+ /**
+ * Sample code: Get information protection policies.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getInformationProtectionPolicies(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .informationProtectionPolicies()
+ .list("providers/Microsoft.Management/managementGroups/148059f7-faf3-49a6-ba35-85122112291e", Context.NONE);
+ }
+}
+```
+
+### IngestionSettings_Create
+
+```java
+/** Samples for IngestionSettings Create. */
+public final class IngestionSettingsCreateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/CreateIngestionSetting_example.json
+ */
+ /**
+ * Sample code: Create an ingestion setting for subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createAnIngestionSettingForSubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.ingestionSettings().define("default").create();
+ }
+}
+```
+
+### IngestionSettings_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for IngestionSettings Delete. */
+public final class IngestionSettingsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/DeleteIngestionSetting_example.json
+ */
+ /**
+ * Sample code: Delete an ingestion setting for the subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void deleteAnIngestionSettingForTheSubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.ingestionSettings().deleteWithResponse("default", Context.NONE);
+ }
+}
+```
+
+### IngestionSettings_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for IngestionSettings Get. */
+public final class IngestionSettingsGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/GetIngestionSetting_example.json
+ */
+ /**
+ * Sample code: Get a ingestion setting on subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getAIngestionSettingOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.ingestionSettings().getWithResponse("default", Context.NONE);
+ }
+}
+```
+
+### IngestionSettings_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for IngestionSettings List. */
+public final class IngestionSettingsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/GetIngestionSettings_example.json
+ */
+ /**
+ * Sample code: Get ingestion settings on subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getIngestionSettingsOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.ingestionSettings().list(Context.NONE);
+ }
+}
+```
+
+### IngestionSettings_ListConnectionStrings
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for IngestionSettings ListConnectionStrings. */
+public final class IngestionSettingsListConnectionStringsSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/ListConnectionStrings_example.json
+ */
+ /**
+ * Sample code: List connection strings for ingesting security data and logs.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listConnectionStringsForIngestingSecurityDataAndLogs(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.ingestionSettings().listConnectionStringsWithResponse("default", Context.NONE);
+ }
+}
+```
+
+### IngestionSettings_ListTokens
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for IngestionSettings ListTokens. */
+public final class IngestionSettingsListTokensSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/ListTokensIngestionSetting_example.json
+ */
+ /**
+ * Sample code: List ingestion setting tokens.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listIngestionSettingTokens(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.ingestionSettings().listTokensWithResponse("default", Context.NONE);
+ }
+}
+```
+
+### IotSecuritySolution_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.security.models.RecommendationConfigStatus;
+import com.azure.resourcemanager.security.models.RecommendationConfigurationProperties;
+import com.azure.resourcemanager.security.models.RecommendationType;
+import com.azure.resourcemanager.security.models.SecuritySolutionStatus;
+import com.azure.resourcemanager.security.models.UnmaskedIpLoggingStatus;
+import com.azure.resourcemanager.security.models.UserDefinedResourcesProperties;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for IotSecuritySolution CreateOrUpdate. */
+public final class IotSecuritySolutionCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/CreateIoTSecuritySolution.json
+ */
+ /**
+ * Sample code: Create or update a IoT security solution.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createOrUpdateAIoTSecuritySolution(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .iotSecuritySolutions()
+ .define("default")
+ .withExistingResourceGroup("MyGroup")
+ .withRegion("East Us")
+ .withTags(mapOf())
+ .withWorkspace(
+ "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1")
+ .withDisplayName("Solution Default")
+ .withStatus(SecuritySolutionStatus.ENABLED)
+ .withExport(Arrays.asList())
+ .withDisabledDataSources(Arrays.asList())
+ .withIotHubs(
+ Arrays
+ .asList(
+ "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub"))
+ .withUserDefinedResources(
+ new UserDefinedResourcesProperties()
+ .withQuery("where type != \"microsoft.devices/iothubs\" | where name contains \"iot\"")
+ .withQuerySubscriptions(Arrays.asList("075423e9-7d33-4166-8bdf-3920b04e3735")))
+ .withRecommendationsConfiguration(
+ Arrays
+ .asList(
+ new RecommendationConfigurationProperties()
+ .withRecommendationType(RecommendationType.IO_T_OPEN_PORTS)
+ .withStatus(RecommendationConfigStatus.DISABLED),
+ new RecommendationConfigurationProperties()
+ .withRecommendationType(RecommendationType.IO_T_SHARED_CREDENTIALS)
+ .withStatus(RecommendationConfigStatus.DISABLED)))
+ .withUnmaskedIpLoggingStatus(UnmaskedIpLoggingStatus.ENABLED)
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### IotSecuritySolution_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for IotSecuritySolution Delete. */
+public final class IotSecuritySolutionDeleteSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/DeleteIoTSecuritySolution.json
+ */
+ /**
+ * Sample code: Delete an IoT security solution.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void deleteAnIoTSecuritySolution(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.iotSecuritySolutions().deleteWithResponse("MyGroup", "default", Context.NONE);
+ }
+}
+```
+
+### IotSecuritySolution_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for IotSecuritySolution GetByResourceGroup. */
+public final class IotSecuritySolutionGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/GetIoTSecuritySolution.json
+ */
+ /**
+ * Sample code: Get a IoT security solution.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getAIoTSecuritySolution(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.iotSecuritySolutions().getByResourceGroupWithResponse("MyGroup", "default", Context.NONE);
+ }
+}
+```
+
+### IotSecuritySolution_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for IotSecuritySolution List. */
+public final class IotSecuritySolutionListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsList.json
+ */
+ /**
+ * Sample code: List IoT Security solutions by subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listIoTSecuritySolutionsBySubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.iotSecuritySolutions().list(null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByIotHub.json
+ */
+ /**
+ * Sample code: List IoT Security solutions by IoT Hub.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listIoTSecuritySolutionsByIoTHub(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .iotSecuritySolutions()
+ .list(
+ "properties.iotHubs/any(i eq"
+ + " \"/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub\")",
+ Context.NONE);
+ }
+}
+```
+
+### IotSecuritySolution_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for IotSecuritySolution ListByResourceGroup. */
+public final class IotSecuritySolutionListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByIotHubAndRg.json
+ */
+ /**
+ * Sample code: List IoT Security solutions by resource group and IoT Hub.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listIoTSecuritySolutionsByResourceGroupAndIoTHub(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .iotSecuritySolutions()
+ .listByResourceGroup(
+ "MyRg",
+ "properties.iotHubs/any(i eq"
+ + " \"/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub\")",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByRg.json
+ */
+ /**
+ * Sample code: List IoT Security solutions by resource group.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listIoTSecuritySolutionsByResourceGroup(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.iotSecuritySolutions().listByResourceGroup("MyGroup", null, Context.NONE);
+ }
+}
+```
+
+### IotSecuritySolution_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.models.IoTSecuritySolutionModel;
+import com.azure.resourcemanager.security.models.RecommendationConfigStatus;
+import com.azure.resourcemanager.security.models.RecommendationConfigurationProperties;
+import com.azure.resourcemanager.security.models.RecommendationType;
+import com.azure.resourcemanager.security.models.UserDefinedResourcesProperties;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for IotSecuritySolution Update. */
+public final class IotSecuritySolutionUpdateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/UpdateIoTSecuritySolution.json
+ */
+ /**
+ * Sample code: Use this method to update existing IoT Security solution.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void useThisMethodToUpdateExistingIoTSecuritySolution(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ IoTSecuritySolutionModel resource =
+ manager.iotSecuritySolutions().getByResourceGroupWithResponse("myRg", "default", Context.NONE).getValue();
+ resource
+ .update()
+ .withTags(mapOf("foo", "bar"))
+ .withUserDefinedResources(
+ new UserDefinedResourcesProperties()
+ .withQuery("where type != \"microsoft.devices/iothubs\" | where name contains \"v2\"")
+ .withQuerySubscriptions(Arrays.asList("075423e9-7d33-4166-8bdf-3920b04e3735")))
+ .withRecommendationsConfiguration(
+ Arrays
+ .asList(
+ new RecommendationConfigurationProperties()
+ .withRecommendationType(RecommendationType.IO_T_OPEN_PORTS)
+ .withStatus(RecommendationConfigStatus.DISABLED),
+ new RecommendationConfigurationProperties()
+ .withRecommendationType(RecommendationType.IO_T_SHARED_CREDENTIALS)
+ .withStatus(RecommendationConfigStatus.DISABLED)))
+ .apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### IotSecuritySolutionAnalytics_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for IotSecuritySolutionAnalytics Get. */
+public final class IotSecuritySolutionAnalyticsGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAnalytics.json
+ */
+ /**
+ * Sample code: Get Security Solution Analytics.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecuritySolutionAnalytics(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.iotSecuritySolutionAnalytics().getWithResponse("MyGroup", "default", Context.NONE);
+ }
+}
+```
+
+### IotSecuritySolutionAnalytics_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for IotSecuritySolutionAnalytics List. */
+public final class IotSecuritySolutionAnalyticsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAnalyticsList.json
+ */
+ /**
+ * Sample code: Get Security Solution Analytics.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecuritySolutionAnalytics(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.iotSecuritySolutionAnalytics().listWithResponse("MyGroup", "default", Context.NONE);
+ }
+}
+```
+
+### IotSecuritySolutionsAnalyticsAggregatedAlert_Dismiss
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for IotSecuritySolutionsAnalyticsAggregatedAlert Dismiss. */
+public final class IotSecuritySolutionsAnalyticsAggregatedAlertDismissSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/PostIoTSecuritySolutionsSecurityAggregatedAlertDismiss.json
+ */
+ /**
+ * Sample code: Dismiss an aggregated IoT Security Solution Alert.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void dismissAnAggregatedIoTSecuritySolutionAlert(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .iotSecuritySolutionsAnalyticsAggregatedAlerts()
+ .dismissWithResponse("IoTEdgeResources", "default", "IoT_Bruteforce_Fail/2019-02-02/dismiss", Context.NONE);
+ }
+}
+```
+
+### IotSecuritySolutionsAnalyticsAggregatedAlert_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for IotSecuritySolutionsAnalyticsAggregatedAlert Get. */
+public final class IotSecuritySolutionsAnalyticsAggregatedAlertGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAggregatedAlert.json
+ */
+ /**
+ * Sample code: Get the aggregated security analytics alert of yours IoT Security solution. This aggregation is
+ * performed by alert name.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void
+ getTheAggregatedSecurityAnalyticsAlertOfYoursIoTSecuritySolutionThisAggregationIsPerformedByAlertName(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .iotSecuritySolutionsAnalyticsAggregatedAlerts()
+ .getWithResponse("MyGroup", "default", "IoT_Bruteforce_Fail/2019-02-02", Context.NONE);
+ }
+}
+```
+
+### IotSecuritySolutionsAnalyticsAggregatedAlert_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for IotSecuritySolutionsAnalyticsAggregatedAlert List. */
+public final class IotSecuritySolutionsAnalyticsAggregatedAlertListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAggregatedAlertList.json
+ */
+ /**
+ * Sample code: Get the aggregated alert list of yours IoT Security solution.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getTheAggregatedAlertListOfYoursIoTSecuritySolution(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.iotSecuritySolutionsAnalyticsAggregatedAlerts().list("MyGroup", "default", null, Context.NONE);
+ }
+}
+```
+
+### IotSecuritySolutionsAnalyticsRecommendation_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for IotSecuritySolutionsAnalyticsRecommendation Get. */
+public final class IotSecuritySolutionsAnalyticsRecommendationGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityRecommendation.json
+ */
+ /**
+ * Sample code: Get the aggregated security analytics recommendation of yours IoT Security solution.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getTheAggregatedSecurityAnalyticsRecommendationOfYoursIoTSecuritySolution(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .iotSecuritySolutionsAnalyticsRecommendations()
+ .getWithResponse("IoTEdgeResources", "default", "OpenPortsOnDevice", Context.NONE);
+ }
+}
+```
+
+### IotSecuritySolutionsAnalyticsRecommendation_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for IotSecuritySolutionsAnalyticsRecommendation List. */
+public final class IotSecuritySolutionsAnalyticsRecommendationListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityRecommendationList.json
+ */
+ /**
+ * Sample code: Get the list of aggregated security analytics recommendations of yours IoT Security solution.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getTheListOfAggregatedSecurityAnalyticsRecommendationsOfYoursIoTSecuritySolution(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.iotSecuritySolutionsAnalyticsRecommendations().list("IoTEdgeResources", "default", null, Context.NONE);
+ }
+}
+```
+
+### JitNetworkAccessPolicies_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.security.fluent.models.JitNetworkAccessRequestInner;
+import com.azure.resourcemanager.security.models.JitNetworkAccessPolicyVirtualMachine;
+import com.azure.resourcemanager.security.models.JitNetworkAccessPortRule;
+import com.azure.resourcemanager.security.models.JitNetworkAccessRequestPort;
+import com.azure.resourcemanager.security.models.JitNetworkAccessRequestVirtualMachine;
+import com.azure.resourcemanager.security.models.Protocol;
+import com.azure.resourcemanager.security.models.Status;
+import com.azure.resourcemanager.security.models.StatusReason;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+
+/** Samples for JitNetworkAccessPolicies CreateOrUpdate. */
+public final class JitNetworkAccessPoliciesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/CreateJitNetworkAccessPolicy_example.json
+ */
+ /**
+ * Sample code: Create JIT network access policy.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createJITNetworkAccessPolicy(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .jitNetworkAccessPolicies()
+ .define("default")
+ .withExistingLocation("myRg1", "westeurope")
+ .withVirtualMachines(
+ Arrays
+ .asList(
+ new JitNetworkAccessPolicyVirtualMachine()
+ .withId(
+ "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1")
+ .withPorts(
+ Arrays
+ .asList(
+ new JitNetworkAccessPortRule()
+ .withNumber(22)
+ .withProtocol(Protocol.ASTERISK)
+ .withAllowedSourceAddressPrefix("*")
+ .withMaxRequestAccessDuration("PT3H"),
+ new JitNetworkAccessPortRule()
+ .withNumber(3389)
+ .withProtocol(Protocol.ASTERISK)
+ .withAllowedSourceAddressPrefix("*")
+ .withMaxRequestAccessDuration("PT3H")))))
+ .withKind("Basic")
+ .withRequests(
+ Arrays
+ .asList(
+ new JitNetworkAccessRequestInner()
+ .withVirtualMachines(
+ Arrays
+ .asList(
+ new JitNetworkAccessRequestVirtualMachine()
+ .withId(
+ "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1")
+ .withPorts(
+ Arrays
+ .asList(
+ new JitNetworkAccessRequestPort()
+ .withNumber(3389)
+ .withAllowedSourceAddressPrefix("192.127.0.2")
+ .withEndTimeUtc(
+ OffsetDateTime.parse("2018-05-17T09:06:45.5691611Z"))
+ .withStatus(Status.INITIATED)
+ .withStatusReason(StatusReason.USER_REQUESTED)))))
+ .withStartTimeUtc(OffsetDateTime.parse("2018-05-17T08:06:45.5691611Z"))
+ .withRequestor("barbara@contoso.com")))
+ .create();
+ }
+}
+```
+
+### JitNetworkAccessPolicies_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for JitNetworkAccessPolicies Delete. */
+public final class JitNetworkAccessPoliciesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/DeleteJitNetworkAccessPolicy_example.json
+ */
+ /**
+ * Sample code: Delete a JIT network access policy.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void deleteAJITNetworkAccessPolicy(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.jitNetworkAccessPolicies().deleteWithResponse("myRg1", "westeurope", "default", Context.NONE);
+ }
+}
+```
+
+### JitNetworkAccessPolicies_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for JitNetworkAccessPolicies Get. */
+public final class JitNetworkAccessPoliciesGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPolicy_example.json
+ */
+ /**
+ * Sample code: Get JIT network access policy.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getJITNetworkAccessPolicy(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.jitNetworkAccessPolicies().getWithResponse("myRg1", "westeurope", "default", Context.NONE);
+ }
+}
+```
+
+### JitNetworkAccessPolicies_Initiate
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.models.JitNetworkAccessPolicyInitiatePort;
+import com.azure.resourcemanager.security.models.JitNetworkAccessPolicyInitiateRequest;
+import com.azure.resourcemanager.security.models.JitNetworkAccessPolicyInitiateVirtualMachine;
+import java.util.Arrays;
+
+/** Samples for JitNetworkAccessPolicies Initiate. */
+public final class JitNetworkAccessPoliciesInitiateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/InitiateJitNetworkAccessPolicy_example.json
+ */
+ /**
+ * Sample code: Initiate an action on a JIT network access policy.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void initiateAnActionOnAJITNetworkAccessPolicy(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .jitNetworkAccessPolicies()
+ .initiateWithResponse(
+ "myRg1",
+ "westeurope",
+ "default",
+ new JitNetworkAccessPolicyInitiateRequest()
+ .withVirtualMachines(
+ Arrays
+ .asList(
+ new JitNetworkAccessPolicyInitiateVirtualMachine()
+ .withId(
+ "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1")
+ .withPorts(
+ Arrays
+ .asList(
+ new JitNetworkAccessPolicyInitiatePort()
+ .withNumber(3389)
+ .withAllowedSourceAddressPrefix("192.127.0.2")))))
+ .withJustification("testing a new version of the product"),
+ Context.NONE);
+ }
+}
+```
+
+### JitNetworkAccessPolicies_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for JitNetworkAccessPolicies List. */
+public final class JitNetworkAccessPoliciesListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscription_example.json
+ */
+ /**
+ * Sample code: Get JIT network access policies on a subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getJITNetworkAccessPoliciesOnASubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.jitNetworkAccessPolicies().list(Context.NONE);
+ }
+}
+```
+
+### JitNetworkAccessPolicies_ListByRegion
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for JitNetworkAccessPolicies ListByRegion. */
+public final class JitNetworkAccessPoliciesListByRegionSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscriptionLocation_example.json
+ */
+ /**
+ * Sample code: Get JIT network access policies on a subscription from a security data location.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getJITNetworkAccessPoliciesOnASubscriptionFromASecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.jitNetworkAccessPolicies().listByRegion("westeurope", Context.NONE);
+ }
+}
+```
+
+### JitNetworkAccessPolicies_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for JitNetworkAccessPolicies ListByResourceGroup. */
+public final class JitNetworkAccessPoliciesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroup_example.json
+ */
+ /**
+ * Sample code: Get JIT network access policies on a resource group.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getJITNetworkAccessPoliciesOnAResourceGroup(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.jitNetworkAccessPolicies().listByResourceGroup("myRg1", Context.NONE);
+ }
+}
+```
+
+### JitNetworkAccessPolicies_ListByResourceGroupAndRegion
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for JitNetworkAccessPolicies ListByResourceGroupAndRegion. */
+public final class JitNetworkAccessPoliciesListByResourceGroupAndRegionSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroupLocation_example.json
+ */
+ /**
+ * Sample code: Get JIT network access policies on a resource group from a security data location.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getJITNetworkAccessPoliciesOnAResourceGroupFromASecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.jitNetworkAccessPolicies().listByResourceGroupAndRegion("myRg1", "westeurope", Context.NONE);
+ }
+}
+```
+
+### Locations_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Locations Get. */
+public final class LocationsGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Locations/GetLocation_example.json
+ */
+ /**
+ * Sample code: Get security data location.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecurityDataLocation(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.locations().getWithResponse("centralus", Context.NONE);
+ }
+}
+```
+
+### Locations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Locations List. */
+public final class LocationsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Locations/GetLocations_example.json
+ */
+ /**
+ * Sample code: Get security data locations.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecurityDataLocations(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.locations().list(Context.NONE);
+ }
+}
+```
+
+### MdeOnboardings_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MdeOnboardings Get. */
+public final class MdeOnboardingsGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-10-01-preview/examples/MdeOnboardings/GetMdeOnboardings_example.json
+ */
+ /**
+ * Sample code: The default configuration or data needed to onboard the machine to MDE.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void theDefaultConfigurationOrDataNeededToOnboardTheMachineToMDE(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.mdeOnboardings().getWithResponse(Context.NONE);
+ }
+}
+```
+
+### MdeOnboardings_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MdeOnboardings List. */
+public final class MdeOnboardingsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-10-01-preview/examples/MdeOnboardings/ListMdeOnboardings_example.json
+ */
+ /**
+ * Sample code: The configuration or data needed to onboard the machine to MDE.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void theConfigurationOrDataNeededToOnboardTheMachineToMDE(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.mdeOnboardings().listWithResponse(Context.NONE);
+ }
+}
+```
+
+### Pricings_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Pricings Get. */
+public final class PricingsGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2018-06-01/examples/Pricings/GetPricingByName_example.json
+ */
+ /**
+ * Sample code: Get pricings on subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getPricingsOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.pricings().getWithResponse("VirtualMachines", Context.NONE);
+ }
+}
+```
+
+### Pricings_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Pricings List. */
+public final class PricingsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2018-06-01/examples/Pricings/ListPricings_example.json
+ */
+ /**
+ * Sample code: Get pricings on subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getPricingsOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.pricings().listWithResponse(Context.NONE);
+ }
+}
+```
+
+### Pricings_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.fluent.models.PricingInner;
+import com.azure.resourcemanager.security.models.PricingTier;
+
+/** Samples for Pricings Update. */
+public final class PricingsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2018-06-01/examples/Pricings/PutPricingByName_example.json
+ */
+ /**
+ * Sample code: Update pricing on subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void updatePricingOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .pricings()
+ .updateWithResponse(
+ "VirtualMachines", new PricingInner().withPricingTier(PricingTier.STANDARD), Context.NONE);
+ }
+}
+```
+
+### RegulatoryComplianceAssessments_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegulatoryComplianceAssessments Get. */
+public final class RegulatoryComplianceAssessmentsGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/RegulatoryCompliance/getRegulatoryComplianceAssessment_example.json
+ */
+ /**
+ * Sample code: Get selected regulatory compliance assessment details and state.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSelectedRegulatoryComplianceAssessmentDetailsAndState(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .regulatoryComplianceAssessments()
+ .getWithResponse("PCI-DSS-3.2", "1.1", "968548cb-02b3-8cd2-11f8-0cf64ab1a347", Context.NONE);
+ }
+}
+```
+
+### RegulatoryComplianceAssessments_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegulatoryComplianceAssessments List. */
+public final class RegulatoryComplianceAssessmentsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/RegulatoryCompliance/getRegulatoryComplianceAssessmentList_example.json
+ */
+ /**
+ * Sample code: Get all assessments mapped to selected regulatory compliance control.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getAllAssessmentsMappedToSelectedRegulatoryComplianceControl(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.regulatoryComplianceAssessments().list("PCI-DSS-3.2", "1.1", null, Context.NONE);
+ }
+}
+```
+
+### RegulatoryComplianceControls_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegulatoryComplianceControls Get. */
+public final class RegulatoryComplianceControlsGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/RegulatoryCompliance/getRegulatoryComplianceControl_example.json
+ */
+ /**
+ * Sample code: Get selected regulatory compliance control details and state.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSelectedRegulatoryComplianceControlDetailsAndState(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.regulatoryComplianceControls().getWithResponse("PCI-DSS-3.2", "1.1", Context.NONE);
+ }
+}
+```
+
+### RegulatoryComplianceControls_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegulatoryComplianceControls List. */
+public final class RegulatoryComplianceControlsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/RegulatoryCompliance/getRegulatoryComplianceControlList_example.json
+ */
+ /**
+ * Sample code: Get all regulatory compliance controls details and state for selected standard.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getAllRegulatoryComplianceControlsDetailsAndStateForSelectedStandard(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.regulatoryComplianceControls().list("PCI-DSS-3.2", null, Context.NONE);
+ }
+}
+```
+
+### RegulatoryComplianceStandards_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegulatoryComplianceStandards Get. */
+public final class RegulatoryComplianceStandardsGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/RegulatoryCompliance/getRegulatoryComplianceStandard_example.json
+ */
+ /**
+ * Sample code: Get selected regulatory compliance standard details and state.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSelectedRegulatoryComplianceStandardDetailsAndState(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.regulatoryComplianceStandards().getWithResponse("PCI-DSS-3.2", Context.NONE);
+ }
+}
+```
+
+### RegulatoryComplianceStandards_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegulatoryComplianceStandards List. */
+public final class RegulatoryComplianceStandardsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/RegulatoryCompliance/getRegulatoryComplianceStandardList_example.json
+ */
+ /**
+ * Sample code: Get all supported regulatory compliance standards details and state.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getAllSupportedRegulatoryComplianceStandardsDetailsAndState(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.regulatoryComplianceStandards().list(null, Context.NONE);
+ }
+}
+```
+
+### SecureScoreControlDefinitions_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SecureScoreControlDefinitions List. */
+public final class SecureScoreControlDefinitionsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/secureScoreControlDefinitions/ListSecureScoreControlDefinitions_example.json
+ */
+ /**
+ * Sample code: List security controls definition.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listSecurityControlsDefinition(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.secureScoreControlDefinitions().list(Context.NONE);
+ }
+}
+```
+
+### SecureScoreControlDefinitions_ListBySubscription
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SecureScoreControlDefinitions ListBySubscription. */
+public final class SecureScoreControlDefinitionsListBySubscriptionSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/secureScoreControlDefinitions/ListSecureScoreControlDefinitions_subscription_example.json
+ */
+ /**
+ * Sample code: List security controls definition by subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listSecurityControlsDefinitionBySubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.secureScoreControlDefinitions().listBySubscription(Context.NONE);
+ }
+}
+```
+
+### SecureScoreControls_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SecureScoreControls List. */
+public final class SecureScoreControlsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/secureScores/ListSecureScoreControls_example.json
+ */
+ /**
+ * Sample code: List all secure scores controls.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listAllSecureScoresControls(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.secureScoreControls().list(null, Context.NONE);
+ }
+}
+```
+
+### SecureScoreControls_ListBySecureScore
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.models.ExpandControlsEnum;
+
+/** Samples for SecureScoreControls ListBySecureScore. */
+public final class SecureScoreControlsListBySecureScoreSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/secureScores/ListSecureScoreControlsForNameWithExpand_builtin_example.json
+ */
+ /**
+ * Sample code: Get security controls and their current score for the specified initiative with the expand
+ * parameter.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecurityControlsAndTheirCurrentScoreForTheSpecifiedInitiativeWithTheExpandParameter(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.secureScoreControls().listBySecureScore("ascScore", ExpandControlsEnum.DEFINITION, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/secureScores/ListSecureScoreControlsForName_builtin_example.json
+ */
+ /**
+ * Sample code: Get security controls and their current score for the specified initiative.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecurityControlsAndTheirCurrentScoreForTheSpecifiedInitiative(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.secureScoreControls().listBySecureScore("ascScore", null, Context.NONE);
+ }
+}
+```
+
+### SecureScores_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SecureScores Get. */
+public final class SecureScoresGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/secureScores/GetSecureScoresSingle_example.json
+ */
+ /**
+ * Sample code: Get single secure score.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSingleSecureScore(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.secureScores().getWithResponse("ascScore", Context.NONE);
+ }
+}
+```
+
+### SecureScores_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SecureScores List. */
+public final class SecureScoresListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/secureScores/ListSecureScores_example.json
+ */
+ /**
+ * Sample code: List secure scores.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listSecureScores(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.secureScores().list(Context.NONE);
+ }
+}
+```
+
+### SecurityConnectors_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.security.models.CloudName;
+import com.azure.resourcemanager.security.models.CspmMonitorAwsOffering;
+import com.azure.resourcemanager.security.models.CspmMonitorAwsOfferingNativeCloudConnection;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for SecurityConnectors CreateOrUpdate. */
+public final class SecurityConnectorsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/SecurityConnectors/PutSecurityConnector_example.json
+ */
+ /**
+ * Sample code: Create or update a security connector.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createOrUpdateASecurityConnector(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .securityConnectors()
+ .define("exampleSecurityConnectorName")
+ .withRegion("Central US")
+ .withExistingResourceGroup("exampleResourceGroup")
+ .withTags(mapOf())
+ .withHierarchyIdentifier("exampleHierarchyId")
+ .withCloudName(CloudName.AWS)
+ .withOfferings(
+ Arrays
+ .asList(
+ new CspmMonitorAwsOffering()
+ .withNativeCloudConnection(
+ new CspmMonitorAwsOfferingNativeCloudConnection()
+ .withCloudRoleArn("arn:aws:iam::00000000:role/ASCMonitor"))))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### SecurityConnectors_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SecurityConnectors Delete. */
+public final class SecurityConnectorsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json
+ */
+ /**
+ * Sample code: Delete a security connector.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void deleteASecurityConnector(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securityConnectors().deleteWithResponse("myRg", "mySecurityConnectorName", Context.NONE);
+ }
+}
+```
+
+### SecurityConnectors_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SecurityConnectors GetByResourceGroup. */
+public final class SecurityConnectorsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/SecurityConnectors/GetSecurityConnectorResourceGroup_example.json
+ */
+ /**
+ * Sample code: Retrieve a security connector.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void retrieveASecurityConnector(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .securityConnectors()
+ .getByResourceGroupWithResponse("exampleResourceGroup", "exampleSecurityConnectorName", Context.NONE);
+ }
+}
+```
+
+### SecurityConnectors_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SecurityConnectors List. */
+public final class SecurityConnectorsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json
+ */
+ /**
+ * Sample code: List all security connectors of a specified subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listAllSecurityConnectorsOfASpecifiedSubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securityConnectors().list(Context.NONE);
+ }
+}
+```
+
+### SecurityConnectors_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SecurityConnectors ListByResourceGroup. */
+public final class SecurityConnectorsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json
+ */
+ /**
+ * Sample code: List all security connectors of a specified resource group.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listAllSecurityConnectorsOfASpecifiedResourceGroup(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securityConnectors().listByResourceGroup("exampleResourceGroup", Context.NONE);
+ }
+}
+```
+
+### SecurityConnectors_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.models.CloudName;
+import com.azure.resourcemanager.security.models.CspmMonitorAwsOffering;
+import com.azure.resourcemanager.security.models.CspmMonitorAwsOfferingNativeCloudConnection;
+import com.azure.resourcemanager.security.models.SecurityConnector;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for SecurityConnectors Update. */
+public final class SecurityConnectorsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json
+ */
+ /**
+ * Sample code: Update a security connector.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void updateASecurityConnector(com.azure.resourcemanager.security.SecurityManager manager) {
+ SecurityConnector resource =
+ manager
+ .securityConnectors()
+ .getByResourceGroupWithResponse("exampleResourceGroup", "exampleSecurityConnectorName", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf())
+ .withHierarchyIdentifier("exampleHierarchyId")
+ .withCloudName(CloudName.AWS)
+ .withOfferings(
+ Arrays
+ .asList(
+ new CspmMonitorAwsOffering()
+ .withNativeCloudConnection(
+ new CspmMonitorAwsOfferingNativeCloudConnection()
+ .withCloudRoleArn("arn:aws:iam::00000000:role/ASCMonitor"))))
+ .apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### SecurityContacts_Create
+
+```java
+import com.azure.resourcemanager.security.models.AlertNotifications;
+import com.azure.resourcemanager.security.models.AlertsToAdmins;
+
+/** Samples for SecurityContacts Create. */
+public final class SecurityContactsCreateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/SecurityContacts/CreateSecurityContact_min_example.json
+ */
+ /**
+ * Sample code: Create security contact data minimal.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createSecurityContactDataMinimal(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .securityContacts()
+ .define("default2")
+ .withEmail("chen@contoso.com")
+ .withAlertNotifications(AlertNotifications.ON)
+ .withAlertsToAdmins(AlertsToAdmins.ON)
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/SecurityContacts/CreateSecurityContact_full_example.json
+ */
+ /**
+ * Sample code: Create security contact data full.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createSecurityContactDataFull(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .securityContacts()
+ .define("default1")
+ .withEmail("john@contoso.com")
+ .withPhone("(214)275-4038")
+ .withAlertNotifications(AlertNotifications.ON)
+ .withAlertsToAdmins(AlertsToAdmins.ON)
+ .create();
+ }
+}
+```
+
+### SecurityContacts_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SecurityContacts Delete. */
+public final class SecurityContactsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/SecurityContacts/DeleteSecurityContact_example.json
+ */
+ /**
+ * Sample code: Delete security contact data.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void deleteSecurityContactData(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securityContacts().deleteWithResponse("default1", Context.NONE);
+ }
+}
+```
+
+### SecurityContacts_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SecurityContacts Get. */
+public final class SecurityContactsGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/SecurityContacts/GetSecurityContact_min_example.json
+ */
+ /**
+ * Sample code: Get security contact data minimal.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecurityContactDataMinimal(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securityContacts().getWithResponse("default2", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/SecurityContacts/GetSecurityContact_full_example.json
+ */
+ /**
+ * Sample code: Get security contact data full.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecurityContactDataFull(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securityContacts().getWithResponse("default1", Context.NONE);
+ }
+}
+```
+
+### SecurityContacts_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SecurityContacts List. */
+public final class SecurityContactsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/SecurityContacts/GetSecurityContactsSubscription_min_example.json
+ */
+ /**
+ * Sample code: Update security contact data minimal.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void updateSecurityContactDataMinimal(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securityContacts().list(Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/SecurityContacts/GetSecurityContactsSubscription_full_example.json
+ */
+ /**
+ * Sample code: Update security contact data full.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void updateSecurityContactDataFull(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securityContacts().list(Context.NONE);
+ }
+}
+```
+
+### SecurityContacts_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.models.AlertNotifications;
+import com.azure.resourcemanager.security.models.SecurityContact;
+
+/** Samples for SecurityContacts Update. */
+public final class SecurityContactsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/SecurityContacts/UpdateSecurityContact_min_example.json
+ */
+ /**
+ * Sample code: Update security contact data minimal.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void updateSecurityContactDataMinimal(com.azure.resourcemanager.security.SecurityManager manager) {
+ SecurityContact resource = manager.securityContacts().getWithResponse("default2", Context.NONE).getValue();
+ resource.update().withAlertNotifications(AlertNotifications.ON).apply();
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/SecurityContacts/UpdateSecurityContact_full_example.json
+ */
+ /**
+ * Sample code: Update security contact data full.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void updateSecurityContactDataFull(com.azure.resourcemanager.security.SecurityManager manager) {
+ SecurityContact resource = manager.securityContacts().getWithResponse("john", Context.NONE).getValue();
+ resource.update().withPhone("(214)275-4038").withAlertNotifications(AlertNotifications.ON).apply();
+ }
+}
+```
+
+### SecuritySolutions_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SecuritySolutions Get. */
+public final class SecuritySolutionsGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/SecuritySolutions/GetSecuritySolutionsResourceGroupLocation_example.json
+ */
+ /**
+ * Sample code: Get a security solution from a security data location.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getASecuritySolutionFromASecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securitySolutions().getWithResponse("myRg2", "centralus", "paloalto7", Context.NONE);
+ }
+}
+```
+
+### SecuritySolutions_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SecuritySolutions List. */
+public final class SecuritySolutionsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/SecuritySolutions/GetSecuritySolutionsSubscription_example.json
+ */
+ /**
+ * Sample code: Get security solutions.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecuritySolutions(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securitySolutions().list(Context.NONE);
+ }
+}
+```
+
+### SecuritySolutionsReferenceData_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SecuritySolutionsReferenceData List. */
+public final class SecuritySolutionsReferenceDataListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscription_example.json
+ */
+ /**
+ * Sample code: Get security solutions.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecuritySolutions(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securitySolutionsReferenceDatas().listWithResponse(Context.NONE);
+ }
+}
+```
+
+### SecuritySolutionsReferenceData_ListByHomeRegion
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SecuritySolutionsReferenceData ListByHomeRegion. */
+public final class SecuritySolutionsReferenceDataListByHomeRegionSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscriptionLocation_example.json
+ */
+ /**
+ * Sample code: Get security solutions from a security data location.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecuritySolutionsFromASecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securitySolutionsReferenceDatas().listByHomeRegionWithResponse("westcentralus", Context.NONE);
+ }
+}
+```
+
+### ServerVulnerabilityAssessment_CreateOrUpdate
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ServerVulnerabilityAssessment CreateOrUpdate. */
+public final class ServerVulnerabilityAssessmentCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json
+ */
+ /**
+ * Sample code: Create a server vulnerability assessments on a resource. Only 'default' resource is supported. Once
+ * creating the resource, the server will be onboarded to vulnerability assessment by Microsoft.Security.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void
+ createAServerVulnerabilityAssessmentsOnAResourceOnlyDefaultResourceIsSupportedOnceCreatingTheResourceTheServerWillBeOnboardedToVulnerabilityAssessmentByMicrosoftSecurity(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .serverVulnerabilityAssessments()
+ .createOrUpdateWithResponse("rg1", "Microsoft.Compute", "virtualMachines", "vm1", Context.NONE);
+ }
+}
+```
+
+### ServerVulnerabilityAssessment_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ServerVulnerabilityAssessment Delete. */
+public final class ServerVulnerabilityAssessmentDeleteSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json
+ */
+ /**
+ * Sample code: Delete a server vulnerability assessments on a resource. Only 'default' resource is supported. Once
+ * deleting, Microsoft.Security will not provide vulnerability assessment findings on the resource.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void
+ deleteAServerVulnerabilityAssessmentsOnAResourceOnlyDefaultResourceIsSupportedOnceDeletingMicrosoftSecurityWillNotProvideVulnerabilityAssessmentFindingsOnTheResource(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .serverVulnerabilityAssessments()
+ .delete("rg1", "Microsoft.Compute", "virtualMachines", "vm1", Context.NONE);
+ }
+}
+```
+
+### ServerVulnerabilityAssessment_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ServerVulnerabilityAssessment Get. */
+public final class ServerVulnerabilityAssessmentGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json
+ */
+ /**
+ * Sample code: Get a server vulnerability assessments onboarding status on a resource. Currently Microsoft.Security
+ * only supports the single 'default' resource.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void
+ getAServerVulnerabilityAssessmentsOnboardingStatusOnAResourceCurrentlyMicrosoftSecurityOnlySupportsTheSingleDefaultResource(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .serverVulnerabilityAssessments()
+ .getWithResponse("rg1", "Microsoft.Compute", "virtualMachines", "vm1", Context.NONE);
+ }
+}
+```
+
+### ServerVulnerabilityAssessment_ListByExtendedResource
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ServerVulnerabilityAssessment ListByExtendedResource. */
+public final class ServerVulnerabilityAssessmentListByExtendedResourceSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json
+ */
+ /**
+ * Sample code: Get a list of server vulnerability assessments on a resource. Though this API returns a list,
+ * Currently Microsoft.Security only supports a single default type of server vulnerability assessment.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void
+ getAListOfServerVulnerabilityAssessmentsOnAResourceThoughThisAPIReturnsAListCurrentlyMicrosoftSecurityOnlySupportsASingleDefaultTypeOfServerVulnerabilityAssessment(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .serverVulnerabilityAssessments()
+ .listByExtendedResourceWithResponse("rg1", "Microsoft.Compute", "virtualMachines", "vm1", Context.NONE);
+ }
+}
+```
+
+### Settings_Get
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.models.SettingsSettingName;
+
+/** Samples for Settings Get. */
+public final class SettingsGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-07-01/examples/Settings/GetSetting_example.json
+ */
+ /**
+ * Sample code: Get a setting on subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getASettingOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.settings().getWithResponse(SettingsSettingName.MCAS, Context.NONE);
+ }
+}
+```
+
+### Settings_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Settings List. */
+public final class SettingsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-07-01/examples/Settings/GetSettings_example.json
+ */
+ /**
+ * Sample code: Get settings of subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSettingsOfSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.settings().list(Context.NONE);
+ }
+}
+```
+
+### Settings_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.models.DataExportSettings;
+import com.azure.resourcemanager.security.models.SettingsSettingName;
+
+/** Samples for Settings Update. */
+public final class SettingsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2021-07-01/examples/Settings/UpdateSetting_example.json
+ */
+ /**
+ * Sample code: Update a setting for subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void updateASettingForSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .settings()
+ .updateWithResponse(SettingsSettingName.MCAS, new DataExportSettings().withEnabled(true), Context.NONE);
+ }
+}
+```
+
+### SoftwareInventories_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SoftwareInventories Get. */
+public final class SoftwareInventoriesGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-05-01-preview/examples/SoftwareInventories/GetSoftware_example.json
+ */
+ /**
+ * Sample code: Gets a single software data of the virtual machine.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getsASingleSoftwareDataOfTheVirtualMachine(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .softwareInventories()
+ .getWithResponse(
+ "EITAN-TESTS",
+ "Microsoft.Compute",
+ "virtualMachines",
+ "Eitan-Test1",
+ "outlook_16.0.10371.20060",
+ Context.NONE);
+ }
+}
+```
+
+### SoftwareInventories_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SoftwareInventories List. */
+public final class SoftwareInventoriesListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-05-01-preview/examples/SoftwareInventories/ListBySubscriptionSoftwareInventories_example.json
+ */
+ /**
+ * Sample code: Gets the software inventory of all virtual machines in the subscriptions.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getsTheSoftwareInventoryOfAllVirtualMachinesInTheSubscriptions(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.softwareInventories().list(Context.NONE);
+ }
+}
+```
+
+### SoftwareInventories_ListByExtendedResource
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SoftwareInventories ListByExtendedResource. */
+public final class SoftwareInventoriesListByExtendedResourceSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2021-05-01-preview/examples/SoftwareInventories/ListByExtendedResourceSoftwareInventories_example.json
+ */
+ /**
+ * Sample code: Gets the software inventory of the virtual machine.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getsTheSoftwareInventoryOfTheVirtualMachine(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .softwareInventories()
+ .listByExtendedResource("EITAN-TESTS", "Microsoft.Compute", "virtualMachines", "Eitan-Test1", Context.NONE);
+ }
+}
+```
+
+### SqlVulnerabilityAssessmentBaselineRules_Add
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.models.RulesResultsInput;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for SqlVulnerabilityAssessmentBaselineRules Add. */
+public final class SqlVulnerabilityAssessmentBaselineRulesAddSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_Add.json
+ */
+ /**
+ * Sample code: Create a baseline for all rules.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createABaselineForAllRules(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .sqlVulnerabilityAssessmentBaselineRules()
+ .addWithResponse(
+ "55555555-6666-7777-8888-999999999999",
+ "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master",
+ new RulesResultsInput()
+ .withLatestScan(false)
+ .withResults(
+ mapOf(
+ "VA1234",
+ Arrays.asList(Arrays.asList("userA", "SELECT"), Arrays.asList("userB", "SELECT")),
+ "VA5678",
+ Arrays.asList(Arrays.asList("Test", "0.0.0.0", "125.125.125.125")))),
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_AddLatest.json
+ */
+ /**
+ * Sample code: Create a baseline for all rules using the latest scan results.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createABaselineForAllRulesUsingTheLatestScanResults(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .sqlVulnerabilityAssessmentBaselineRules()
+ .addWithResponse(
+ "55555555-6666-7777-8888-999999999999",
+ "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master",
+ new RulesResultsInput().withLatestScan(true).withResults(mapOf()),
+ Context.NONE);
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### SqlVulnerabilityAssessmentBaselineRules_CreateOrUpdate
+
+```java
+import java.util.Arrays;
+
+/** Samples for SqlVulnerabilityAssessmentBaselineRules CreateOrUpdate. */
+public final class SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_PutLatest.json
+ */
+ /**
+ * Sample code: Create a baseline using the latest scan results.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createABaselineUsingTheLatestScanResults(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .sqlVulnerabilityAssessmentBaselineRules()
+ .define("VA1234")
+ .withExistingResourceId(
+ "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master")
+ .withLatestScan(true)
+ .withResults(Arrays.asList())
+ .withWorkspaceId("55555555-6666-7777-8888-999999999999")
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_Put.json
+ */
+ /**
+ * Sample code: Create a baseline.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createABaseline(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .sqlVulnerabilityAssessmentBaselineRules()
+ .define("VA1234")
+ .withExistingResourceId(
+ "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master")
+ .withLatestScan(false)
+ .withResults(Arrays.asList(Arrays.asList("userA", "SELECT"), Arrays.asList("userB", "SELECT")))
+ .withWorkspaceId("55555555-6666-7777-8888-999999999999")
+ .create();
+ }
+}
+```
+
+### SqlVulnerabilityAssessmentBaselineRules_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SqlVulnerabilityAssessmentBaselineRules Delete. */
+public final class SqlVulnerabilityAssessmentBaselineRulesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_Delete.json
+ */
+ /**
+ * Sample code: Delete the baseline.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void deleteTheBaseline(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .sqlVulnerabilityAssessmentBaselineRules()
+ .deleteWithResponse(
+ "VA1234",
+ "55555555-6666-7777-8888-999999999999",
+ "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master",
+ Context.NONE);
+ }
+}
+```
+
+### SqlVulnerabilityAssessmentBaselineRules_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SqlVulnerabilityAssessmentBaselineRules Get. */
+public final class SqlVulnerabilityAssessmentBaselineRulesGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_Get.json
+ */
+ /**
+ * Sample code: Get the baseline.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getTheBaseline(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .sqlVulnerabilityAssessmentBaselineRules()
+ .getWithResponse(
+ "VA1234",
+ "55555555-6666-7777-8888-999999999999",
+ "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master",
+ Context.NONE);
+ }
+}
+```
+
+### SqlVulnerabilityAssessmentBaselineRules_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SqlVulnerabilityAssessmentBaselineRules List. */
+public final class SqlVulnerabilityAssessmentBaselineRulesListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_List.json
+ */
+ /**
+ * Sample code: List baseline for all rules.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listBaselineForAllRules(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .sqlVulnerabilityAssessmentBaselineRules()
+ .listWithResponse(
+ "55555555-6666-7777-8888-999999999999",
+ "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master",
+ Context.NONE);
+ }
+}
+```
+
+### SqlVulnerabilityAssessmentScanResults_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SqlVulnerabilityAssessmentScanResults Get. */
+public final class SqlVulnerabilityAssessmentScanResultsGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsScanResultsOperations/ArcMachineScanResults_Get.json
+ */
+ /**
+ * Sample code: Get scan details of a scan record.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getScanDetailsOfAScanRecord(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .sqlVulnerabilityAssessmentScanResults()
+ .getWithResponse(
+ "Scheduled-20200623",
+ "VA2063",
+ "55555555-6666-7777-8888-999999999999",
+ "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsScanResultsOperations/ArcMachineScanResults_GetLatest.json
+ */
+ /**
+ * Sample code: Get scan details of the latest scan record.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getScanDetailsOfTheLatestScanRecord(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .sqlVulnerabilityAssessmentScanResults()
+ .getWithResponse(
+ "latest",
+ "VA2063",
+ "55555555-6666-7777-8888-999999999999",
+ "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master",
+ Context.NONE);
+ }
+}
+```
+
+### SqlVulnerabilityAssessmentScanResults_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SqlVulnerabilityAssessmentScanResults List. */
+public final class SqlVulnerabilityAssessmentScanResultsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsScanResultsOperations/ArcMachineScanResults_ListLatest.json
+ */
+ /**
+ * Sample code: List scan results of the latest scan.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listScanResultsOfTheLatestScan(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .sqlVulnerabilityAssessmentScanResults()
+ .listWithResponse(
+ "latest",
+ "55555555-6666-7777-8888-999999999999",
+ "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsScanResultsOperations/ArcMachineScanResults_List.json
+ */
+ /**
+ * Sample code: List scan results.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listScanResults(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .sqlVulnerabilityAssessmentScanResults()
+ .listWithResponse(
+ "Scheduled-20200623",
+ "55555555-6666-7777-8888-999999999999",
+ "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master",
+ Context.NONE);
+ }
+}
+```
+
+### SqlVulnerabilityAssessmentScans_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SqlVulnerabilityAssessmentScans Get. */
+public final class SqlVulnerabilityAssessmentScansGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentScanOperations/ArcMachineScans_Get.json
+ */
+ /**
+ * Sample code: Get scan details of a scan record.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getScanDetailsOfAScanRecord(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .sqlVulnerabilityAssessmentScans()
+ .getWithResponse(
+ "Scheduled-20200623",
+ "55555555-6666-7777-8888-999999999999",
+ "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentScanOperations/ArcMachineScans_GetLatest.json
+ */
+ /**
+ * Sample code: Get scan details of the latest scan record.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getScanDetailsOfTheLatestScanRecord(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .sqlVulnerabilityAssessmentScans()
+ .getWithResponse(
+ "latest",
+ "55555555-6666-7777-8888-999999999999",
+ "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master",
+ Context.NONE);
+ }
+}
+```
+
+### SqlVulnerabilityAssessmentScans_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SqlVulnerabilityAssessmentScans List. */
+public final class SqlVulnerabilityAssessmentScansListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentScanOperations/ArcMachineScans_List.json
+ */
+ /**
+ * Sample code: List scan details.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listScanDetails(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .sqlVulnerabilityAssessmentScans()
+ .listWithResponse(
+ "55555555-6666-7777-8888-999999999999",
+ "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master",
+ Context.NONE);
+ }
+}
+```
+
+### SubAssessments_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SubAssessments Get. */
+public final class SubAssessmentsGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/SubAssessments/GetSubAssessment_example.json
+ */
+ /**
+ * Sample code: Get security recommendation task from security data location.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecurityRecommendationTaskFromSecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .subAssessments()
+ .getWithResponse(
+ "subscriptions/212f9889-769e-45ae-ab43-6da33674bd26/resourceGroups/DEMORG/providers/Microsoft.Compute/virtualMachines/vm2",
+ "1195afff-c881-495e-9bc5-1486211ae03f",
+ "95f7da9c-a2a4-1322-0758-fcd24ef09b85",
+ Context.NONE);
+ }
+}
+```
+
+### SubAssessments_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SubAssessments List. */
+public final class SubAssessmentsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/SubAssessments/ListSubAssessments_example.json
+ */
+ /**
+ * Sample code: List security sub-assessments.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listSecuritySubAssessments(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .subAssessments()
+ .list(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "82e20e14-edc5-4373-bfc4-f13121257c37",
+ Context.NONE);
+ }
+}
+```
+
+### SubAssessments_ListAll
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SubAssessments ListAll. */
+public final class SubAssessmentsListAllSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/SubAssessments/ListSubscriptionSubAssessments_example.json
+ */
+ /**
+ * Sample code: List security sub-assessments.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listSecuritySubAssessments(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.subAssessments().listAll("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", Context.NONE);
+ }
+}
+```
+
+### Tasks_GetResourceGroupLevelTask
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Tasks GetResourceGroupLevelTask. */
+public final class TasksGetResourceGroupLevelTaskSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Tasks/GetTaskResourceGroupLocation_example.json
+ */
+ /**
+ * Sample code: Get security recommendation task in a resource group.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecurityRecommendationTaskInAResourceGroup(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .tasks()
+ .getResourceGroupLevelTaskWithResponse(
+ "myRg", "westeurope", "d55b4dc0-779c-c66c-33e5-d7bce24c4222", Context.NONE);
+ }
+}
+```
+
+### Tasks_GetSubscriptionLevelTask
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Tasks GetSubscriptionLevelTask. */
+public final class TasksGetSubscriptionLevelTaskSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Tasks/GetTaskSubscriptionLocation_example.json
+ */
+ /**
+ * Sample code: Get security recommendation task from security data location.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecurityRecommendationTaskFromSecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .tasks()
+ .getSubscriptionLevelTaskWithResponse("westeurope", "62609ee7-d0a5-8616-9fe4-1df5cca7758d", Context.NONE);
+ }
+}
+```
+
+### Tasks_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Tasks List. */
+public final class TasksListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Tasks/GetTasksSubscription_example.json
+ */
+ /**
+ * Sample code: Get security recommendations tasks.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecurityRecommendationsTasks(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.tasks().list(null, Context.NONE);
+ }
+}
+```
+
+### Tasks_ListByHomeRegion
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Tasks ListByHomeRegion. */
+public final class TasksListByHomeRegionSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Tasks/GetTasksSubscriptionLocation_example.json
+ */
+ /**
+ * Sample code: Get security recommendations tasks from security data location.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecurityRecommendationsTasksFromSecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.tasks().listByHomeRegion("westeurope", null, Context.NONE);
+ }
+}
+```
+
+### Tasks_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Tasks ListByResourceGroup. */
+public final class TasksListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Tasks/GetTasksResourceGroupLocation_example.json
+ */
+ /**
+ * Sample code: Get security recommendation tasks in a resource group.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSecurityRecommendationTasksInAResourceGroup(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.tasks().listByResourceGroup("myRg", "westeurope", null, Context.NONE);
+ }
+}
+```
+
+### Tasks_UpdateResourceGroupLevelTaskState
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.models.TasksTaskUpdateActionType;
+
+/** Samples for Tasks UpdateResourceGroupLevelTaskState. */
+public final class TasksUpdateResourceGroupLevelTaskStateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Tasks/UpdateTaskResourceGroupLocation_example.json
+ */
+ /**
+ * Sample code: Change security recommendation task state.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void changeSecurityRecommendationTaskState(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .tasks()
+ .updateResourceGroupLevelTaskStateWithResponse(
+ "myRg",
+ "westeurope",
+ "d55b4dc0-779c-c66c-33e5-d7bce24c4222",
+ TasksTaskUpdateActionType.DISMISS,
+ Context.NONE);
+ }
+}
+```
+
+### Tasks_UpdateSubscriptionLevelTaskState
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.models.TasksTaskUpdateActionType;
+
+/** Samples for Tasks UpdateSubscriptionLevelTaskState. */
+public final class TasksUpdateSubscriptionLevelTaskStateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Tasks/UpdateTaskSubscriptionLocation_example.json
+ */
+ /**
+ * Sample code: Change security recommendation task state.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void changeSecurityRecommendationTaskState(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .tasks()
+ .updateSubscriptionLevelTaskStateWithResponse(
+ "westeurope", "62609ee7-d0a5-8616-9fe4-1df5cca7758d", TasksTaskUpdateActionType.DISMISS, Context.NONE);
+ }
+}
+```
+
+### Topology_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Topology Get. */
+public final class TopologyGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/Topology/GetTopology_example.json
+ */
+ /**
+ * Sample code: Get topology.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getTopology(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.topologies().getWithResponse("myservers", "centralus", "vnets", Context.NONE);
+ }
+}
+```
+
+### Topology_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Topology List. */
+public final class TopologyListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/Topology/GetTopologySubscription_example.json
+ */
+ /**
+ * Sample code: Get topology on a subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getTopologyOnASubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.topologies().list(Context.NONE);
+ }
+}
+```
+
+### Topology_ListByHomeRegion
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Topology ListByHomeRegion. */
+public final class TopologyListByHomeRegionSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/Topology/GetTopologySubscriptionLocation_example.json
+ */
+ /**
+ * Sample code: Get topology on a subscription from security data location.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getTopologyOnASubscriptionFromSecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.topologies().listByHomeRegion("centralus", Context.NONE);
+ }
+}
+```
+
+### WorkspaceSettings_Create
+
+```java
+/** Samples for WorkspaceSettings Create. */
+public final class WorkspaceSettingsCreateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/WorkspaceSettings/CreateWorkspaceSetting_example.json
+ */
+ /**
+ * Sample code: Create a workspace setting data for subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createAWorkspaceSettingDataForSubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .workspaceSettings()
+ .define("default")
+ .withWorkspaceId(
+ "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace")
+ .withScope("/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23")
+ .create();
+ }
+}
+```
+
+### WorkspaceSettings_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WorkspaceSettings Delete. */
+public final class WorkspaceSettingsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/WorkspaceSettings/DeleteWorkspaceSetting_example.json
+ */
+ /**
+ * Sample code: Delete a workspace setting data for resource group.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void deleteAWorkspaceSettingDataForResourceGroup(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.workspaceSettings().deleteWithResponse("default", Context.NONE);
+ }
+}
+```
+
+### WorkspaceSettings_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WorkspaceSettings Get. */
+public final class WorkspaceSettingsGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/WorkspaceSettings/GetWorkspaceSetting_example.json
+ */
+ /**
+ * Sample code: Get a workspace setting on subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getAWorkspaceSettingOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.workspaceSettings().getWithResponse("default", Context.NONE);
+ }
+}
+```
+
+### WorkspaceSettings_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WorkspaceSettings List. */
+public final class WorkspaceSettingsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/WorkspaceSettings/GetWorkspaceSettings_example.json
+ */
+ /**
+ * Sample code: Get workspace settings on subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getWorkspaceSettingsOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.workspaceSettings().list(Context.NONE);
+ }
+}
+```
+
+### WorkspaceSettings_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.models.WorkspaceSetting;
+
+/** Samples for WorkspaceSettings Update. */
+public final class WorkspaceSettingsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/WorkspaceSettings/UpdateWorkspaceSetting_example.json
+ */
+ /**
+ * Sample code: Update a workspace setting data for subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void updateAWorkspaceSettingDataForSubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ WorkspaceSetting resource = manager.workspaceSettings().getWithResponse("default", Context.NONE).getValue();
+ resource
+ .update()
+ .withWorkspaceId(
+ "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace")
+ .apply();
+ }
+}
+```
-- [Create](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/WorkspaceSettingsCreateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/WorkspaceSettingsDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/WorkspaceSettingsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/WorkspaceSettingsListSamples.java)
-- [Update](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/WorkspaceSettingsUpdateSamples.java)
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/SecurityManager.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/SecurityManager.java
index cdcf2fc45d00..f3f35300865e 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/SecurityManager.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/SecurityManager.java
@@ -34,28 +34,20 @@
import com.azure.resourcemanager.security.implementation.ComplianceResultsImpl;
import com.azure.resourcemanager.security.implementation.CompliancesImpl;
import com.azure.resourcemanager.security.implementation.ConnectorsImpl;
+import com.azure.resourcemanager.security.implementation.CustomAssessmentAutomationsImpl;
+import com.azure.resourcemanager.security.implementation.CustomEntityStoreAssignmentsImpl;
import com.azure.resourcemanager.security.implementation.DeviceSecurityGroupsImpl;
-import com.azure.resourcemanager.security.implementation.DevicesForHubsImpl;
-import com.azure.resourcemanager.security.implementation.DevicesForSubscriptionsImpl;
-import com.azure.resourcemanager.security.implementation.DevicesImpl;
import com.azure.resourcemanager.security.implementation.DiscoveredSecuritySolutionsImpl;
import com.azure.resourcemanager.security.implementation.ExternalSecuritySolutionsImpl;
import com.azure.resourcemanager.security.implementation.InformationProtectionPoliciesImpl;
import com.azure.resourcemanager.security.implementation.IngestionSettingsImpl;
-import com.azure.resourcemanager.security.implementation.IotAlertTypesImpl;
-import com.azure.resourcemanager.security.implementation.IotAlertsImpl;
-import com.azure.resourcemanager.security.implementation.IotDefenderSettingsImpl;
-import com.azure.resourcemanager.security.implementation.IotRecommendationTypesImpl;
-import com.azure.resourcemanager.security.implementation.IotRecommendationsImpl;
import com.azure.resourcemanager.security.implementation.IotSecuritySolutionAnalyticsImpl;
import com.azure.resourcemanager.security.implementation.IotSecuritySolutionsAnalyticsAggregatedAlertsImpl;
import com.azure.resourcemanager.security.implementation.IotSecuritySolutionsAnalyticsRecommendationsImpl;
import com.azure.resourcemanager.security.implementation.IotSecuritySolutionsImpl;
-import com.azure.resourcemanager.security.implementation.IotSensorsImpl;
-import com.azure.resourcemanager.security.implementation.IotSitesImpl;
import com.azure.resourcemanager.security.implementation.JitNetworkAccessPoliciesImpl;
import com.azure.resourcemanager.security.implementation.LocationsImpl;
-import com.azure.resourcemanager.security.implementation.OnPremiseIotSensorsImpl;
+import com.azure.resourcemanager.security.implementation.MdeOnboardingsImpl;
import com.azure.resourcemanager.security.implementation.OperationsImpl;
import com.azure.resourcemanager.security.implementation.PricingsImpl;
import com.azure.resourcemanager.security.implementation.RegulatoryComplianceAssessmentsImpl;
@@ -65,6 +57,7 @@
import com.azure.resourcemanager.security.implementation.SecureScoreControlsImpl;
import com.azure.resourcemanager.security.implementation.SecureScoresImpl;
import com.azure.resourcemanager.security.implementation.SecurityCenterBuilder;
+import com.azure.resourcemanager.security.implementation.SecurityConnectorsImpl;
import com.azure.resourcemanager.security.implementation.SecurityContactsImpl;
import com.azure.resourcemanager.security.implementation.SecuritySolutionsImpl;
import com.azure.resourcemanager.security.implementation.SecuritySolutionsReferenceDatasImpl;
@@ -91,28 +84,20 @@
import com.azure.resourcemanager.security.models.ComplianceResults;
import com.azure.resourcemanager.security.models.Compliances;
import com.azure.resourcemanager.security.models.Connectors;
+import com.azure.resourcemanager.security.models.CustomAssessmentAutomations;
+import com.azure.resourcemanager.security.models.CustomEntityStoreAssignments;
import com.azure.resourcemanager.security.models.DeviceSecurityGroups;
-import com.azure.resourcemanager.security.models.Devices;
-import com.azure.resourcemanager.security.models.DevicesForHubs;
-import com.azure.resourcemanager.security.models.DevicesForSubscriptions;
import com.azure.resourcemanager.security.models.DiscoveredSecuritySolutions;
import com.azure.resourcemanager.security.models.ExternalSecuritySolutions;
import com.azure.resourcemanager.security.models.InformationProtectionPolicies;
import com.azure.resourcemanager.security.models.IngestionSettings;
-import com.azure.resourcemanager.security.models.IotAlertTypes;
-import com.azure.resourcemanager.security.models.IotAlerts;
-import com.azure.resourcemanager.security.models.IotDefenderSettings;
-import com.azure.resourcemanager.security.models.IotRecommendationTypes;
-import com.azure.resourcemanager.security.models.IotRecommendations;
import com.azure.resourcemanager.security.models.IotSecuritySolutionAnalytics;
import com.azure.resourcemanager.security.models.IotSecuritySolutions;
import com.azure.resourcemanager.security.models.IotSecuritySolutionsAnalyticsAggregatedAlerts;
import com.azure.resourcemanager.security.models.IotSecuritySolutionsAnalyticsRecommendations;
-import com.azure.resourcemanager.security.models.IotSensors;
-import com.azure.resourcemanager.security.models.IotSites;
import com.azure.resourcemanager.security.models.JitNetworkAccessPolicies;
import com.azure.resourcemanager.security.models.Locations;
-import com.azure.resourcemanager.security.models.OnPremiseIotSensors;
+import com.azure.resourcemanager.security.models.MdeOnboardings;
import com.azure.resourcemanager.security.models.Operations;
import com.azure.resourcemanager.security.models.Pricings;
import com.azure.resourcemanager.security.models.RegulatoryComplianceAssessments;
@@ -121,6 +106,7 @@
import com.azure.resourcemanager.security.models.SecureScoreControlDefinitions;
import com.azure.resourcemanager.security.models.SecureScoreControls;
import com.azure.resourcemanager.security.models.SecureScores;
+import com.azure.resourcemanager.security.models.SecurityConnectors;
import com.azure.resourcemanager.security.models.SecurityContacts;
import com.azure.resourcemanager.security.models.SecuritySolutions;
import com.azure.resourcemanager.security.models.SecuritySolutionsReferenceDatas;
@@ -142,6 +128,12 @@
/** Entry point to SecurityManager. API spec for Microsoft.Security (Azure Security Center) resource provider. */
public final class SecurityManager {
+ private MdeOnboardings mdeOnboardings;
+
+ private CustomAssessmentAutomations customAssessmentAutomations;
+
+ private CustomEntityStoreAssignments customEntityStoreAssignments;
+
private ComplianceResults complianceResults;
private Pricings pricings;
@@ -224,28 +216,6 @@ public final class SecurityManager {
private SqlVulnerabilityAssessmentBaselineRules sqlVulnerabilityAssessmentBaselineRules;
- private IotDefenderSettings iotDefenderSettings;
-
- private IotSensors iotSensors;
-
- private DevicesForSubscriptions devicesForSubscriptions;
-
- private DevicesForHubs devicesForHubs;
-
- private Devices devices;
-
- private OnPremiseIotSensors onPremiseIotSensors;
-
- private IotSites iotSites;
-
- private IotAlerts iotAlerts;
-
- private IotAlertTypes iotAlertTypes;
-
- private IotRecommendations iotRecommendations;
-
- private IotRecommendationTypes iotRecommendationTypes;
-
private Alerts alerts;
private Settings settings;
@@ -254,6 +224,8 @@ public final class SecurityManager {
private SoftwareInventories softwareInventories;
+ private SecurityConnectors securityConnectors;
+
private final SecurityCenter clientObject;
private SecurityManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -429,6 +401,32 @@ public SecurityManager authenticate(TokenCredential credential, AzureProfile pro
}
}
+ /** @return Resource collection API of MdeOnboardings. */
+ public MdeOnboardings mdeOnboardings() {
+ if (this.mdeOnboardings == null) {
+ this.mdeOnboardings = new MdeOnboardingsImpl(clientObject.getMdeOnboardings(), this);
+ }
+ return mdeOnboardings;
+ }
+
+ /** @return Resource collection API of CustomAssessmentAutomations. */
+ public CustomAssessmentAutomations customAssessmentAutomations() {
+ if (this.customAssessmentAutomations == null) {
+ this.customAssessmentAutomations =
+ new CustomAssessmentAutomationsImpl(clientObject.getCustomAssessmentAutomations(), this);
+ }
+ return customAssessmentAutomations;
+ }
+
+ /** @return Resource collection API of CustomEntityStoreAssignments. */
+ public CustomEntityStoreAssignments customEntityStoreAssignments() {
+ if (this.customEntityStoreAssignments == null) {
+ this.customEntityStoreAssignments =
+ new CustomEntityStoreAssignmentsImpl(clientObject.getCustomEntityStoreAssignments(), this);
+ }
+ return customEntityStoreAssignments;
+ }
+
/** @return Resource collection API of ComplianceResults. */
public ComplianceResults complianceResults() {
if (this.complianceResults == null) {
@@ -782,96 +780,6 @@ public SqlVulnerabilityAssessmentBaselineRules sqlVulnerabilityAssessmentBaselin
return sqlVulnerabilityAssessmentBaselineRules;
}
- /** @return Resource collection API of IotDefenderSettings. */
- public IotDefenderSettings iotDefenderSettings() {
- if (this.iotDefenderSettings == null) {
- this.iotDefenderSettings = new IotDefenderSettingsImpl(clientObject.getIotDefenderSettings(), this);
- }
- return iotDefenderSettings;
- }
-
- /** @return Resource collection API of IotSensors. */
- public IotSensors iotSensors() {
- if (this.iotSensors == null) {
- this.iotSensors = new IotSensorsImpl(clientObject.getIotSensors(), this);
- }
- return iotSensors;
- }
-
- /** @return Resource collection API of DevicesForSubscriptions. */
- public DevicesForSubscriptions devicesForSubscriptions() {
- if (this.devicesForSubscriptions == null) {
- this.devicesForSubscriptions =
- new DevicesForSubscriptionsImpl(clientObject.getDevicesForSubscriptions(), this);
- }
- return devicesForSubscriptions;
- }
-
- /** @return Resource collection API of DevicesForHubs. */
- public DevicesForHubs devicesForHubs() {
- if (this.devicesForHubs == null) {
- this.devicesForHubs = new DevicesForHubsImpl(clientObject.getDevicesForHubs(), this);
- }
- return devicesForHubs;
- }
-
- /** @return Resource collection API of Devices. */
- public Devices devices() {
- if (this.devices == null) {
- this.devices = new DevicesImpl(clientObject.getDevices(), this);
- }
- return devices;
- }
-
- /** @return Resource collection API of OnPremiseIotSensors. */
- public OnPremiseIotSensors onPremiseIotSensors() {
- if (this.onPremiseIotSensors == null) {
- this.onPremiseIotSensors = new OnPremiseIotSensorsImpl(clientObject.getOnPremiseIotSensors(), this);
- }
- return onPremiseIotSensors;
- }
-
- /** @return Resource collection API of IotSites. */
- public IotSites iotSites() {
- if (this.iotSites == null) {
- this.iotSites = new IotSitesImpl(clientObject.getIotSites(), this);
- }
- return iotSites;
- }
-
- /** @return Resource collection API of IotAlerts. */
- public IotAlerts iotAlerts() {
- if (this.iotAlerts == null) {
- this.iotAlerts = new IotAlertsImpl(clientObject.getIotAlerts(), this);
- }
- return iotAlerts;
- }
-
- /** @return Resource collection API of IotAlertTypes. */
- public IotAlertTypes iotAlertTypes() {
- if (this.iotAlertTypes == null) {
- this.iotAlertTypes = new IotAlertTypesImpl(clientObject.getIotAlertTypes(), this);
- }
- return iotAlertTypes;
- }
-
- /** @return Resource collection API of IotRecommendations. */
- public IotRecommendations iotRecommendations() {
- if (this.iotRecommendations == null) {
- this.iotRecommendations = new IotRecommendationsImpl(clientObject.getIotRecommendations(), this);
- }
- return iotRecommendations;
- }
-
- /** @return Resource collection API of IotRecommendationTypes. */
- public IotRecommendationTypes iotRecommendationTypes() {
- if (this.iotRecommendationTypes == null) {
- this.iotRecommendationTypes =
- new IotRecommendationTypesImpl(clientObject.getIotRecommendationTypes(), this);
- }
- return iotRecommendationTypes;
- }
-
/** @return Resource collection API of Alerts. */
public Alerts alerts() {
if (this.alerts == null) {
@@ -904,6 +812,14 @@ public SoftwareInventories softwareInventories() {
return softwareInventories;
}
+ /** @return Resource collection API of SecurityConnectors. */
+ public SecurityConnectors securityConnectors() {
+ if (this.securityConnectors == null) {
+ this.securityConnectors = new SecurityConnectorsImpl(clientObject.getSecurityConnectors(), this);
+ }
+ return securityConnectors;
+ }
+
/**
* @return Wrapped service client SecurityCenter providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdaptiveNetworkHardeningsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdaptiveNetworkHardeningsClient.java
index da45ed63794d..05b7260a7f28 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdaptiveNetworkHardeningsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdaptiveNetworkHardeningsClient.java
@@ -112,7 +112,7 @@ Response getWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginEnforce(
String resourceGroupName,
String resourceNamespace,
@@ -137,7 +137,7 @@ SyncPoller, Void> beginEnforce(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginEnforce(
String resourceGroupName,
String resourceNamespace,
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsClient.java
index a2e489ff8652..e614b0d063ca 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsClient.java
@@ -384,7 +384,7 @@ Response updateResourceGroupLevelStateToActivateWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginSimulate(
String ascLocation, AlertSimulatorRequestBody alertSimulatorRequestBody);
@@ -400,7 +400,7 @@ SyncPoller, Void> beginSimulate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginSimulate(
String ascLocation, AlertSimulatorRequestBody alertSimulatorRequestBody, Context context);
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsClient.java
index 5d3b6586bae3..2a460bf72778 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsClient.java
@@ -9,8 +9,9 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.SecurityAssessmentInner;
+import com.azure.resourcemanager.security.fluent.models.SecurityAssessmentResponseInner;
import com.azure.resourcemanager.security.models.ExpandEnum;
+import com.azure.resourcemanager.security.models.SecurityAssessment;
/** An instance of this class provides access to all the operations defined in AssessmentsClient. */
public interface AssessmentsClient {
@@ -25,7 +26,7 @@ public interface AssessmentsClient {
* @return security assessments on all your scanned resources inside a scope.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope);
+ PagedIterable list(String scope);
/**
* Get security assessments on all your scanned resources inside a scope.
@@ -39,7 +40,7 @@ public interface AssessmentsClient {
* @return security assessments on all your scanned resources inside a scope.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope, Context context);
+ PagedIterable list(String scope, Context context);
/**
* Get a security assessment on your scanned resource.
@@ -52,7 +53,7 @@ public interface AssessmentsClient {
* @return a security assessment on your scanned resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecurityAssessmentInner get(String resourceId, String assessmentName);
+ SecurityAssessmentResponseInner get(String resourceId, String assessmentName);
/**
* Get a security assessment on your scanned resource.
@@ -67,7 +68,7 @@ public interface AssessmentsClient {
* @return a security assessment on your scanned resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
+ Response getWithResponse(
String resourceId, String assessmentName, ExpandEnum expand, Context context);
/**
@@ -80,11 +81,11 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security assessment on a resource.
+ * @return security assessment on a resource - response format.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecurityAssessmentInner createOrUpdate(
- String resourceId, String assessmentName, SecurityAssessmentInner assessment);
+ SecurityAssessmentResponseInner createOrUpdate(
+ String resourceId, String assessmentName, SecurityAssessment assessment);
/**
* Create a security assessment on your resource. An assessment metadata that describes this assessment must be
@@ -97,11 +98,11 @@ SecurityAssessmentInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security assessment on a resource.
+ * @return security assessment on a resource - response format.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceId, String assessmentName, SecurityAssessmentInner assessment, Context context);
+ Response createOrUpdateWithResponse(
+ String resourceId, String assessmentName, SecurityAssessment assessment, Context context);
/**
* Delete a security assessment on your resource. An assessment metadata that describes this assessment must be
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsMetadatasClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsMetadatasClient.java
index 6cc6f62ecf44..595cfc2b325c 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsMetadatasClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsMetadatasClient.java
@@ -9,7 +9,7 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.SecurityAssessmentMetadataInner;
+import com.azure.resourcemanager.security.fluent.models.SecurityAssessmentMetadataResponseInner;
/** An instance of this class provides access to all the operations defined in AssessmentsMetadatasClient. */
public interface AssessmentsMetadatasClient {
@@ -21,7 +21,7 @@ public interface AssessmentsMetadatasClient {
* @return metadata information on all assessment types.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ PagedIterable list();
/**
* Get metadata information on all assessment types.
@@ -33,7 +33,7 @@ public interface AssessmentsMetadatasClient {
* @return metadata information on all assessment types.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
+ PagedIterable list(Context context);
/**
* Get metadata information on an assessment type.
@@ -45,7 +45,7 @@ public interface AssessmentsMetadatasClient {
* @return metadata information on an assessment type.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecurityAssessmentMetadataInner get(String assessmentMetadataName);
+ SecurityAssessmentMetadataResponseInner get(String assessmentMetadataName);
/**
* Get metadata information on an assessment type.
@@ -58,7 +58,7 @@ public interface AssessmentsMetadatasClient {
* @return metadata information on an assessment type.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String assessmentMetadataName, Context context);
+ Response getWithResponse(String assessmentMetadataName, Context context);
/**
* Get metadata information on all assessment types in a specific subscription.
@@ -68,7 +68,7 @@ public interface AssessmentsMetadatasClient {
* @return metadata information on all assessment types in a specific subscription.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listBySubscription();
+ PagedIterable listBySubscription();
/**
* Get metadata information on all assessment types in a specific subscription.
@@ -80,7 +80,7 @@ public interface AssessmentsMetadatasClient {
* @return metadata information on all assessment types in a specific subscription.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listBySubscription(Context context);
+ PagedIterable listBySubscription(Context context);
/**
* Get metadata information on an assessment type in a specific subscription.
@@ -92,7 +92,7 @@ public interface AssessmentsMetadatasClient {
* @return metadata information on an assessment type in a specific subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecurityAssessmentMetadataInner getInSubscription(String assessmentMetadataName);
+ SecurityAssessmentMetadataResponseInner getInSubscription(String assessmentMetadataName);
/**
* Get metadata information on an assessment type in a specific subscription.
@@ -105,7 +105,7 @@ public interface AssessmentsMetadatasClient {
* @return metadata information on an assessment type in a specific subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getInSubscriptionWithResponse(
+ Response getInSubscriptionWithResponse(
String assessmentMetadataName, Context context);
/**
@@ -116,11 +116,11 @@ Response getInSubscriptionWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security assessment metadata.
+ * @return security assessment metadata response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecurityAssessmentMetadataInner createInSubscription(
- String assessmentMetadataName, SecurityAssessmentMetadataInner assessmentMetadata);
+ SecurityAssessmentMetadataResponseInner createInSubscription(
+ String assessmentMetadataName, SecurityAssessmentMetadataResponseInner assessmentMetadata);
/**
* Create metadata information on an assessment type in a specific subscription.
@@ -131,11 +131,11 @@ SecurityAssessmentMetadataInner createInSubscription(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security assessment metadata.
+ * @return security assessment metadata response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createInSubscriptionWithResponse(
- String assessmentMetadataName, SecurityAssessmentMetadataInner assessmentMetadata, Context context);
+ Response createInSubscriptionWithResponse(
+ String assessmentMetadataName, SecurityAssessmentMetadataResponseInner assessmentMetadata, Context context);
/**
* Delete metadata information on an assessment type in a specific subscription, will cause the deletion of all the
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomAssessmentAutomationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomAssessmentAutomationsClient.java
new file mode 100644
index 000000000000..aacbf9c554dd
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomAssessmentAutomationsClient.java
@@ -0,0 +1,163 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.fluent.models.CustomAssessmentAutomationInner;
+import com.azure.resourcemanager.security.models.CustomAssessmentAutomationRequest;
+
+/** An instance of this class provides access to all the operations defined in CustomAssessmentAutomationsClient. */
+public interface CustomAssessmentAutomationsClient {
+ /**
+ * Gets a single custom assessment automation by name for the provided subscription and resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param customAssessmentAutomationName Name of the Custom Assessment Automation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a single custom assessment automation by name for the provided subscription and resource group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CustomAssessmentAutomationInner getByResourceGroup(String resourceGroupName, String customAssessmentAutomationName);
+
+ /**
+ * Gets a single custom assessment automation by name for the provided subscription and resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param customAssessmentAutomationName Name of the Custom Assessment Automation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a single custom assessment automation by name for the provided subscription and resource group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String customAssessmentAutomationName, Context context);
+
+ /**
+ * Creates or updates a custom assessment automation for the provided subscription. Please note that providing an
+ * existing custom assessment automation will replace the existing record.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param customAssessmentAutomationName Name of the Custom Assessment Automation.
+ * @param customAssessmentAutomationBody Custom Assessment Automation body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom Assessment Automation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CustomAssessmentAutomationInner create(
+ String resourceGroupName,
+ String customAssessmentAutomationName,
+ CustomAssessmentAutomationRequest customAssessmentAutomationBody);
+
+ /**
+ * Creates or updates a custom assessment automation for the provided subscription. Please note that providing an
+ * existing custom assessment automation will replace the existing record.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param customAssessmentAutomationName Name of the Custom Assessment Automation.
+ * @param customAssessmentAutomationBody Custom Assessment Automation body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom Assessment Automation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createWithResponse(
+ String resourceGroupName,
+ String customAssessmentAutomationName,
+ CustomAssessmentAutomationRequest customAssessmentAutomationBody,
+ Context context);
+
+ /**
+ * Deletes a custom assessment automation by name for a provided subscription.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param customAssessmentAutomationName Name of the Custom Assessment Automation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String customAssessmentAutomationName);
+
+ /**
+ * Deletes a custom assessment automation by name for a provided subscription.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param customAssessmentAutomationName Name of the Custom Assessment Automation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String customAssessmentAutomationName, Context context);
+
+ /**
+ * List custom assessment automations by provided subscription and resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of Custom Assessment Automations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List custom assessment automations by provided subscription and resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of Custom Assessment Automations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * List custom assessment automations by provided subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of Custom Assessment Automations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List custom assessment automations by provided subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of Custom Assessment Automations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomEntityStoreAssignmentsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomEntityStoreAssignmentsClient.java
new file mode 100644
index 000000000000..ad69fae85ad8
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomEntityStoreAssignmentsClient.java
@@ -0,0 +1,163 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.fluent.models.CustomEntityStoreAssignmentInner;
+import com.azure.resourcemanager.security.models.CustomEntityStoreAssignmentRequest;
+
+/** An instance of this class provides access to all the operations defined in CustomEntityStoreAssignmentsClient. */
+public interface CustomEntityStoreAssignmentsClient {
+ /**
+ * Gets a single custom entity store assignment by name for the provided subscription and resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a single custom entity store assignment by name for the provided subscription and resource group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CustomEntityStoreAssignmentInner getByResourceGroup(
+ String resourceGroupName, String customEntityStoreAssignmentName);
+
+ /**
+ * Gets a single custom entity store assignment by name for the provided subscription and resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a single custom entity store assignment by name for the provided subscription and resource group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String customEntityStoreAssignmentName, Context context);
+
+ /**
+ * Creates a custom entity store assignment for the provided subscription, if not already exists.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID.
+ * @param customEntityStoreAssignmentRequestBody Custom entity store assignment body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom entity store assignment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CustomEntityStoreAssignmentInner create(
+ String resourceGroupName,
+ String customEntityStoreAssignmentName,
+ CustomEntityStoreAssignmentRequest customEntityStoreAssignmentRequestBody);
+
+ /**
+ * Creates a custom entity store assignment for the provided subscription, if not already exists.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID.
+ * @param customEntityStoreAssignmentRequestBody Custom entity store assignment body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom entity store assignment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createWithResponse(
+ String resourceGroupName,
+ String customEntityStoreAssignmentName,
+ CustomEntityStoreAssignmentRequest customEntityStoreAssignmentRequestBody,
+ Context context);
+
+ /**
+ * Delete a custom entity store assignment by name for a provided subscription.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String customEntityStoreAssignmentName);
+
+ /**
+ * Delete a custom entity store assignment by name for a provided subscription.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String customEntityStoreAssignmentName, Context context);
+
+ /**
+ * List custom entity store assignments by a provided subscription and resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of custom entity store assignments.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List custom entity store assignments by a provided subscription and resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of custom entity store assignments.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * List custom entity store assignments by provided subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of custom entity store assignments.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List custom entity store assignments by provided subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of custom entity store assignments.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesClient.java
deleted file mode 100644
index 90532443f9ff..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesClient.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.security.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.DeviceInner;
-
-/** An instance of this class provides access to all the operations defined in DevicesClient. */
-public interface DevicesClient {
- /**
- * Get device.
- *
- * @param resourceId The identifier of the resource.
- * @param deviceId Identifier of the device.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return device.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DeviceInner get(String resourceId, String deviceId);
-
- /**
- * Get device.
- *
- * @param resourceId The identifier of the resource.
- * @param deviceId Identifier of the device.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return device.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceId, String deviceId, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesForHubsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesForHubsClient.java
deleted file mode 100644
index 69f002544a43..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesForHubsClient.java
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.security.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.DeviceInner;
-import com.azure.resourcemanager.security.models.ManagementState;
-
-/** An instance of this class provides access to all the operations defined in DevicesForHubsClient. */
-public interface DevicesForHubsClient {
- /**
- * Get list of the devices for the specified IoT Hub resource.
- *
- * @param resourceId The identifier of the resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of the devices for the specified IoT Hub resource.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceId);
-
- /**
- * Get list of the devices for the specified IoT Hub resource.
- *
- * @param resourceId The identifier of the resource.
- * @param limit Limit the number of items returned in a single page.
- * @param skipToken Skip token used for pagination.
- * @param deviceManagementType Get devices only from specific type, Managed or Unmanaged.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of the devices for the specified IoT Hub resource.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- String resourceId, Integer limit, String skipToken, ManagementState deviceManagementType, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesForSubscriptionsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesForSubscriptionsClient.java
deleted file mode 100644
index 155c79771103..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesForSubscriptionsClient.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.security.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.DeviceInner;
-import com.azure.resourcemanager.security.models.ManagementState;
-
-/** An instance of this class provides access to all the operations defined in DevicesForSubscriptionsClient. */
-public interface DevicesForSubscriptionsClient {
- /**
- * Get list of the devices by their subscription.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of the devices by their subscription.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Get list of the devices by their subscription.
- *
- * @param limit Limit the number of items returned in a single page.
- * @param skipToken Skip token used for pagination.
- * @param deviceManagementType Get devices only from specific type, Managed or Unmanaged.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of the devices by their subscription.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- Integer limit, String skipToken, ManagementState deviceManagementType, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotAlertsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotAlertsClient.java
deleted file mode 100644
index add204e53a99..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotAlertsClient.java
+++ /dev/null
@@ -1,88 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.security.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.IotAlertModelInner;
-import com.azure.resourcemanager.security.models.ManagementState;
-
-/** An instance of this class provides access to all the operations defined in IotAlertsClient. */
-public interface IotAlertsClient {
- /**
- * List IoT alerts.
- *
- * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e.
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT alerts.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope);
-
- /**
- * List IoT alerts.
- *
- * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e.
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- * @param minStartTimeUtc Filter by minimum startTimeUtc (ISO 8601 format).
- * @param maxStartTimeUtc Filter by maximum startTimeUtc (ISO 8601 format).
- * @param alertType Filter by alert type.
- * @param deviceManagementType Get devices only from specific type, Managed or Unmanaged.
- * @param compromisedEntity Filter by compromised device.
- * @param limit Limit the number of items returned in a single page.
- * @param skipToken Skip token used for pagination.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT alerts.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- String scope,
- String minStartTimeUtc,
- String maxStartTimeUtc,
- String alertType,
- ManagementState deviceManagementType,
- String compromisedEntity,
- Integer limit,
- String skipToken,
- Context context);
-
- /**
- * Get IoT alert.
- *
- * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e.
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- * @param iotAlertId Id of the alert.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT alert.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotAlertModelInner get(String scope, String iotAlertId);
-
- /**
- * Get IoT alert.
- *
- * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e.
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- * @param iotAlertId Id of the alert.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT alert.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String scope, String iotAlertId, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotDefenderSettingsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotDefenderSettingsClient.java
deleted file mode 100644
index 2fc29dca0093..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotDefenderSettingsClient.java
+++ /dev/null
@@ -1,153 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.security.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.StreamResponse;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.IotDefenderSettingsListInner;
-import com.azure.resourcemanager.security.fluent.models.IotDefenderSettingsModelInner;
-import com.azure.resourcemanager.security.fluent.models.PackageDownloadsInner;
-import java.io.InputStream;
-
-/** An instance of this class provides access to all the operations defined in IotDefenderSettingsClient. */
-public interface IotDefenderSettingsClient {
- /**
- * List IoT Defender Settings.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT Defender settings.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotDefenderSettingsListInner list();
-
- /**
- * List IoT Defender Settings.
- *
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT Defender settings.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(Context context);
-
- /**
- * Get IoT Defender Settings.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT Defender Settings.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotDefenderSettingsModelInner get();
-
- /**
- * Get IoT Defender Settings.
- *
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT Defender Settings.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(Context context);
-
- /**
- * Create or update IoT Defender settings.
- *
- * @param iotDefenderSettingsModel The IoT defender settings model.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT Defender settings.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotDefenderSettingsModelInner createOrUpdate(IotDefenderSettingsModelInner iotDefenderSettingsModel);
-
- /**
- * Create or update IoT Defender settings.
- *
- * @param iotDefenderSettingsModel The IoT defender settings model.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT Defender settings.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- IotDefenderSettingsModelInner iotDefenderSettingsModel, Context context);
-
- /**
- * Delete IoT Defender settings.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete();
-
- /**
- * Delete IoT Defender settings.
- *
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(Context context);
-
- /**
- * Information about downloadable packages.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about package downloads.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PackageDownloadsInner packageDownloads();
-
- /**
- * Information about downloadable packages.
- *
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about package downloads.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response packageDownloadsWithResponse(Context context);
-
- /**
- * Download manager activation data defined for this subscription.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- InputStream downloadManagerActivation();
-
- /**
- * Download manager activation data defined for this subscription.
- *
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- StreamResponse downloadManagerActivationWithResponse(Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotRecommendationTypesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotRecommendationTypesClient.java
deleted file mode 100644
index 73ef2991f597..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotRecommendationTypesClient.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.security.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.IotRecommendationTypeInner;
-import com.azure.resourcemanager.security.fluent.models.IotRecommendationTypeListInner;
-
-/** An instance of this class provides access to all the operations defined in IotRecommendationTypesClient. */
-public interface IotRecommendationTypesClient {
- /**
- * List IoT recommendation types.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of recommendation types.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotRecommendationTypeListInner list();
-
- /**
- * List IoT recommendation types.
- *
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of recommendation types.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(Context context);
-
- /**
- * Get IoT recommendation type.
- *
- * @param iotRecommendationTypeName Name of the recommendation type.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT recommendation type.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotRecommendationTypeInner get(String iotRecommendationTypeName);
-
- /**
- * Get IoT recommendation type.
- *
- * @param iotRecommendationTypeName Name of the recommendation type.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT recommendation type.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String iotRecommendationTypeName, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotRecommendationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotRecommendationsClient.java
deleted file mode 100644
index 8d800d83f319..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotRecommendationsClient.java
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.security.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.IotRecommendationModelInner;
-
-/** An instance of this class provides access to all the operations defined in IotRecommendationsClient. */
-public interface IotRecommendationsClient {
- /**
- * List IoT recommendations.
- *
- * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e.
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT recommendations.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope);
-
- /**
- * List IoT recommendations.
- *
- * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e.
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- * @param recommendationType Filter by recommendation type.
- * @param deviceId Filter by device id.
- * @param limit Limit the number of items returned in a single page.
- * @param skipToken Skip token used for pagination.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT recommendations.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- String scope, String recommendationType, String deviceId, Integer limit, String skipToken, Context context);
-
- /**
- * Get IoT recommendation.
- *
- * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e.
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- * @param iotRecommendationId Id of the recommendation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT recommendation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotRecommendationModelInner get(String scope, String iotRecommendationId);
-
- /**
- * Get IoT recommendation.
- *
- * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e.
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- * @param iotRecommendationId Id of the recommendation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT recommendation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String scope, String iotRecommendationId, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSensorsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSensorsClient.java
deleted file mode 100644
index 6ea5cb5022dc..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSensorsClient.java
+++ /dev/null
@@ -1,209 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.security.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.StreamResponse;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.IotSensorsListInner;
-import com.azure.resourcemanager.security.fluent.models.IotSensorsModelInner;
-import com.azure.resourcemanager.security.models.ResetPasswordInput;
-import java.io.InputStream;
-
-/** An instance of this class provides access to all the operations defined in IotSensorsClient. */
-public interface IotSensorsClient {
- /**
- * List IoT sensors.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT sensors.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotSensorsListInner list(String scope);
-
- /**
- * List IoT sensors.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT sensors.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(String scope, Context context);
-
- /**
- * Get IoT sensor.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT sensor.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotSensorsModelInner get(String scope, String iotSensorName);
-
- /**
- * Get IoT sensor.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT sensor.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String scope, String iotSensorName, Context context);
-
- /**
- * Create or update IoT sensor.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @param iotSensorsModel The IoT sensor model.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT sensor model.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotSensorsModelInner createOrUpdate(String scope, String iotSensorName, IotSensorsModelInner iotSensorsModel);
-
- /**
- * Create or update IoT sensor.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @param iotSensorsModel The IoT sensor model.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT sensor model.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String scope, String iotSensorName, IotSensorsModelInner iotSensorsModel, Context context);
-
- /**
- * Delete IoT sensor.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String scope, String iotSensorName);
-
- /**
- * Delete IoT sensor.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String scope, String iotSensorName, Context context);
-
- /**
- * Download sensor activation file.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- InputStream downloadActivation(String scope, String iotSensorName);
-
- /**
- * Download sensor activation file.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- StreamResponse downloadActivationWithResponse(String scope, String iotSensorName, Context context);
-
- /**
- * Download file for reset password of the sensor.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @param body The reset password input.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- InputStream downloadResetPassword(String scope, String iotSensorName, ResetPasswordInput body);
-
- /**
- * Download file for reset password of the sensor.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @param body The reset password input.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- StreamResponse downloadResetPasswordWithResponse(
- String scope, String iotSensorName, ResetPasswordInput body, Context context);
-
- /**
- * Trigger threat intelligence package update.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void triggerTiPackageUpdate(String scope, String iotSensorName);
-
- /**
- * Trigger threat intelligence package update.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response triggerTiPackageUpdateWithResponse(String scope, String iotSensorName, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSitesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSitesClient.java
deleted file mode 100644
index 4945f8bc0f1d..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSitesClient.java
+++ /dev/null
@@ -1,117 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.security.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.IotSitesListInner;
-import com.azure.resourcemanager.security.fluent.models.IotSitesModelInner;
-
-/** An instance of this class provides access to all the operations defined in IotSitesClient. */
-public interface IotSitesClient {
- /**
- * List IoT sites.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT sites.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotSitesListInner list(String scope);
-
- /**
- * List IoT sites.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT sites.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(String scope, Context context);
-
- /**
- * Get IoT site.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT site.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotSitesModelInner get(String scope);
-
- /**
- * Get IoT site.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT site.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String scope, Context context);
-
- /**
- * Create or update IoT site.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSitesModel The IoT sites model.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT site model.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotSitesModelInner createOrUpdate(String scope, IotSitesModelInner iotSitesModel);
-
- /**
- * Create or update IoT site.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSitesModel The IoT sites model.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT site model.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String scope, IotSitesModelInner iotSitesModel, Context context);
-
- /**
- * Delete IoT site.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String scope);
-
- /**
- * Delete IoT site.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String scope, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotAlertTypesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/MdeOnboardingsClient.java
similarity index 64%
rename from sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotAlertTypesClient.java
rename to sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/MdeOnboardingsClient.java
index c61e6ae4bc96..004e5c72adce 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotAlertTypesClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/MdeOnboardingsClient.java
@@ -8,55 +8,52 @@
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.IotAlertTypeInner;
-import com.azure.resourcemanager.security.fluent.models.IotAlertTypeListInner;
+import com.azure.resourcemanager.security.fluent.models.MdeOnboardingDataInner;
+import com.azure.resourcemanager.security.fluent.models.MdeOnboardingDataListInner;
-/** An instance of this class provides access to all the operations defined in IotAlertTypesClient. */
-public interface IotAlertTypesClient {
+/** An instance of this class provides access to all the operations defined in MdeOnboardingsClient. */
+public interface MdeOnboardingsClient {
/**
- * List IoT alert types.
+ * The configuration or data needed to onboard the machine to MDE.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of alert types.
+ * @return list of all MDE onboarding data resources.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- IotAlertTypeListInner list();
+ MdeOnboardingDataListInner list();
/**
- * List IoT alert types.
+ * The configuration or data needed to onboard the machine to MDE.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of alert types.
+ * @return list of all MDE onboarding data resources.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(Context context);
+ Response listWithResponse(Context context);
/**
- * Get IoT alert type.
+ * The default configuration or data needed to onboard the machine to MDE.
*
- * @param iotAlertTypeName Name of the alert type.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT alert type.
+ * @return the resource of the configuration or data needed to onboard the machine to MDE.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- IotAlertTypeInner get(String iotAlertTypeName);
+ MdeOnboardingDataInner get();
/**
- * Get IoT alert type.
+ * The default configuration or data needed to onboard the machine to MDE.
*
- * @param iotAlertTypeName Name of the alert type.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT alert type.
+ * @return the resource of the configuration or data needed to onboard the machine to MDE.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String iotAlertTypeName, Context context);
+ Response getWithResponse(Context context);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/OnPremiseIotSensorsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/OnPremiseIotSensorsClient.java
deleted file mode 100644
index 726cda7fbdbd..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/OnPremiseIotSensorsClient.java
+++ /dev/null
@@ -1,167 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.security.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.StreamResponse;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.OnPremiseIotSensorInner;
-import com.azure.resourcemanager.security.fluent.models.OnPremiseIotSensorsListInner;
-import com.azure.resourcemanager.security.models.ResetPasswordInput;
-import java.io.InputStream;
-
-/** An instance of this class provides access to all the operations defined in OnPremiseIotSensorsClient. */
-public interface OnPremiseIotSensorsClient {
- /**
- * List on-premise IoT sensors.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of on-premise IoT sensors.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- OnPremiseIotSensorsListInner list();
-
- /**
- * List on-premise IoT sensors.
- *
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of on-premise IoT sensors.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(Context context);
-
- /**
- * Get on-premise IoT sensor.
- *
- * @param onPremiseIotSensorName Name of the on-premise IoT sensor.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return on-premise IoT sensor.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- OnPremiseIotSensorInner get(String onPremiseIotSensorName);
-
- /**
- * Get on-premise IoT sensor.
- *
- * @param onPremiseIotSensorName Name of the on-premise IoT sensor.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return on-premise IoT sensor.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String onPremiseIotSensorName, Context context);
-
- /**
- * Create or update on-premise IoT sensor.
- *
- * @param onPremiseIotSensorName Name of the on-premise IoT sensor.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return on-premise IoT sensor.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- OnPremiseIotSensorInner createOrUpdate(String onPremiseIotSensorName);
-
- /**
- * Create or update on-premise IoT sensor.
- *
- * @param onPremiseIotSensorName Name of the on-premise IoT sensor.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return on-premise IoT sensor.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String onPremiseIotSensorName, Context context);
-
- /**
- * Delete on-premise IoT sensor.
- *
- * @param onPremiseIotSensorName Name of the on-premise IoT sensor.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String onPremiseIotSensorName);
-
- /**
- * Delete on-premise IoT sensor.
- *
- * @param onPremiseIotSensorName Name of the on-premise IoT sensor.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String onPremiseIotSensorName, Context context);
-
- /**
- * Download sensor activation file.
- *
- * @param onPremiseIotSensorName Name of the on-premise IoT sensor.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- InputStream downloadActivation(String onPremiseIotSensorName);
-
- /**
- * Download sensor activation file.
- *
- * @param onPremiseIotSensorName Name of the on-premise IoT sensor.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- StreamResponse downloadActivationWithResponse(String onPremiseIotSensorName, Context context);
-
- /**
- * Download file for reset password of the sensor.
- *
- * @param onPremiseIotSensorName Name of the on-premise IoT sensor.
- * @param body Input for reset password.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- InputStream downloadResetPassword(String onPremiseIotSensorName, ResetPasswordInput body);
-
- /**
- * Download file for reset password of the sensor.
- *
- * @param onPremiseIotSensorName Name of the on-premise IoT sensor.
- * @param body Input for reset password.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- StreamResponse downloadResetPasswordWithResponse(
- String onPremiseIotSensorName, ResetPasswordInput body, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/OperationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/OperationsClient.java
index 329a3db4ed77..6764dd2708f2 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/OperationsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/OperationsClient.java
@@ -17,7 +17,7 @@ public interface OperationsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of possible operations for Microsoft.
+ * @return list of possible operations for Microsoft.Security resource provider.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -29,7 +29,7 @@ public interface OperationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of possible operations for Microsoft.
+ * @return list of possible operations for Microsoft.Security resource provider.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityCenter.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityCenter.java
index ed8d21449d3a..0403f17dcb19 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityCenter.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityCenter.java
@@ -37,6 +37,27 @@ public interface SecurityCenter {
*/
Duration getDefaultPollInterval();
+ /**
+ * Gets the MdeOnboardingsClient object to access its operations.
+ *
+ * @return the MdeOnboardingsClient object.
+ */
+ MdeOnboardingsClient getMdeOnboardings();
+
+ /**
+ * Gets the CustomAssessmentAutomationsClient object to access its operations.
+ *
+ * @return the CustomAssessmentAutomationsClient object.
+ */
+ CustomAssessmentAutomationsClient getCustomAssessmentAutomations();
+
+ /**
+ * Gets the CustomEntityStoreAssignmentsClient object to access its operations.
+ *
+ * @return the CustomEntityStoreAssignmentsClient object.
+ */
+ CustomEntityStoreAssignmentsClient getCustomEntityStoreAssignments();
+
/**
* Gets the ComplianceResultsClient object to access its operations.
*
@@ -324,83 +345,6 @@ public interface SecurityCenter {
*/
SqlVulnerabilityAssessmentBaselineRulesClient getSqlVulnerabilityAssessmentBaselineRules();
- /**
- * Gets the IotDefenderSettingsClient object to access its operations.
- *
- * @return the IotDefenderSettingsClient object.
- */
- IotDefenderSettingsClient getIotDefenderSettings();
-
- /**
- * Gets the IotSensorsClient object to access its operations.
- *
- * @return the IotSensorsClient object.
- */
- IotSensorsClient getIotSensors();
-
- /**
- * Gets the DevicesForSubscriptionsClient object to access its operations.
- *
- * @return the DevicesForSubscriptionsClient object.
- */
- DevicesForSubscriptionsClient getDevicesForSubscriptions();
-
- /**
- * Gets the DevicesForHubsClient object to access its operations.
- *
- * @return the DevicesForHubsClient object.
- */
- DevicesForHubsClient getDevicesForHubs();
-
- /**
- * Gets the DevicesClient object to access its operations.
- *
- * @return the DevicesClient object.
- */
- DevicesClient getDevices();
-
- /**
- * Gets the OnPremiseIotSensorsClient object to access its operations.
- *
- * @return the OnPremiseIotSensorsClient object.
- */
- OnPremiseIotSensorsClient getOnPremiseIotSensors();
-
- /**
- * Gets the IotSitesClient object to access its operations.
- *
- * @return the IotSitesClient object.
- */
- IotSitesClient getIotSites();
-
- /**
- * Gets the IotAlertsClient object to access its operations.
- *
- * @return the IotAlertsClient object.
- */
- IotAlertsClient getIotAlerts();
-
- /**
- * Gets the IotAlertTypesClient object to access its operations.
- *
- * @return the IotAlertTypesClient object.
- */
- IotAlertTypesClient getIotAlertTypes();
-
- /**
- * Gets the IotRecommendationsClient object to access its operations.
- *
- * @return the IotRecommendationsClient object.
- */
- IotRecommendationsClient getIotRecommendations();
-
- /**
- * Gets the IotRecommendationTypesClient object to access its operations.
- *
- * @return the IotRecommendationTypesClient object.
- */
- IotRecommendationTypesClient getIotRecommendationTypes();
-
/**
* Gets the AlertsClient object to access its operations.
*
@@ -428,4 +372,11 @@ public interface SecurityCenter {
* @return the SoftwareInventoriesClient object.
*/
SoftwareInventoriesClient getSoftwareInventories();
+
+ /**
+ * Gets the SecurityConnectorsClient object to access its operations.
+ *
+ * @return the SecurityConnectorsClient object.
+ */
+ SecurityConnectorsClient getSecurityConnectors();
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorsClient.java
new file mode 100644
index 000000000000..4fb3b7a67b02
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorsClient.java
@@ -0,0 +1,200 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.fluent.models.SecurityConnectorInner;
+
+/** An instance of this class provides access to all the operations defined in SecurityConnectorsClient. */
+public interface SecurityConnectorsClient {
+ /**
+ * Lists all the security connectors in the specified subscription. Use the 'nextLink' property in the response to
+ * get the next page of security connectors for the specified subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of security connectors response.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all the security connectors in the specified subscription. Use the 'nextLink' property in the response to
+ * get the next page of security connectors for the specified subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of security connectors response.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Lists all the security connectors in the specified resource group. Use the 'nextLink' property in the response to
+ * get the next page of security connectors for the specified resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of security connectors response.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists all the security connectors in the specified resource group. Use the 'nextLink' property in the response to
+ * get the next page of security connectors for the specified resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of security connectors response.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Retrieves details of a specific security connector.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param securityConnectorName The security connector name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the security connector resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SecurityConnectorInner getByResourceGroup(String resourceGroupName, String securityConnectorName);
+
+ /**
+ * Retrieves details of a specific security connector.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param securityConnectorName The security connector name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the security connector resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String securityConnectorName, Context context);
+
+ /**
+ * Creates or updates a security connector. If a security connector is already created and a subsequent request is
+ * issued for the same security connector id, then it will be updated.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param securityConnectorName The security connector name.
+ * @param securityConnector The security connector resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the security connector resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SecurityConnectorInner createOrUpdate(
+ String resourceGroupName, String securityConnectorName, SecurityConnectorInner securityConnector);
+
+ /**
+ * Creates or updates a security connector. If a security connector is already created and a subsequent request is
+ * issued for the same security connector id, then it will be updated.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param securityConnectorName The security connector name.
+ * @param securityConnector The security connector resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the security connector resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String securityConnectorName,
+ SecurityConnectorInner securityConnector,
+ Context context);
+
+ /**
+ * Updates a security connector.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param securityConnectorName The security connector name.
+ * @param securityConnector The security connector resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the security connector resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SecurityConnectorInner update(
+ String resourceGroupName, String securityConnectorName, SecurityConnectorInner securityConnector);
+
+ /**
+ * Updates a security connector.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param securityConnectorName The security connector name.
+ * @param securityConnector The security connector resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the security connector resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String securityConnectorName,
+ SecurityConnectorInner securityConnector,
+ Context context);
+
+ /**
+ * Deletes a security connector.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param securityConnectorName The security connector name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String securityConnectorName);
+
+ /**
+ * Deletes a security connector.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param securityConnectorName The security connector name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String securityConnectorName, Context context);
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ServerVulnerabilityAssessmentsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ServerVulnerabilityAssessmentsClient.java
index 6725b6c2d2b1..1264c94b400e 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ServerVulnerabilityAssessmentsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ServerVulnerabilityAssessmentsClient.java
@@ -135,7 +135,7 @@ Response createOrUpdateWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String resourceNamespace, String resourceType, String resourceName);
@@ -153,7 +153,7 @@ SyncPoller, Void> beginDelete(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context);
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveApplicationControlGroupData.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveApplicationControlGroupData.java
new file mode 100644
index 000000000000..5c635b7a8063
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveApplicationControlGroupData.java
@@ -0,0 +1,215 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.security.models.AdaptiveApplicationControlIssueSummary;
+import com.azure.resourcemanager.security.models.ConfigurationStatus;
+import com.azure.resourcemanager.security.models.EnforcementMode;
+import com.azure.resourcemanager.security.models.PathRecommendation;
+import com.azure.resourcemanager.security.models.ProtectionMode;
+import com.azure.resourcemanager.security.models.RecommendationStatus;
+import com.azure.resourcemanager.security.models.SourceSystem;
+import com.azure.resourcemanager.security.models.VmRecommendation;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Represents a machines group and set of rules to be allowed running on a machine. */
+@Fluent
+public final class AdaptiveApplicationControlGroupData {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(AdaptiveApplicationControlGroupData.class);
+
+ /*
+ * The application control policy enforcement/protection mode of the
+ * machine group
+ */
+ @JsonProperty(value = "enforcementMode")
+ private EnforcementMode enforcementMode;
+
+ /*
+ * The protection mode of the collection/file types. Exe/Msi/Script are
+ * used for Windows, Executable is used for Linux.
+ */
+ @JsonProperty(value = "protectionMode")
+ private ProtectionMode protectionMode;
+
+ /*
+ * The configuration status of the machines group or machine or rule
+ */
+ @JsonProperty(value = "configurationStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private ConfigurationStatus configurationStatus;
+
+ /*
+ * The initial recommendation status of the machine group or machine
+ */
+ @JsonProperty(value = "recommendationStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private RecommendationStatus recommendationStatus;
+
+ /*
+ * The issues property.
+ */
+ @JsonProperty(value = "issues", access = JsonProperty.Access.WRITE_ONLY)
+ private List issues;
+
+ /*
+ * The source type of the machine group
+ */
+ @JsonProperty(value = "sourceSystem", access = JsonProperty.Access.WRITE_ONLY)
+ private SourceSystem sourceSystem;
+
+ /*
+ * The vmRecommendations property.
+ */
+ @JsonProperty(value = "vmRecommendations")
+ private List vmRecommendations;
+
+ /*
+ * The pathRecommendations property.
+ */
+ @JsonProperty(value = "pathRecommendations")
+ private List pathRecommendations;
+
+ /**
+ * Get the enforcementMode property: The application control policy enforcement/protection mode of the machine
+ * group.
+ *
+ * @return the enforcementMode value.
+ */
+ public EnforcementMode enforcementMode() {
+ return this.enforcementMode;
+ }
+
+ /**
+ * Set the enforcementMode property: The application control policy enforcement/protection mode of the machine
+ * group.
+ *
+ * @param enforcementMode the enforcementMode value to set.
+ * @return the AdaptiveApplicationControlGroupData object itself.
+ */
+ public AdaptiveApplicationControlGroupData withEnforcementMode(EnforcementMode enforcementMode) {
+ this.enforcementMode = enforcementMode;
+ return this;
+ }
+
+ /**
+ * Get the protectionMode property: The protection mode of the collection/file types. Exe/Msi/Script are used for
+ * Windows, Executable is used for Linux.
+ *
+ * @return the protectionMode value.
+ */
+ public ProtectionMode protectionMode() {
+ return this.protectionMode;
+ }
+
+ /**
+ * Set the protectionMode property: The protection mode of the collection/file types. Exe/Msi/Script are used for
+ * Windows, Executable is used for Linux.
+ *
+ * @param protectionMode the protectionMode value to set.
+ * @return the AdaptiveApplicationControlGroupData object itself.
+ */
+ public AdaptiveApplicationControlGroupData withProtectionMode(ProtectionMode protectionMode) {
+ this.protectionMode = protectionMode;
+ return this;
+ }
+
+ /**
+ * Get the configurationStatus property: The configuration status of the machines group or machine or rule.
+ *
+ * @return the configurationStatus value.
+ */
+ public ConfigurationStatus configurationStatus() {
+ return this.configurationStatus;
+ }
+
+ /**
+ * Get the recommendationStatus property: The initial recommendation status of the machine group or machine.
+ *
+ * @return the recommendationStatus value.
+ */
+ public RecommendationStatus recommendationStatus() {
+ return this.recommendationStatus;
+ }
+
+ /**
+ * Get the issues property: The issues property.
+ *
+ * @return the issues value.
+ */
+ public List issues() {
+ return this.issues;
+ }
+
+ /**
+ * Get the sourceSystem property: The source type of the machine group.
+ *
+ * @return the sourceSystem value.
+ */
+ public SourceSystem sourceSystem() {
+ return this.sourceSystem;
+ }
+
+ /**
+ * Get the vmRecommendations property: The vmRecommendations property.
+ *
+ * @return the vmRecommendations value.
+ */
+ public List vmRecommendations() {
+ return this.vmRecommendations;
+ }
+
+ /**
+ * Set the vmRecommendations property: The vmRecommendations property.
+ *
+ * @param vmRecommendations the vmRecommendations value to set.
+ * @return the AdaptiveApplicationControlGroupData object itself.
+ */
+ public AdaptiveApplicationControlGroupData withVmRecommendations(List vmRecommendations) {
+ this.vmRecommendations = vmRecommendations;
+ return this;
+ }
+
+ /**
+ * Get the pathRecommendations property: The pathRecommendations property.
+ *
+ * @return the pathRecommendations value.
+ */
+ public List pathRecommendations() {
+ return this.pathRecommendations;
+ }
+
+ /**
+ * Set the pathRecommendations property: The pathRecommendations property.
+ *
+ * @param pathRecommendations the pathRecommendations value to set.
+ * @return the AdaptiveApplicationControlGroupData object itself.
+ */
+ public AdaptiveApplicationControlGroupData withPathRecommendations(List pathRecommendations) {
+ this.pathRecommendations = pathRecommendations;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (protectionMode() != null) {
+ protectionMode().validate();
+ }
+ if (issues() != null) {
+ issues().forEach(e -> e.validate());
+ }
+ if (vmRecommendations() != null) {
+ vmRecommendations().forEach(e -> e.validate());
+ }
+ if (pathRecommendations() != null) {
+ pathRecommendations().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveApplicationControlGroupInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveApplicationControlGroupInner.java
index 63eb3290cc2e..75d8599ebb21 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveApplicationControlGroupInner.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveApplicationControlGroupInner.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.security.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.security.models.AdaptiveApplicationControlIssueSummary;
@@ -21,66 +20,41 @@
import java.util.List;
/** The AdaptiveApplicationControlGroup model. */
-@JsonFlatten
@Fluent
-public class AdaptiveApplicationControlGroupInner extends ProxyResource {
+public final class AdaptiveApplicationControlGroupInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(AdaptiveApplicationControlGroupInner.class);
/*
- * The application control policy enforcement/protection mode of the
- * machine group
+ * Represents a machines group and set of rules to be allowed running on a
+ * machine
*/
- @JsonProperty(value = "properties.enforcementMode")
- private EnforcementMode enforcementMode;
+ @JsonProperty(value = "properties", required = true)
+ private AdaptiveApplicationControlGroupData innerProperties = new AdaptiveApplicationControlGroupData();
/*
- * The protection mode of the collection/file types. Exe/Msi/Script are
- * used for Windows, Executable is used for Linux.
- */
- @JsonProperty(value = "properties.protectionMode")
- private ProtectionMode protectionMode;
-
- /*
- * The configuration status of the machines group or machine or rule
- */
- @JsonProperty(value = "properties.configurationStatus", access = JsonProperty.Access.WRITE_ONLY)
- private ConfigurationStatus configurationStatus;
-
- /*
- * The initial recommendation status of the machine group or machine
- */
- @JsonProperty(value = "properties.recommendationStatus", access = JsonProperty.Access.WRITE_ONLY)
- private RecommendationStatus recommendationStatus;
-
- /*
- * The issues property.
- */
- @JsonProperty(value = "properties.issues", access = JsonProperty.Access.WRITE_ONLY)
- private List issues;
-
- /*
- * The source type of the machine group
- */
- @JsonProperty(value = "properties.sourceSystem", access = JsonProperty.Access.WRITE_ONLY)
- private SourceSystem sourceSystem;
-
- /*
- * The vmRecommendations property.
+ * Location where the resource is stored
*/
- @JsonProperty(value = "properties.vmRecommendations")
- private List vmRecommendations;
+ @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
+ private String location;
- /*
- * The pathRecommendations property.
+ /**
+ * Get the innerProperties property: Represents a machines group and set of rules to be allowed running on a
+ * machine.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.pathRecommendations")
- private List pathRecommendations;
+ private AdaptiveApplicationControlGroupData innerProperties() {
+ return this.innerProperties;
+ }
- /*
- * Location where the resource is stored
+ /**
+ * Get the location property: Location where the resource is stored.
+ *
+ * @return the location value.
*/
- @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
- private String location;
+ public String location() {
+ return this.location;
+ }
/**
* Get the enforcementMode property: The application control policy enforcement/protection mode of the machine
@@ -89,7 +63,7 @@ public class AdaptiveApplicationControlGroupInner extends ProxyResource {
* @return the enforcementMode value.
*/
public EnforcementMode enforcementMode() {
- return this.enforcementMode;
+ return this.innerProperties() == null ? null : this.innerProperties().enforcementMode();
}
/**
@@ -100,7 +74,10 @@ public EnforcementMode enforcementMode() {
* @return the AdaptiveApplicationControlGroupInner object itself.
*/
public AdaptiveApplicationControlGroupInner withEnforcementMode(EnforcementMode enforcementMode) {
- this.enforcementMode = enforcementMode;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AdaptiveApplicationControlGroupData();
+ }
+ this.innerProperties().withEnforcementMode(enforcementMode);
return this;
}
@@ -111,7 +88,7 @@ public AdaptiveApplicationControlGroupInner withEnforcementMode(EnforcementMode
* @return the protectionMode value.
*/
public ProtectionMode protectionMode() {
- return this.protectionMode;
+ return this.innerProperties() == null ? null : this.innerProperties().protectionMode();
}
/**
@@ -122,7 +99,10 @@ public ProtectionMode protectionMode() {
* @return the AdaptiveApplicationControlGroupInner object itself.
*/
public AdaptiveApplicationControlGroupInner withProtectionMode(ProtectionMode protectionMode) {
- this.protectionMode = protectionMode;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AdaptiveApplicationControlGroupData();
+ }
+ this.innerProperties().withProtectionMode(protectionMode);
return this;
}
@@ -132,7 +112,7 @@ public AdaptiveApplicationControlGroupInner withProtectionMode(ProtectionMode pr
* @return the configurationStatus value.
*/
public ConfigurationStatus configurationStatus() {
- return this.configurationStatus;
+ return this.innerProperties() == null ? null : this.innerProperties().configurationStatus();
}
/**
@@ -141,7 +121,7 @@ public ConfigurationStatus configurationStatus() {
* @return the recommendationStatus value.
*/
public RecommendationStatus recommendationStatus() {
- return this.recommendationStatus;
+ return this.innerProperties() == null ? null : this.innerProperties().recommendationStatus();
}
/**
@@ -150,7 +130,7 @@ public RecommendationStatus recommendationStatus() {
* @return the issues value.
*/
public List issues() {
- return this.issues;
+ return this.innerProperties() == null ? null : this.innerProperties().issues();
}
/**
@@ -159,7 +139,7 @@ public List issues() {
* @return the sourceSystem value.
*/
public SourceSystem sourceSystem() {
- return this.sourceSystem;
+ return this.innerProperties() == null ? null : this.innerProperties().sourceSystem();
}
/**
@@ -168,7 +148,7 @@ public SourceSystem sourceSystem() {
* @return the vmRecommendations value.
*/
public List vmRecommendations() {
- return this.vmRecommendations;
+ return this.innerProperties() == null ? null : this.innerProperties().vmRecommendations();
}
/**
@@ -178,7 +158,10 @@ public List vmRecommendations() {
* @return the AdaptiveApplicationControlGroupInner object itself.
*/
public AdaptiveApplicationControlGroupInner withVmRecommendations(List vmRecommendations) {
- this.vmRecommendations = vmRecommendations;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AdaptiveApplicationControlGroupData();
+ }
+ this.innerProperties().withVmRecommendations(vmRecommendations);
return this;
}
@@ -188,7 +171,7 @@ public AdaptiveApplicationControlGroupInner withVmRecommendations(List pathRecommendations() {
- return this.pathRecommendations;
+ return this.innerProperties() == null ? null : this.innerProperties().pathRecommendations();
}
/**
@@ -198,36 +181,26 @@ public List pathRecommendations() {
* @return the AdaptiveApplicationControlGroupInner object itself.
*/
public AdaptiveApplicationControlGroupInner withPathRecommendations(List pathRecommendations) {
- this.pathRecommendations = pathRecommendations;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AdaptiveApplicationControlGroupData();
+ }
+ this.innerProperties().withPathRecommendations(pathRecommendations);
return this;
}
- /**
- * Get the location property: Location where the resource is stored.
- *
- * @return the location value.
- */
- public String location() {
- return this.location;
- }
-
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (protectionMode() != null) {
- protectionMode().validate();
- }
- if (issues() != null) {
- issues().forEach(e -> e.validate());
- }
- if (vmRecommendations() != null) {
- vmRecommendations().forEach(e -> e.validate());
- }
- if (pathRecommendations() != null) {
- pathRecommendations().forEach(e -> e.validate());
+ if (innerProperties() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property innerProperties in model AdaptiveApplicationControlGroupInner"));
+ } else {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveNetworkHardeningInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveNetworkHardeningInner.java
index a8762ab58028..6ec61cca0aeb 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveNetworkHardeningInner.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveNetworkHardeningInner.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.security.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.security.models.EffectiveNetworkSecurityGroups;
@@ -16,29 +15,24 @@
import java.util.List;
/** The resource whose properties describes the Adaptive Network Hardening settings for some Azure resource. */
-@JsonFlatten
@Fluent
-public class AdaptiveNetworkHardeningInner extends ProxyResource {
+public final class AdaptiveNetworkHardeningInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(AdaptiveNetworkHardeningInner.class);
/*
- * The security rules which are recommended to be effective on the VM
+ * Properties of the Adaptive Network Hardening resource
*/
- @JsonProperty(value = "properties.rules")
- private List rules;
+ @JsonProperty(value = "properties")
+ private AdaptiveNetworkHardeningProperties innerProperties;
- /*
- * The UTC time on which the rules were calculated
- */
- @JsonProperty(value = "properties.rulesCalculationTime")
- private OffsetDateTime rulesCalculationTime;
-
- /*
- * The Network Security Groups effective on the network interfaces of the
- * protected resource
+ /**
+ * Get the innerProperties property: Properties of the Adaptive Network Hardening resource.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.effectiveNetworkSecurityGroups")
- private List effectiveNetworkSecurityGroups;
+ private AdaptiveNetworkHardeningProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the rules property: The security rules which are recommended to be effective on the VM.
@@ -46,7 +40,7 @@ public class AdaptiveNetworkHardeningInner extends ProxyResource {
* @return the rules value.
*/
public List rules() {
- return this.rules;
+ return this.innerProperties() == null ? null : this.innerProperties().rules();
}
/**
@@ -56,7 +50,10 @@ public List rules() {
* @return the AdaptiveNetworkHardeningInner object itself.
*/
public AdaptiveNetworkHardeningInner withRules(List rules) {
- this.rules = rules;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AdaptiveNetworkHardeningProperties();
+ }
+ this.innerProperties().withRules(rules);
return this;
}
@@ -66,7 +63,7 @@ public AdaptiveNetworkHardeningInner withRules(List rules) {
* @return the rulesCalculationTime value.
*/
public OffsetDateTime rulesCalculationTime() {
- return this.rulesCalculationTime;
+ return this.innerProperties() == null ? null : this.innerProperties().rulesCalculationTime();
}
/**
@@ -76,7 +73,10 @@ public OffsetDateTime rulesCalculationTime() {
* @return the AdaptiveNetworkHardeningInner object itself.
*/
public AdaptiveNetworkHardeningInner withRulesCalculationTime(OffsetDateTime rulesCalculationTime) {
- this.rulesCalculationTime = rulesCalculationTime;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AdaptiveNetworkHardeningProperties();
+ }
+ this.innerProperties().withRulesCalculationTime(rulesCalculationTime);
return this;
}
@@ -87,7 +87,7 @@ public AdaptiveNetworkHardeningInner withRulesCalculationTime(OffsetDateTime rul
* @return the effectiveNetworkSecurityGroups value.
*/
public List effectiveNetworkSecurityGroups() {
- return this.effectiveNetworkSecurityGroups;
+ return this.innerProperties() == null ? null : this.innerProperties().effectiveNetworkSecurityGroups();
}
/**
@@ -99,7 +99,10 @@ public List effectiveNetworkSecurityGroups() {
*/
public AdaptiveNetworkHardeningInner withEffectiveNetworkSecurityGroups(
List effectiveNetworkSecurityGroups) {
- this.effectiveNetworkSecurityGroups = effectiveNetworkSecurityGroups;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AdaptiveNetworkHardeningProperties();
+ }
+ this.innerProperties().withEffectiveNetworkSecurityGroups(effectiveNetworkSecurityGroups);
return this;
}
@@ -109,11 +112,8 @@ public AdaptiveNetworkHardeningInner withEffectiveNetworkSecurityGroups(
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (rules() != null) {
- rules().forEach(e -> e.validate());
- }
- if (effectiveNetworkSecurityGroups() != null) {
- effectiveNetworkSecurityGroups().forEach(e -> e.validate());
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveNetworkHardeningProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveNetworkHardeningProperties.java
new file mode 100644
index 000000000000..66c28da722f3
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveNetworkHardeningProperties.java
@@ -0,0 +1,116 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.security.models.EffectiveNetworkSecurityGroups;
+import com.azure.resourcemanager.security.models.Rule;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** Adaptive Network Hardening resource properties. */
+@Fluent
+public final class AdaptiveNetworkHardeningProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(AdaptiveNetworkHardeningProperties.class);
+
+ /*
+ * The security rules which are recommended to be effective on the VM
+ */
+ @JsonProperty(value = "rules")
+ private List rules;
+
+ /*
+ * The UTC time on which the rules were calculated
+ */
+ @JsonProperty(value = "rulesCalculationTime")
+ private OffsetDateTime rulesCalculationTime;
+
+ /*
+ * The Network Security Groups effective on the network interfaces of the
+ * protected resource
+ */
+ @JsonProperty(value = "effectiveNetworkSecurityGroups")
+ private List effectiveNetworkSecurityGroups;
+
+ /**
+ * Get the rules property: The security rules which are recommended to be effective on the VM.
+ *
+ * @return the rules value.
+ */
+ public List rules() {
+ return this.rules;
+ }
+
+ /**
+ * Set the rules property: The security rules which are recommended to be effective on the VM.
+ *
+ * @param rules the rules value to set.
+ * @return the AdaptiveNetworkHardeningProperties object itself.
+ */
+ public AdaptiveNetworkHardeningProperties withRules(List rules) {
+ this.rules = rules;
+ return this;
+ }
+
+ /**
+ * Get the rulesCalculationTime property: The UTC time on which the rules were calculated.
+ *
+ * @return the rulesCalculationTime value.
+ */
+ public OffsetDateTime rulesCalculationTime() {
+ return this.rulesCalculationTime;
+ }
+
+ /**
+ * Set the rulesCalculationTime property: The UTC time on which the rules were calculated.
+ *
+ * @param rulesCalculationTime the rulesCalculationTime value to set.
+ * @return the AdaptiveNetworkHardeningProperties object itself.
+ */
+ public AdaptiveNetworkHardeningProperties withRulesCalculationTime(OffsetDateTime rulesCalculationTime) {
+ this.rulesCalculationTime = rulesCalculationTime;
+ return this;
+ }
+
+ /**
+ * Get the effectiveNetworkSecurityGroups property: The Network Security Groups effective on the network interfaces
+ * of the protected resource.
+ *
+ * @return the effectiveNetworkSecurityGroups value.
+ */
+ public List effectiveNetworkSecurityGroups() {
+ return this.effectiveNetworkSecurityGroups;
+ }
+
+ /**
+ * Set the effectiveNetworkSecurityGroups property: The Network Security Groups effective on the network interfaces
+ * of the protected resource.
+ *
+ * @param effectiveNetworkSecurityGroups the effectiveNetworkSecurityGroups value to set.
+ * @return the AdaptiveNetworkHardeningProperties object itself.
+ */
+ public AdaptiveNetworkHardeningProperties withEffectiveNetworkSecurityGroups(
+ List effectiveNetworkSecurityGroups) {
+ this.effectiveNetworkSecurityGroups = effectiveNetworkSecurityGroups;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (rules() != null) {
+ rules().forEach(e -> e.validate());
+ }
+ if (effectiveNetworkSecurityGroups() != null) {
+ effectiveNetworkSecurityGroups().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdvancedThreatProtectionProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdvancedThreatProtectionProperties.java
new file mode 100644
index 000000000000..d98045af1ca1
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdvancedThreatProtectionProperties.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The Advanced Threat Protection settings. */
+@Fluent
+public final class AdvancedThreatProtectionProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(AdvancedThreatProtectionProperties.class);
+
+ /*
+ * Indicates whether Advanced Threat Protection is enabled.
+ */
+ @JsonProperty(value = "isEnabled")
+ private Boolean isEnabled;
+
+ /**
+ * Get the isEnabled property: Indicates whether Advanced Threat Protection is enabled.
+ *
+ * @return the isEnabled value.
+ */
+ public Boolean isEnabled() {
+ return this.isEnabled;
+ }
+
+ /**
+ * Set the isEnabled property: Indicates whether Advanced Threat Protection is enabled.
+ *
+ * @param isEnabled the isEnabled value to set.
+ * @return the AdvancedThreatProtectionProperties object itself.
+ */
+ public AdvancedThreatProtectionProperties withIsEnabled(Boolean isEnabled) {
+ this.isEnabled = isEnabled;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdvancedThreatProtectionSettingInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdvancedThreatProtectionSettingInner.java
index c632466c79a0..23576567daaf 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdvancedThreatProtectionSettingInner.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdvancedThreatProtectionSettingInner.java
@@ -5,23 +5,30 @@
package com.azure.resourcemanager.security.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The Advanced Threat Protection resource. */
-@JsonFlatten
@Fluent
-public class AdvancedThreatProtectionSettingInner extends ProxyResource {
+public final class AdvancedThreatProtectionSettingInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(AdvancedThreatProtectionSettingInner.class);
/*
- * Indicates whether Advanced Threat Protection is enabled.
+ * The Advanced Threat Protection settings.
*/
- @JsonProperty(value = "properties.isEnabled")
- private Boolean isEnabled;
+ @JsonProperty(value = "properties")
+ private AdvancedThreatProtectionProperties innerProperties;
+
+ /**
+ * Get the innerProperties property: The Advanced Threat Protection settings.
+ *
+ * @return the innerProperties value.
+ */
+ private AdvancedThreatProtectionProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the isEnabled property: Indicates whether Advanced Threat Protection is enabled.
@@ -29,7 +36,7 @@ public class AdvancedThreatProtectionSettingInner extends ProxyResource {
* @return the isEnabled value.
*/
public Boolean isEnabled() {
- return this.isEnabled;
+ return this.innerProperties() == null ? null : this.innerProperties().isEnabled();
}
/**
@@ -39,7 +46,10 @@ public Boolean isEnabled() {
* @return the AdvancedThreatProtectionSettingInner object itself.
*/
public AdvancedThreatProtectionSettingInner withIsEnabled(Boolean isEnabled) {
- this.isEnabled = isEnabled;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AdvancedThreatProtectionProperties();
+ }
+ this.innerProperties().withIsEnabled(isEnabled);
return this;
}
@@ -49,5 +59,8 @@ public AdvancedThreatProtectionSettingInner withIsEnabled(Boolean isEnabled) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertInner.java
index ad7e64021e14..d9af0e4cf0b9 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertInner.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertInner.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.security.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.security.models.AlertEntity;
@@ -20,161 +19,24 @@
import java.util.Map;
/** Security alert. */
-@JsonFlatten
@Fluent
-public class AlertInner extends ProxyResource {
+public final class AlertInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(AlertInner.class);
/*
- * Unique identifier for the detection logic (all alert instances from the
- * same detection logic will have the same alertType).
+ * describes security alert properties.
*/
- @JsonProperty(value = "properties.alertType", access = JsonProperty.Access.WRITE_ONLY)
- private String alertType;
+ @JsonProperty(value = "properties")
+ private AlertProperties innerProperties;
- /*
- * Unique identifier for the alert.
- */
- @JsonProperty(value = "properties.systemAlertId", access = JsonProperty.Access.WRITE_ONLY)
- private String systemAlertId;
-
- /*
- * The name of Azure Security Center pricing tier which powering this
- * alert. Learn more:
- * https://docs.microsoft.com/en-us/azure/security-center/security-center-pricing
- */
- @JsonProperty(value = "properties.productComponentName", access = JsonProperty.Access.WRITE_ONLY)
- private String productComponentName;
-
- /*
- * The display name of the alert.
- */
- @JsonProperty(value = "properties.alertDisplayName", access = JsonProperty.Access.WRITE_ONLY)
- private String alertDisplayName;
-
- /*
- * Description of the suspicious activity that was detected.
- */
- @JsonProperty(value = "properties.description", access = JsonProperty.Access.WRITE_ONLY)
- private String description;
-
- /*
- * The risk level of the threat that was detected. Learn more:
- * https://docs.microsoft.com/en-us/azure/security-center/security-center-alerts-overview#how-are-alerts-classified.
- */
- @JsonProperty(value = "properties.severity", access = JsonProperty.Access.WRITE_ONLY)
- private AlertSeverity severity;
-
- /*
- * The kill chain related intent behind the alert. For list of supported
- * values, and explanations of Azure Security Center's supported kill chain
- * intents.
- */
- @JsonProperty(value = "properties.intent", access = JsonProperty.Access.WRITE_ONLY)
- private Intent intent;
-
- /*
- * The UTC time of the first event or activity included in the alert in
- * ISO8601 format.
- */
- @JsonProperty(value = "properties.startTimeUtc", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime startTimeUtc;
-
- /*
- * The UTC time of the last event or activity included in the alert in
- * ISO8601 format.
- */
- @JsonProperty(value = "properties.endTimeUtc", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime endTimeUtc;
-
- /*
- * The resource identifiers that can be used to direct the alert to the
- * right product exposure group (tenant, workspace, subscription etc.).
- * There can be multiple identifiers of different type per alert.
- */
- @JsonProperty(value = "properties.resourceIdentifiers", access = JsonProperty.Access.WRITE_ONLY)
- private List resourceIdentifiers;
-
- /*
- * Manual action items to take to remediate the alert.
- */
- @JsonProperty(value = "properties.remediationSteps", access = JsonProperty.Access.WRITE_ONLY)
- private List remediationSteps;
-
- /*
- * The name of the vendor that raises the alert.
- */
- @JsonProperty(value = "properties.vendorName", access = JsonProperty.Access.WRITE_ONLY)
- private String vendorName;
-
- /*
- * The life cycle status of the alert.
- */
- @JsonProperty(value = "properties.status", access = JsonProperty.Access.WRITE_ONLY)
- private AlertStatus status;
-
- /*
- * Links related to the alert
- */
- @JsonProperty(value = "properties.extendedLinks", access = JsonProperty.Access.WRITE_ONLY)
- private List