diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 06dd9ec9b2409..67d98326555ef 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -379,7 +379,7 @@ com.azure.resourcemanager:azure-resourcemanager-deviceprovisioningservices;1.0.0
com.azure.resourcemanager:azure-resourcemanager-postgresqlflexibleserver;1.0.0;1.1.0-beta.5
com.azure.resourcemanager:azure-resourcemanager-elastic;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-webpubsub;1.1.0;1.2.0-beta.1
-com.azure.resourcemanager:azure-resourcemanager-security;1.0.0-beta.8;1.0.0-beta.9
+com.azure.resourcemanager:azure-resourcemanager-security;1.0.0-beta.8;1.0.0
com.azure.resourcemanager:azure-resourcemanager-azurearcdata;1.0.0-beta.4;1.0.0-beta.5
com.azure.resourcemanager:azure-resourcemanager-hybridnetwork;1.1.0;1.2.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-purview;1.0.0-beta.3;1.0.0-beta.4
diff --git a/sdk/security/azure-resourcemanager-security/CHANGELOG.md b/sdk/security/azure-resourcemanager-security/CHANGELOG.md
index 2ab20534e6823..780c12c7f7188 100644
--- a/sdk/security/azure-resourcemanager-security/CHANGELOG.md
+++ b/sdk/security/azure-resourcemanager-security/CHANGELOG.md
@@ -1,15 +1,13 @@
# Release History
-## 1.0.0-beta.9 (Unreleased)
+## 1.0.0 (2024-12-26)
-### Features Added
-
-### Breaking Changes
-
-### Bugs Fixed
+- 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).
### Other Changes
+- Release for Azure Resource Manager Security client library for Java.
+
## 1.0.0-beta.8 (2024-12-23)
- 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).
diff --git a/sdk/security/azure-resourcemanager-security/README.md b/sdk/security/azure-resourcemanager-security/README.md
index 837645e4ec5d5..a768255a18d07 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.resourcemanagerazure-resourcemanager-security
- 1.0.0-beta.8
+ 1.0.0
```
[//]: # ({x-version-update-end})
diff --git a/sdk/security/azure-resourcemanager-security/SAMPLE.md b/sdk/security/azure-resourcemanager-security/SAMPLE.md
index e095850a82126..a0765d25ba822 100644
--- a/sdk/security/azure-resourcemanager-security/SAMPLE.md
+++ b/sdk/security/azure-resourcemanager-security/SAMPLE.md
@@ -24,13 +24,6 @@
- [UpdateSubscriptionLevelStateToInProgress](#alerts_updatesubscriptionlevelstatetoinprogress)
- [UpdateSubscriptionLevelStateToResolve](#alerts_updatesubscriptionlevelstatetoresolve)
-## AlertsSuppressionRules
-
-- [Delete](#alertssuppressionrules_delete)
-- [Get](#alertssuppressionrules_get)
-- [List](#alertssuppressionrules_list)
-- [Update](#alertssuppressionrules_update)
-
## AllowedConnections
- [Get](#allowedconnections_get)
@@ -46,16 +39,6 @@
- [OffboardAzureApiManagementApi](#apicollections_offboardazureapimanagementapi)
- [OnboardAzureApiManagementApi](#apicollections_onboardazureapimanagementapi)
-## ApplicationOperation
-
-- [CreateOrUpdate](#applicationoperation_createorupdate)
-- [Delete](#applicationoperation_delete)
-- [Get](#applicationoperation_get)
-
-## Applications
-
-- [List](#applications_list)
-
## Assessments
- [CreateOrUpdate](#assessments_createorupdate)
@@ -72,77 +55,11 @@
- [List](#assessmentsmetadata_list)
- [ListBySubscription](#assessmentsmetadata_listbysubscription)
-## AutoProvisioningSettings
-
-- [Create](#autoprovisioningsettings_create)
-- [Get](#autoprovisioningsettings_get)
-- [List](#autoprovisioningsettings_list)
-
-## Automations
-
-- [CreateOrUpdate](#automations_createorupdate)
-- [Delete](#automations_delete)
-- [GetByResourceGroup](#automations_getbyresourcegroup)
-- [List](#automations_list)
-- [ListByResourceGroup](#automations_listbyresourcegroup)
-- [Update](#automations_update)
-- [Validate](#automations_validate)
-
-## AzureDevOpsOrgs
-
-- [CreateOrUpdate](#azuredevopsorgs_createorupdate)
-- [Get](#azuredevopsorgs_get)
-- [List](#azuredevopsorgs_list)
-- [ListAvailable](#azuredevopsorgs_listavailable)
-- [Update](#azuredevopsorgs_update)
-
-## AzureDevOpsProjects
-
-- [CreateOrUpdate](#azuredevopsprojects_createorupdate)
-- [Get](#azuredevopsprojects_get)
-- [List](#azuredevopsprojects_list)
-- [Update](#azuredevopsprojects_update)
-
-## AzureDevOpsRepos
-
-- [CreateOrUpdate](#azuredevopsrepos_createorupdate)
-- [Get](#azuredevopsrepos_get)
-- [List](#azuredevopsrepos_list)
-- [Update](#azuredevopsrepos_update)
-
## ComplianceResults
- [Get](#complianceresults_get)
- [List](#complianceresults_list)
-## Compliances
-
-- [Get](#compliances_get)
-- [List](#compliances_list)
-
-## Connectors
-
-- [CreateOrUpdate](#connectors_createorupdate)
-- [Delete](#connectors_delete)
-- [Get](#connectors_get)
-- [List](#connectors_list)
-
-## CustomAssessmentAutomations
-
-- [Create](#customassessmentautomations_create)
-- [Delete](#customassessmentautomations_delete)
-- [GetByResourceGroup](#customassessmentautomations_getbyresourcegroup)
-- [List](#customassessmentautomations_list)
-- [ListByResourceGroup](#customassessmentautomations_listbyresourcegroup)
-
-## CustomEntityStoreAssignments
-
-- [Create](#customentitystoreassignments_create)
-- [Delete](#customentitystoreassignments_delete)
-- [GetByResourceGroup](#customentitystoreassignments_getbyresourcegroup)
-- [List](#customentitystoreassignments_list)
-- [ListByResourceGroup](#customentitystoreassignments_listbyresourcegroup)
-
## CustomRecommendations
- [CreateOrUpdate](#customrecommendations_createorupdate)
@@ -150,39 +67,6 @@
- [Get](#customrecommendations_get)
- [List](#customrecommendations_list)
-## DefenderForStorage
-
-- [CancelMalwareScan](#defenderforstorage_cancelmalwarescan)
-- [Create](#defenderforstorage_create)
-- [Get](#defenderforstorage_get)
-- [GetMalwareScan](#defenderforstorage_getmalwarescan)
-- [StartMalwareScan](#defenderforstorage_startmalwarescan)
-
-## DevOpsConfigurations
-
-- [CreateOrUpdate](#devopsconfigurations_createorupdate)
-- [Delete](#devopsconfigurations_delete)
-- [Get](#devopsconfigurations_get)
-- [List](#devopsconfigurations_list)
-- [Update](#devopsconfigurations_update)
-
-## DevOpsOperationResults
-
-- [Get](#devopsoperationresults_get)
-
-## DevOpsPolicies
-
-- [Get](#devopspolicies_get)
-- [List](#devopspolicies_list)
-
-## DevOpsPolicyAssignments
-
-- [CreateOrUpdate](#devopspolicyassignments_createorupdate)
-- [Delete](#devopspolicyassignments_delete)
-- [Get](#devopspolicyassignments_get)
-- [List](#devopspolicyassignments_list)
-- [Update](#devopspolicyassignments_update)
-
## DeviceSecurityGroups
- [CreateOrUpdate](#devicesecuritygroups_createorupdate)
@@ -202,59 +86,6 @@
- [List](#externalsecuritysolutions_list)
- [ListByHomeRegion](#externalsecuritysolutions_listbyhomeregion)
-## GitHubOwners
-
-- [Get](#githubowners_get)
-- [List](#githubowners_list)
-- [ListAvailable](#githubowners_listavailable)
-
-## GitHubRepos
-
-- [Get](#githubrepos_get)
-- [List](#githubrepos_list)
-
-## GitLabGroups
-
-- [Get](#gitlabgroups_get)
-- [List](#gitlabgroups_list)
-- [ListAvailable](#gitlabgroups_listavailable)
-
-## GitLabProjects
-
-- [Get](#gitlabprojects_get)
-- [List](#gitlabprojects_list)
-
-## GitLabSubgroups
-
-- [List](#gitlabsubgroups_list)
-
-## GovernanceAssignments
-
-- [CreateOrUpdate](#governanceassignments_createorupdate)
-- [Delete](#governanceassignments_delete)
-- [Get](#governanceassignments_get)
-- [List](#governanceassignments_list)
-
-## GovernanceRules
-
-- [CreateOrUpdate](#governancerules_createorupdate)
-- [Delete](#governancerules_delete)
-- [Execute](#governancerules_execute)
-- [Get](#governancerules_get)
-- [List](#governancerules_list)
-- [OperationResults](#governancerules_operationresults)
-
-## HealthReports
-
-- [Get](#healthreports_get)
-- [List](#healthreports_list)
-
-## InformationProtectionPolicies
-
-- [CreateOrUpdate](#informationprotectionpolicies_createorupdate)
-- [Get](#informationprotectionpolicies_get)
-- [List](#informationprotectionpolicies_list)
-
## IotSecuritySolution
- [CreateOrUpdate](#iotsecuritysolution_createorupdate)
@@ -291,20 +122,6 @@
- [ListByResourceGroup](#jitnetworkaccesspolicies_listbyresourcegroup)
- [ListByResourceGroupAndRegion](#jitnetworkaccesspolicies_listbyresourcegroupandregion)
-## Locations
-
-- [Get](#locations_get)
-- [List](#locations_list)
-
-## MdeOnboardings
-
-- [Get](#mdeonboardings_get)
-- [List](#mdeonboardings_list)
-
-## Operations
-
-- [List](#operations_list)
-
## Pricings
- [Delete](#pricings_delete)
@@ -312,21 +129,6 @@
- [List](#pricings_list)
- [Update](#pricings_update)
-## RegulatoryComplianceAssessments
-
-- [Get](#regulatorycomplianceassessments_get)
-- [List](#regulatorycomplianceassessments_list)
-
-## RegulatoryComplianceControls
-
-- [Get](#regulatorycompliancecontrols_get)
-- [List](#regulatorycompliancecontrols_list)
-
-## RegulatoryComplianceStandards
-
-- [Get](#regulatorycompliancestandards_get)
-- [List](#regulatorycompliancestandards_list)
-
## SecureScoreControlDefinitions
- [List](#securescorecontroldefinitions_list)
@@ -342,39 +144,6 @@
- [Get](#securescores_get)
- [List](#securescores_list)
-## SecurityConnectorApplicationOperation
-
-- [CreateOrUpdate](#securityconnectorapplicationoperation_createorupdate)
-- [Delete](#securityconnectorapplicationoperation_delete)
-- [Get](#securityconnectorapplicationoperation_get)
-
-## SecurityConnectorApplications
-
-- [List](#securityconnectorapplications_list)
-
-## SecurityConnectors
-
-- [CreateOrUpdate](#securityconnectors_createorupdate)
-- [Delete](#securityconnectors_delete)
-- [GetByResourceGroup](#securityconnectors_getbyresourcegroup)
-- [List](#securityconnectors_list)
-- [ListByResourceGroup](#securityconnectors_listbyresourcegroup)
-- [Update](#securityconnectors_update)
-
-## SecurityContacts
-
-- [Create](#securitycontacts_create)
-- [Delete](#securitycontacts_delete)
-- [Get](#securitycontacts_get)
-- [List](#securitycontacts_list)
-
-## SecurityOperators
-
-- [CreateOrUpdate](#securityoperators_createorupdate)
-- [Delete](#securityoperators_delete)
-- [Get](#securityoperators_get)
-- [List](#securityoperators_list)
-
## SecuritySolutions
- [Get](#securitysolutions_get)
@@ -392,12 +161,6 @@
- [Get](#securitystandards_get)
- [List](#securitystandards_list)
-## SensitivitySettings
-
-- [CreateOrUpdate](#sensitivitysettings_createorupdate)
-- [Get](#sensitivitysettings_get)
-- [List](#sensitivitysettings_list)
-
## ServerVulnerabilityAssessment
- [CreateOrUpdate](#servervulnerabilityassessment_createorupdate)
@@ -418,30 +181,6 @@
- [List](#settings_list)
- [Update](#settings_update)
-## SoftwareInventories
-
-- [Get](#softwareinventories_get)
-- [List](#softwareinventories_list)
-- [ListByExtendedResource](#softwareinventories_listbyextendedresource)
-
-## SqlVulnerabilityAssessmentBaselineRules
-
-- [Add](#sqlvulnerabilityassessmentbaselinerules_add)
-- [CreateOrUpdate](#sqlvulnerabilityassessmentbaselinerules_createorupdate)
-- [Delete](#sqlvulnerabilityassessmentbaselinerules_delete)
-- [Get](#sqlvulnerabilityassessmentbaselinerules_get)
-- [List](#sqlvulnerabilityassessmentbaselinerules_list)
-
-## SqlVulnerabilityAssessmentScanResults
-
-- [Get](#sqlvulnerabilityassessmentscanresults_get)
-- [List](#sqlvulnerabilityassessmentscanresults_list)
-
-## SqlVulnerabilityAssessmentScans
-
-- [Get](#sqlvulnerabilityassessmentscans_get)
-- [List](#sqlvulnerabilityassessmentscans_list)
-
## StandardAssignments
- [Create](#standardassignments_create)
@@ -449,35 +188,11 @@
- [Get](#standardassignments_get)
- [List](#standardassignments_list)
-## SubAssessments
-
-- [Get](#subassessments_get)
-- [List](#subassessments_list)
-- [ListAll](#subassessments_listall)
-
-## Tasks
-
-- [GetResourceGroupLevelTask](#tasks_getresourcegroupleveltask)
-- [GetSubscriptionLevelTask](#tasks_getsubscriptionleveltask)
-- [List](#tasks_list)
-- [ListByHomeRegion](#tasks_listbyhomeregion)
-- [ListByResourceGroup](#tasks_listbyresourcegroup)
-- [UpdateResourceGroupLevelTaskState](#tasks_updateresourcegroupleveltaskstate)
-- [UpdateSubscriptionLevelTaskState](#tasks_updatesubscriptionleveltaskstate)
-
## Topology
- [Get](#topology_get)
- [List](#topology_list)
- [ListByHomeRegion](#topology_listbyhomeregion)
-
-## WorkspaceSettings
-
-- [Create](#workspacesettings_create)
-- [Delete](#workspacesettings_delete)
-- [Get](#workspacesettings_get)
-- [List](#workspacesettings_list)
-- [Update](#workspacesettings_update)
### AdvancedThreatProtection_Create
```java
@@ -908,152 +623,6 @@ public final class AlertsUpdateSubscriptionLevelStateToResolveSamples {
}
```
-### AlertsSuppressionRules_Delete
-
-```java
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### AlertsSuppressionRules_Get
-
-```java
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### AlertsSuppressionRules_List
-
-```java
-/**
- * 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, com.azure.core.util.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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### AlertsSuppressionRules_Update
-
-```java
-import com.azure.core.management.serializer.SerializerFactory;
-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"))))),
- com.azure.core.util.Context.NONE);
- }
-
- // Use "Map.of" if available
- @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
@@ -1280,117 +849,6 @@ public final class ApiCollectionsOnboardAzureApiManagementApiSamples {
}
```
-### ApplicationOperation_CreateOrUpdate
-
-```java
-import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.security.models.ApplicationSourceResourceType;
-import java.io.IOException;
-import java.util.Arrays;
-
-/**
- * Samples for ApplicationOperation CreateOrUpdate.
- */
-public final class ApplicationOperationCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-07-01-preview/examples/Applications/
- * PutApplication_example.json
- */
- /**
- * Sample code: Create application.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void createApplication(com.azure.resourcemanager.security.SecurityManager manager)
- throws IOException {
- manager.applicationOperations()
- .define("ad9a8e26-29d9-4829-bb30-e597a58cdbb8")
- .withDisplayName("Admin's application")
- .withDescription("An application on critical recommendations")
- .withSourceResourceType(ApplicationSourceResourceType.ASSESSMENTS)
- .withConditionSets(Arrays.asList(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{\"conditions\":[{\"operator\":\"contains\",\"property\":\"$.Id\",\"value\":\"-bil-\"}]}",
- Object.class, SerializerEncoding.JSON)))
- .create();
- }
-}
-```
-
-### ApplicationOperation_Delete
-
-```java
-/**
- * Samples for ApplicationOperation Delete.
- */
-public final class ApplicationOperationDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-07-01-preview/examples/Applications/
- * DeleteApplication_example.json
- */
- /**
- * Sample code: Delete security Application.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void deleteSecurityApplication(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.applicationOperations()
- .deleteWithResponse("ad9a8e26-29d9-4829-bb30-e597a58cdbb8", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ApplicationOperation_Get
-
-```java
-/**
- * Samples for ApplicationOperation Get.
- */
-public final class ApplicationOperationGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-07-01-preview/examples/Applications/
- * GetApplication_example.json
- */
- /**
- * Sample code: Get security application by specific applicationId.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- getSecurityApplicationBySpecificApplicationId(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.applicationOperations()
- .getWithResponse("ad9a8e26-29d9-4829-bb30-e597a58cdbb8", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Applications_List
-
-```java
-/**
- * Samples for Applications List.
- */
-public final class ApplicationsListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-07-01-preview/examples/Applications/
- * ListBySubscriptionApplications_example.json
- */
- /**
- * Sample code: List applications security by subscription level scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- listApplicationsSecurityBySubscriptionLevelScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.applications().list(com.azure.core.util.Context.NONE);
- }
-}
-```
-
### Assessments_CreateOrUpdate
```java
@@ -1689,7151 +1147,2556 @@ public final class AssessmentsMetadataListBySubscriptionSamples {
}
```
-### AutoProvisioningSettings_Create
+### ComplianceResults_Get
```java
-import com.azure.resourcemanager.security.models.AutoProvision;
-
/**
- * Samples for AutoProvisioningSettings Create.
+ * Samples for ComplianceResults Get.
*/
-public final class AutoProvisioningSettingsCreateSamples {
+public final class ComplianceResultsGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/
- * AutoProvisioningSettings/CreateAutoProvisioningSettingsSubscription_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2017-08-01/examples/ComplianceResults/
+ * GetComplianceResults_example.json
*/
/**
- * Sample code: Create auto provisioning settings for subscription.
+ * Sample code: Get compliance results on 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
-/**
- * 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", com.azure.core.util.Context.NONE);
+ public static void getComplianceResultsOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.complianceResults()
+ .getWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "DesignateMoreThanOneOwner",
+ com.azure.core.util.Context.NONE);
}
}
```
-### AutoProvisioningSettings_List
+### ComplianceResults_List
```java
/**
- * Samples for AutoProvisioningSettings List.
+ * Samples for ComplianceResults List.
*/
-public final class AutoProvisioningSettingsListSamples {
+public final class ComplianceResultsListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/
- * AutoProvisioningSettings/GetAutoProvisioningSettingsSubscription_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2017-08-01/examples/ComplianceResults/
+ * ListComplianceResults_example.json
*/
/**
- * Sample code: Get auto provisioning settings for subscription.
+ * Sample code: Get compliance results on subscription.
*
* @param manager Entry point to SecurityManager.
*/
- public static void
- getAutoProvisioningSettingsForSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.autoProvisioningSettings().list(com.azure.core.util.Context.NONE);
+ public static void getComplianceResultsOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.complianceResults()
+ .list("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", com.azure.core.util.Context.NONE);
}
}
```
-### Automations_CreateOrUpdate
+### CustomRecommendations_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 com.azure.resourcemanager.security.models.RecommendationSupportedClouds;
+import com.azure.resourcemanager.security.models.SecurityIssue;
+import com.azure.resourcemanager.security.models.SeverityEnum;
import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
/**
- * Samples for Automations CreateOrUpdate.
+ * Samples for CustomRecommendations CreateOrUpdate.
*/
-public final class AutomationsCreateOrUpdateSamples {
+public final class CustomRecommendationsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-12-01-preview/examples/Automations/
- * PutAutomationAllAssessments_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
+ * PutBySecurityConnectorCustomRecommendation_example.json
*/
/**
- * Sample code: Create or update a security automation for all assessments (including all severities).
+ * Sample code: Create or update custom recommendation over security connector scope.
*
* @param manager Entry point to SecurityManager.
*/
- public static void createOrUpdateASecurityAutomationForAllAssessmentsIncludingAllSeverities(
+ public static void createOrUpdateCustomRecommendationOverSecurityConnectorScope(
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")))
+ manager.customRecommendations()
+ .define("33e7cc6e-a139-4723-a0e5-76993aee0771")
+ .withExistingScope(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector")
+ .withQuery(
+ "RawEntityMetadata | where Environment == 'GCP' and Identifiers.Type == 'compute.firewalls' | extend IslogConfigEnabled = tobool(Record.logConfig.enable) | extend HealthStatus = iff(IslogConfigEnabled, 'HEALTHY', 'UNHEALTHY')")
+ .withCloudProviders(Arrays.asList(RecommendationSupportedClouds.AWS))
+ .withSeverity(SeverityEnum.MEDIUM)
+ .withSecurityIssue(SecurityIssue.VULNERABILITY)
+ .withDisplayName("Password Policy")
+ .withDescription("organization passwords policy")
+ .withRemediationDescription("Change password policy to...")
.create();
}
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-12-01-preview/examples/Automations/
- * PutDisableAutomation_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
+ * PutBySubscriptionCustomRecommendation_example.json
*/
/**
- * Sample code: Disable or enable a security automation.
+ * Sample code: Create or update custom recommendation over subscription scope.
*
* @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")))
+ public static void createOrUpdateCustomRecommendationOverSubscriptionScope(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.customRecommendations()
+ .define("33e7cc6e-a139-4723-a0e5-76993aee0771")
+ .withExistingScope("subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b")
+ .withQuery(
+ "RawEntityMetadata | where Environment == 'GCP' and Identifiers.Type == 'compute.firewalls' | extend IslogConfigEnabled = tobool(Record.logConfig.enable) | extend HealthStatus = iff(IslogConfigEnabled, 'HEALTHY', 'UNHEALTHY')")
+ .withCloudProviders(Arrays.asList(RecommendationSupportedClouds.AWS))
+ .withSeverity(SeverityEnum.MEDIUM)
+ .withSecurityIssue(SecurityIssue.VULNERABILITY)
+ .withDisplayName("Password Policy")
+ .withDescription("organization passwords policy")
+ .withRemediationDescription("Change password policy to...")
.create();
}
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-12-01-preview/examples/Automations/
- * PutAutomationHighSeverityAssessments_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
+ * PutByManagementGroupCustomRecommendation_example.json
*/
/**
- * Sample code: Create or update a security automation for all high severity assessments.
+ * Sample code: Create or update custom recommendation over management group scope.
*
* @param manager Entry point to SecurityManager.
*/
- public static void createOrUpdateASecurityAutomationForAllHighSeverityAssessments(
+ public static void createOrUpdateCustomRecommendationOverManagementGroupScope(
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")))
+ manager.customRecommendations()
+ .define("33e7cc6e-a139-4723-a0e5-76993aee0771")
+ .withExistingScope("providers/Microsoft.Management/managementGroups/contoso")
+ .withQuery(
+ "RawEntityMetadata | where Environment == 'GCP' and Identifiers.Type == 'compute.firewalls' | extend IslogConfigEnabled = tobool(Record.logConfig.enable) | extend HealthStatus = iff(IslogConfigEnabled, 'HEALTHY', 'UNHEALTHY')")
+ .withCloudProviders(Arrays.asList(RecommendationSupportedClouds.AWS))
+ .withSeverity(SeverityEnum.MEDIUM)
+ .withSecurityIssue(SecurityIssue.VULNERABILITY)
+ .withDisplayName("Password Policy")
+ .withDescription("organization passwords policy")
+ .withRemediationDescription("Change password policy to...")
.create();
}
-
- // Use "Map.of" if available
- @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
+### CustomRecommendations_Delete
```java
/**
- * Samples for Automations Delete.
+ * Samples for CustomRecommendations Delete.
*/
-public final class AutomationsDeleteSamples {
+public final class CustomRecommendationsDeleteSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-12-01-preview/examples/Automations/
- * DeleteAutomation_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
+ * DeleteBySecurityConnectorCustomRecommendation_example.json
*/
/**
- * Sample code: Delete a security automation.
+ * Sample code: Delete a custom recommendation over security connector scope.
*
* @param manager Entry point to SecurityManager.
*/
- public static void deleteASecurityAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.automations()
- .deleteByResourceGroupWithResponse("myRg", "myAutomationName", com.azure.core.util.Context.NONE);
+ public static void deleteACustomRecommendationOverSecurityConnectorScope(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.customRecommendations()
+ .deleteByResourceGroupWithResponse(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
+ "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", com.azure.core.util.Context.NONE);
}
-}
-```
-### Automations_GetByResourceGroup
-
-```java
-/**
- * Samples for Automations GetByResourceGroup.
- */
-public final class AutomationsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-12-01-preview/examples/Automations/
- * GetAutomationResourceGroup_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
+ * DeleteBySubscriptionCustomRecommendation_example.json
*/
/**
- * Sample code: Retrieve a security automation.
+ * Sample code: Delete a custom recommendation over subscription scope.
*
* @param manager Entry point to SecurityManager.
*/
- public static void retrieveASecurityAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.automations()
- .getByResourceGroupWithResponse("exampleResourceGroup", "exampleAutomation",
- com.azure.core.util.Context.NONE);
+ public static void
+ deleteACustomRecommendationOverSubscriptionScope(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.customRecommendations()
+ .deleteByResourceGroupWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "1f3afdf9-d0c9-4c3d-847f-89da613e70a8", com.azure.core.util.Context.NONE);
}
-}
-```
-
-### Automations_List
-```java
-/**
- * Samples for Automations List.
- */
-public final class AutomationsListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-12-01-preview/examples/Automations/
- * GetAutomationsSubscription_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
+ * DeleteByManagementGroupCustomRecommendation_example.json
*/
/**
- * Sample code: List all security automations of a specified subscription.
+ * Sample code: Delete a custom recommendation over management group scope.
*
* @param manager Entry point to SecurityManager.
*/
- public static void
- listAllSecurityAutomationsOfASpecifiedSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.automations().list(com.azure.core.util.Context.NONE);
+ public static void deleteACustomRecommendationOverManagementGroupScope(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.customRecommendations()
+ .deleteByResourceGroupWithResponse("providers/Microsoft.Management/managementGroups/contoso",
+ "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", com.azure.core.util.Context.NONE);
}
}
```
-### Automations_ListByResourceGroup
+### CustomRecommendations_Get
```java
/**
- * Samples for Automations ListByResourceGroup.
+ * Samples for CustomRecommendations Get.
*/
-public final class AutomationsListByResourceGroupSamples {
+public final class CustomRecommendationsGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-12-01-preview/examples/Automations/
- * GetAutomationsResourceGroup_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
+ * GetByManagementGroupCustomRecommendation_example.json
*/
/**
- * Sample code: List all security automations of a specified resource group.
+ * Sample code: Get a custom recommendation over management group scope.
*
* @param manager Entry point to SecurityManager.
*/
- public static void listAllSecurityAutomationsOfASpecifiedResourceGroup(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.automations().listByResourceGroup("exampleResourceGroup", com.azure.core.util.Context.NONE);
+ public static void
+ getACustomRecommendationOverManagementGroupScope(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.customRecommendations()
+ .getWithResponse("providers/Microsoft.Management/managementGroups/contoso",
+ "1f3afdf9-d0c9-4c3d-847f-89da613e70a8", com.azure.core.util.Context.NONE);
}
-}
-```
-
-### Automations_Update
-
-```java
-import com.azure.resourcemanager.security.models.Automation;
-import com.azure.resourcemanager.security.models.AutomationActionLogicApp;
-import com.azure.resourcemanager.security.models.AutomationScope;
-import com.azure.resourcemanager.security.models.AutomationSource;
-import com.azure.resourcemanager.security.models.EventSource;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-/**
- * Samples for Automations Update.
- */
-public final class AutomationsUpdateSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-12-01-preview/examples/Automations/
- * PatchAutomation_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
+ * GetBySecurityConnectorCustomRecommendation_example.json
*/
/**
- * Sample code: Update a security automation.
+ * Sample code: Get a custom recommendation over security connector scope.
*
* @param manager Entry point to SecurityManager.
*/
- public static void updateASecurityAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
- Automation resource = manager.automations()
- .getByResourceGroupWithResponse("exampleResourceGroup", "exampleAutomation",
- com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withTags(mapOf("Example", "exampleTag"))
- .withDescription(
- "An example of a security automation that triggers one LogicApp resource (myTest1) on any security assessment")
- .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")))
- .apply();
- }
-
- // Use "Map.of" if available
- @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;
+ public static void
+ getACustomRecommendationOverSecurityConnectorScope(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.customRecommendations()
+ .getWithResponse(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
+ "1f3afdf9-d0c9-4c3d-847f-89da613e70a8", com.azure.core.util.Context.NONE);
}
-}
-```
-
-### Automations_Validate
-
-```java
-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/2023-12-01-preview/examples/Automations/
- * ValidateAutomation_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
+ * GetBySubscriptionCustomRecommendation_example.json
*/
/**
- * Sample code: Validate the security automation model before create or update.
+ * Sample code: Get a custom recommendation over subscription scope.
*
* @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"))),
- com.azure.core.util.Context.NONE);
- }
-
- // Use "Map.of" if available
- @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;
+ public static void
+ getACustomRecommendationOverSubscriptionScope(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.customRecommendations()
+ .getWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "1f3afdf9-d0c9-4c3d-847f-89da613e70a8", com.azure.core.util.Context.NONE);
}
}
```
-### AzureDevOpsOrgs_CreateOrUpdate
+### CustomRecommendations_List
```java
-import com.azure.resourcemanager.security.models.ActionableRemediation;
-import com.azure.resourcemanager.security.models.ActionableRemediationState;
-import com.azure.resourcemanager.security.models.AzureDevOpsOrgProperties;
-import com.azure.resourcemanager.security.models.OnboardingState;
-
/**
- * Samples for AzureDevOpsOrgs CreateOrUpdate.
+ * Samples for CustomRecommendations List.
*/
-public final class AzureDevOpsOrgsCreateOrUpdateSamples {
+public final class CustomRecommendationsListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/CreateOrUpdateAzureDevOpsOrgs_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
+ * ListByManagementGroupCustomRecommendations_example.json
*/
/**
- * Sample code: CreateOrUpdate_AzureDevOpsOrgs.
+ * Sample code: List custom recommendations by management group scope.
*
* @param manager Entry point to SecurityManager.
*/
- public static void createOrUpdateAzureDevOpsOrgs(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.azureDevOpsOrgs()
- .define("myAzDevOpsOrg")
- .withExistingSecurityConnector("myRg", "mySecurityConnectorName")
- .withProperties(new AzureDevOpsOrgProperties().withOnboardingState(OnboardingState.NOT_APPLICABLE)
- .withActionableRemediation(new ActionableRemediation().withState(ActionableRemediationState.ENABLED)))
- .create();
+ public static void
+ listCustomRecommendationsByManagementGroupScope(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.customRecommendations()
+ .list("providers/Microsoft.Management/managementGroups/contoso", com.azure.core.util.Context.NONE);
}
-}
-```
-
-### AzureDevOpsOrgs_Get
-```java
-/**
- * Samples for AzureDevOpsOrgs Get.
- */
-public final class AzureDevOpsOrgsGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/GetAzureDevOpsOrgs_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
+ * ListBySubscriptionCustomRecommendations_example.json
*/
/**
- * Sample code: Get_AzureDevOpsOrgs.
+ * Sample code: List custom recommendations by subscription scope.
*
* @param manager Entry point to SecurityManager.
*/
- public static void getAzureDevOpsOrgs(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.azureDevOpsOrgs()
- .getWithResponse("myRg", "mySecurityConnectorName", "myAzDevOpsOrg", com.azure.core.util.Context.NONE);
+ public static void
+ listCustomRecommendationsBySubscriptionScope(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.customRecommendations()
+ .list("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", com.azure.core.util.Context.NONE);
}
-}
-```
-### AzureDevOpsOrgs_List
-
-```java
-/**
- * Samples for AzureDevOpsOrgs List.
- */
-public final class AzureDevOpsOrgsListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/ListAzureDevOpsOrgs_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
+ * ListBySecurityConnectorCustomRecommendations_example.json
*/
/**
- * Sample code: List_AzureDevOpsOrgs.
+ * Sample code: List custom recommendations by security connector scope.
*
* @param manager Entry point to SecurityManager.
*/
- public static void listAzureDevOpsOrgs(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.azureDevOpsOrgs().list("myRg", "mySecurityConnectorName", com.azure.core.util.Context.NONE);
+ public static void
+ listCustomRecommendationsBySecurityConnectorScope(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.customRecommendations()
+ .list(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
+ com.azure.core.util.Context.NONE);
}
}
```
-### AzureDevOpsOrgs_ListAvailable
+### DeviceSecurityGroups_CreateOrUpdate
```java
+import com.azure.resourcemanager.security.models.ActiveConnectionsNotInAllowedRange;
+import java.time.Duration;
+import java.util.Arrays;
+
/**
- * Samples for AzureDevOpsOrgs ListAvailable.
+ * Samples for DeviceSecurityGroups CreateOrUpdate.
*/
-public final class AzureDevOpsOrgsListAvailableSamples {
+public final class DeviceSecurityGroupsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/ListAvailableAzureDevOpsOrgs_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/DeviceSecurityGroups/
+ * PutDeviceSecurityGroups_example.json
*/
/**
- * Sample code: ListAvailable_AzureDevOpsOrgs.
+ * Sample code: Create or update a device security group for the specified IoT hub resource.
*
* @param manager Entry point to SecurityManager.
*/
- public static void listAvailableAzureDevOpsOrgs(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.azureDevOpsOrgs()
- .listAvailableWithResponse("myRg", "mySecurityConnectorName", com.azure.core.util.Context.NONE);
+ 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();
}
}
```
-### AzureDevOpsOrgs_Update
+### DeviceSecurityGroups_Delete
```java
-import com.azure.resourcemanager.security.models.ActionableRemediation;
-import com.azure.resourcemanager.security.models.ActionableRemediationState;
-import com.azure.resourcemanager.security.models.AzureDevOpsOrg;
-import com.azure.resourcemanager.security.models.AzureDevOpsOrgProperties;
-import com.azure.resourcemanager.security.models.OnboardingState;
-
/**
- * Samples for AzureDevOpsOrgs Update.
+ * Samples for DeviceSecurityGroups Delete.
*/
-public final class AzureDevOpsOrgsUpdateSamples {
+public final class DeviceSecurityGroupsDeleteSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/UpdateAzureDevOpsOrgs_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/DeviceSecurityGroups/
+ * DeleteDeviceSecurityGroups_example.json
*/
/**
- * Sample code: Update_AzureDevOpsOrgs.
+ * Sample code: Delete a device security group for the specified IoT Hub resource.
*
* @param manager Entry point to SecurityManager.
*/
- public static void updateAzureDevOpsOrgs(com.azure.resourcemanager.security.SecurityManager manager) {
- AzureDevOpsOrg resource = manager.azureDevOpsOrgs()
- .getWithResponse("myRg", "mySecurityConnectorName", "myAzDevOpsOrg", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withProperties(new AzureDevOpsOrgProperties().withOnboardingState(OnboardingState.NOT_APPLICABLE)
- .withActionableRemediation(new ActionableRemediation().withState(ActionableRemediationState.ENABLED)))
- .apply();
+ public static void deleteADeviceSecurityGroupForTheSpecifiedIoTHubResource(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.deviceSecurityGroups()
+ .deleteByResourceGroupWithResponse(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Devices/iotHubs/sampleiothub",
+ "samplesecuritygroup", com.azure.core.util.Context.NONE);
}
}
```
-### AzureDevOpsProjects_CreateOrUpdate
+### DeviceSecurityGroups_Get
```java
-import com.azure.resourcemanager.security.models.ActionableRemediation;
-import com.azure.resourcemanager.security.models.ActionableRemediationState;
-import com.azure.resourcemanager.security.models.AzureDevOpsProjectProperties;
-import com.azure.resourcemanager.security.models.OnboardingState;
-
/**
- * Samples for AzureDevOpsProjects CreateOrUpdate.
+ * Samples for DeviceSecurityGroups Get.
*/
-public final class AzureDevOpsProjectsCreateOrUpdateSamples {
+public final class DeviceSecurityGroupsGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/CreateOrUpdateAzureDevOpsProjects_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/DeviceSecurityGroups/
+ * GetDeviceSecurityGroups_example.json
*/
/**
- * Sample code: CreateOrUpdate_AzureDevOpsProjects.
+ * Sample code: Get a device security group for the specified IoT Hub resource.
*
* @param manager Entry point to SecurityManager.
*/
- public static void createOrUpdateAzureDevOpsProjects(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.azureDevOpsProjects()
- .define("myAzDevOpsProject")
- .withExistingAzureDevOpsOrg("myRg", "mySecurityConnectorName", "myAzDevOpsOrg")
- .withProperties(new AzureDevOpsProjectProperties().withOnboardingState(OnboardingState.NOT_APPLICABLE)
- .withActionableRemediation(new ActionableRemediation().withState(ActionableRemediationState.ENABLED)))
- .create();
+ 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", com.azure.core.util.Context.NONE);
}
}
```
-### AzureDevOpsProjects_Get
+### DeviceSecurityGroups_List
```java
/**
- * Samples for AzureDevOpsProjects Get.
+ * Samples for DeviceSecurityGroups List.
*/
-public final class AzureDevOpsProjectsGetSamples {
+public final class DeviceSecurityGroupsListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/GetAzureDevOpsProjects_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/DeviceSecurityGroups/
+ * ListDeviceSecurityGroups_example.json
*/
/**
- * Sample code: Get_AzureDevOpsProjects.
+ * Sample code: List all device security groups for the specified IoT Hub resource.
*
* @param manager Entry point to SecurityManager.
*/
- public static void getAzureDevOpsProjects(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.azureDevOpsProjects()
- .getWithResponse("myRg", "mySecurityConnectorName", "myAzDevOpsOrg", "myAzDevOpsProject",
+ 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",
com.azure.core.util.Context.NONE);
}
}
```
-### AzureDevOpsProjects_List
+### DiscoveredSecuritySolutions_Get
```java
/**
- * Samples for AzureDevOpsProjects List.
+ * Samples for DiscoveredSecuritySolutions Get.
*/
-public final class AzureDevOpsProjectsListSamples {
+public final class DiscoveredSecuritySolutionsGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/ListAzureDevOpsProjects_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/DiscoveredSecuritySolutions
+ * /GetDiscoveredSecuritySolutionResourceGroupLocation_example.json
*/
/**
- * Sample code: List_AzureDevOpsProjects.
+ * Sample code: Get discovered security solution from a security data location.
*
* @param manager Entry point to SecurityManager.
*/
- public static void listAzureDevOpsProjects(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.azureDevOpsProjects()
- .list("myRg", "mySecurityConnectorName", "myAzDevOpsOrg", com.azure.core.util.Context.NONE);
+ public static void getDiscoveredSecuritySolutionFromASecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.discoveredSecuritySolutions()
+ .getWithResponse("myRg2", "centralus", "paloalto7", com.azure.core.util.Context.NONE);
}
}
```
-### AzureDevOpsProjects_Update
+### DiscoveredSecuritySolutions_List
```java
-import com.azure.resourcemanager.security.models.ActionableRemediation;
-import com.azure.resourcemanager.security.models.ActionableRemediationState;
-import com.azure.resourcemanager.security.models.AzureDevOpsProject;
-import com.azure.resourcemanager.security.models.AzureDevOpsProjectProperties;
-import com.azure.resourcemanager.security.models.OnboardingState;
-
/**
- * Samples for AzureDevOpsProjects Update.
+ * Samples for DiscoveredSecuritySolutions List.
*/
-public final class AzureDevOpsProjectsUpdateSamples {
+public final class DiscoveredSecuritySolutionsListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/UpdateAzureDevOpsProjects_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/DiscoveredSecuritySolutions
+ * /GetDiscoveredSecuritySolutionsSubscription_example.json
*/
/**
- * Sample code: Update_AzureDevOpsProjects.
+ * Sample code: Get discovered security solutions.
*
* @param manager Entry point to SecurityManager.
*/
- public static void updateAzureDevOpsProjects(com.azure.resourcemanager.security.SecurityManager manager) {
- AzureDevOpsProject resource = manager.azureDevOpsProjects()
- .getWithResponse("myRg", "mySecurityConnectorName", "myAzDevOpsOrg", "myAzDevOpsProject",
- com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withProperties(new AzureDevOpsProjectProperties().withOnboardingState(OnboardingState.NOT_APPLICABLE)
- .withActionableRemediation(new ActionableRemediation().withState(ActionableRemediationState.ENABLED)))
- .apply();
+ public static void getDiscoveredSecuritySolutions(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.discoveredSecuritySolutions().list(com.azure.core.util.Context.NONE);
}
}
```
-### AzureDevOpsRepos_CreateOrUpdate
+### DiscoveredSecuritySolutions_ListByHomeRegion
```java
-import com.azure.resourcemanager.security.models.ActionableRemediation;
-import com.azure.resourcemanager.security.models.ActionableRemediationState;
-import com.azure.resourcemanager.security.models.AzureDevOpsRepositoryProperties;
-import com.azure.resourcemanager.security.models.OnboardingState;
-
/**
- * Samples for AzureDevOpsRepos CreateOrUpdate.
+ * Samples for DiscoveredSecuritySolutions ListByHomeRegion.
*/
-public final class AzureDevOpsReposCreateOrUpdateSamples {
+public final class DiscoveredSecuritySolutionsListByHomeRegionSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/CreateOrUpdateAzureDevOpsRepos_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/DiscoveredSecuritySolutions
+ * /GetDiscoveredSecuritySolutionsSubscriptionLocation_example.json
*/
/**
- * Sample code: CreateOrUpdate_AzureDevOpsRepos.
+ * Sample code: Get discovered security solutions from a security data location.
*
* @param manager Entry point to SecurityManager.
*/
- public static void createOrUpdateAzureDevOpsRepos(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.azureDevOpsRepos()
- .define("myAzDevOpsRepo")
- .withExistingProject("myRg", "mySecurityConnectorName", "myAzDevOpsOrg", "myAzDevOpsProject")
- .withProperties(new AzureDevOpsRepositoryProperties().withOnboardingState(OnboardingState.NOT_APPLICABLE)
- .withActionableRemediation(new ActionableRemediation().withState(ActionableRemediationState.ENABLED)))
- .create();
+ public static void getDiscoveredSecuritySolutionsFromASecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.discoveredSecuritySolutions().listByHomeRegion("centralus", com.azure.core.util.Context.NONE);
}
}
```
-### AzureDevOpsRepos_Get
+### ExternalSecuritySolutions_Get
```java
/**
- * Samples for AzureDevOpsRepos Get.
+ * Samples for ExternalSecuritySolutions Get.
*/
-public final class AzureDevOpsReposGetSamples {
+public final class ExternalSecuritySolutionsGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/GetAzureDevOpsRepos_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/
+ * GetExternalSecuritySolution_example.json
*/
/**
- * Sample code: Get_AzureDevOpsRepos.
+ * Sample code: Get external security solution.
*
* @param manager Entry point to SecurityManager.
*/
- public static void getAzureDevOpsRepos(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.azureDevOpsRepos()
- .getWithResponse("myRg", "mySecurityConnectorName", "myAzDevOpsOrg", "myAzDevOpsProject", "myAzDevOpsRepo",
- com.azure.core.util.Context.NONE);
+ public static void getExternalSecuritySolution(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.externalSecuritySolutions()
+ .getWithResponse("defaultresourcegroup-eus", "centralus",
+ "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus", com.azure.core.util.Context.NONE);
}
}
```
-### AzureDevOpsRepos_List
+### ExternalSecuritySolutions_List
```java
/**
- * Samples for AzureDevOpsRepos List.
+ * Samples for ExternalSecuritySolutions List.
*/
-public final class AzureDevOpsReposListSamples {
+public final class ExternalSecuritySolutionsListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/ListAzureDevOpsRepos_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/
+ * GetExternalSecuritySolutionsSubscription_example.json
*/
/**
- * Sample code: List_AzureDevOpsRepos.
+ * Sample code: Get external security solutions on a subscription.
*
* @param manager Entry point to SecurityManager.
*/
- public static void listAzureDevOpsRepos(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.azureDevOpsRepos()
- .list("myRg", "mySecurityConnectorName", "myAzDevOpsOrg", "myAzDevOpsProject",
- com.azure.core.util.Context.NONE);
+ public static void
+ getExternalSecuritySolutionsOnASubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.externalSecuritySolutions().list(com.azure.core.util.Context.NONE);
}
}
```
-### AzureDevOpsRepos_Update
+### ExternalSecuritySolutions_ListByHomeRegion
```java
-import com.azure.resourcemanager.security.models.ActionableRemediation;
-import com.azure.resourcemanager.security.models.ActionableRemediationState;
-import com.azure.resourcemanager.security.models.AzureDevOpsRepository;
-import com.azure.resourcemanager.security.models.AzureDevOpsRepositoryProperties;
-import com.azure.resourcemanager.security.models.OnboardingState;
-
/**
- * Samples for AzureDevOpsRepos Update.
+ * Samples for ExternalSecuritySolutions ListByHomeRegion.
*/
-public final class AzureDevOpsReposUpdateSamples {
+public final class ExternalSecuritySolutionsListByHomeRegionSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/UpdateAzureDevOpsRepos_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/
+ * GetExternalSecuritySolutionsSubscriptionLocation_example.json
*/
/**
- * Sample code: Update_AzureDevOpsRepos.
+ * Sample code: Get external security solutions on a subscription from security data location.
*
* @param manager Entry point to SecurityManager.
*/
- public static void updateAzureDevOpsRepos(com.azure.resourcemanager.security.SecurityManager manager) {
- AzureDevOpsRepository resource = manager.azureDevOpsRepos()
- .getWithResponse("myRg", "mySecurityConnectorName", "myAzDevOpsOrg", "myAzDevOpsProject", "myAzDevOpsRepo",
- com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withProperties(new AzureDevOpsRepositoryProperties().withOnboardingState(OnboardingState.NOT_APPLICABLE)
- .withActionableRemediation(new ActionableRemediation().withState(ActionableRemediationState.ENABLED)))
- .apply();
+ public static void getExternalSecuritySolutionsOnASubscriptionFromSecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.externalSecuritySolutions().listByHomeRegion("centralus", com.azure.core.util.Context.NONE);
}
}
```
-### ComplianceResults_Get
+### 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 ComplianceResults Get.
+ * Samples for IotSecuritySolution CreateOrUpdate.
*/
-public final class ComplianceResultsGetSamples {
+public final class IotSecuritySolutionCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2017-08-01/examples/ComplianceResults/
- * GetComplianceResults_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/
+ * CreateIoTSecuritySolution.json
*/
/**
- * Sample code: Get compliance results on subscription.
+ * Sample code: Create or update a IoT security solution.
*
* @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",
- com.azure.core.util.Context.NONE);
+ 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();
}
-}
-```
-
-### ComplianceResults_List
-```java
-/**
- * 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", com.azure.core.util.Context.NONE);
+ // Use "Map.of" if available
+ @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;
}
}
```
-### Compliances_Get
+### IotSecuritySolution_Delete
```java
/**
- * Samples for Compliances Get.
+ * Samples for IotSecuritySolution Delete.
*/
-public final class CompliancesGetSamples {
+public final class IotSecuritySolutionDeleteSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/Compliances/
- * GetCompliance_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/
+ * DeleteIoTSecuritySolution.json
*/
/**
- * Sample code: Get security compliance data for a day.
+ * Sample code: Delete an IoT security solution.
*
* @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",
- com.azure.core.util.Context.NONE);
+ public static void deleteAnIoTSecuritySolution(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.iotSecuritySolutions()
+ .deleteByResourceGroupWithResponse("MyGroup", "default", com.azure.core.util.Context.NONE);
}
}
```
-### Compliances_List
+### IotSecuritySolution_GetByResourceGroup
```java
/**
- * Samples for Compliances List.
+ * Samples for IotSecuritySolution GetByResourceGroup.
*/
-public final class CompliancesListSamples {
+public final class IotSecuritySolutionGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/Compliances/
- * GetCompliances_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/
+ * GetIoTSecuritySolution.json
*/
/**
- * Sample code: Get security compliance data over time.
+ * Sample code: Get a IoT security solution.
*
* @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", com.azure.core.util.Context.NONE);
+ public static void getAIoTSecuritySolution(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.iotSecuritySolutions()
+ .getByResourceGroupWithResponse("MyGroup", "default", com.azure.core.util.Context.NONE);
}
}
```
-### Connectors_CreateOrUpdate
+### IotSecuritySolution_List
```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.
+ * Samples for IotSecuritySolution List.
*/
-public final class ConnectorsCreateOrUpdateSamples {
+public final class IotSecuritySolutionListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/Connectors/
- * CreateUpdateGcpCredentialsConnectorSubscription_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/
+ * GetIoTSecuritySolutionsList.json
*/
/**
- * Sample code: gcpCredentials - Create a cloud account connector for a subscription.
+ * Sample code: List IoT Security solutions by 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("fakeTokenPlaceholder")
- .withPrivateKey("fakeTokenPlaceholder")
- .withClientEmail("asc-135@asc-project-1234.iam.gserviceaccount.com")
- .withClientId("105889053725632919854")
- .withAuthUri("https://accounts.google.com/o/oauth2/auth")
- .withTokenUri("fakeTokenPlaceholder")
- .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();
+ public static void
+ listIoTSecuritySolutionsBySubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.iotSecuritySolutions().list(null, com.azure.core.util.Context.NONE);
}
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/Connectors/
- * CreateUpdateAwsCredConnectorSubscription_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/
+ * GetIoTSecuritySolutionsListByIotHub.json
*/
/**
- * Sample code: AwsCred - Create a cloud account connector for a subscription.
+ * Sample code: List IoT Security solutions by IoT Hub.
*
* @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("fakeTokenPlaceholder")))
- .withAuthenticationDetails(
- new AwsCredsAuthenticationDetailsProperties().withAwsAccessKeyId("fakeTokenPlaceholder")
- .withAwsSecretAccessKey("fakeTokenPlaceholder"))
- .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("fakeTokenPlaceholder")))
- .withAuthenticationDetails(new AwAssumeRoleAuthenticationDetailsProperties()
- .withAwsAssumeRoleArn("arn:aws:iam::81231569658:role/AscConnector")
- .withAwsExternalId("20ff7fc3-e762-44dd-bd96-b71116dcdc23"))
- .create();
+ 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\")",
+ com.azure.core.util.Context.NONE);
}
}
```
-### Connectors_Delete
+### IotSecuritySolution_ListByResourceGroup
```java
/**
- * Samples for Connectors Delete.
+ * Samples for IotSecuritySolution ListByResourceGroup.
*/
-public final class ConnectorsDeleteSamples {
+public final class IotSecuritySolutionListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/Connectors/
- * DeleteConnectorSubscription_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/
+ * GetIoTSecuritySolutionsListByIotHubAndRg.json
*/
/**
- * Sample code: Delete a cloud account connector from a subscription.
+ * Sample code: List IoT Security solutions by resource group and IoT Hub.
*
* @param manager Entry point to SecurityManager.
*/
public static void
- deleteACloudAccountConnectorFromASubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.connectors().deleteWithResponse("aws_dev1", com.azure.core.util.Context.NONE);
+ 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\")",
+ com.azure.core.util.Context.NONE);
}
-}
-```
-
-### Connectors_Get
-```java
-/**
- * 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
+ * specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/
+ * GetIoTSecuritySolutionsListByRg.json
*/
/**
- * Sample code: Details of a specific cloud account connector.
+ * Sample code: List IoT Security solutions by resource group.
*
* @param manager Entry point to SecurityManager.
*/
public static void
- detailsOfASpecificCloudAccountConnector(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.connectors().getWithResponse("aws_dev1", com.azure.core.util.Context.NONE);
+ listIoTSecuritySolutionsByResourceGroup(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.iotSecuritySolutions().listByResourceGroup("MyGroup", null, com.azure.core.util.Context.NONE);
}
}
```
-### Connectors_List
+### IotSecuritySolution_Update
```java
+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 Connectors List.
+ * Samples for IotSecuritySolution Update.
*/
-public final class ConnectorsListSamples {
+public final class IotSecuritySolutionUpdateSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/Connectors/
- * GetListConnectorSubscription_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/
+ * UpdateIoTSecuritySolution.json
*/
/**
- * Sample code: Get all cloud accounts connectors of a subscription.
+ * Sample code: Use this method to update existing IoT Security solution.
*
* @param manager Entry point to SecurityManager.
*/
public static void
- getAllCloudAccountsConnectorsOfASubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.connectors().list(com.azure.core.util.Context.NONE);
+ useThisMethodToUpdateExistingIoTSecuritySolution(com.azure.resourcemanager.security.SecurityManager manager) {
+ IoTSecuritySolutionModel resource = manager.iotSecuritySolutions()
+ .getByResourceGroupWithResponse("myRg", "default", com.azure.core.util.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();
+ }
+
+ // Use "Map.of" if available
+ @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;
}
}
```
-### CustomAssessmentAutomations_Create
+### IotSecuritySolutionAnalytics_Get
```java
-import com.azure.resourcemanager.security.models.SeverityEnum;
-import com.azure.resourcemanager.security.models.SupportedCloudEnum;
-
/**
- * Samples for CustomAssessmentAutomations Create.
+ * Samples for IotSecuritySolutionAnalytics Get.
*/
-public final class CustomAssessmentAutomationsCreateSamples {
+public final class IotSecuritySolutionAnalyticsGetSamples {
/*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/
- * CustomAssessmentAutomations/customAssessmentAutomationCreate_example.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/
+ * IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAnalytics.json
*/
/**
- * Sample code: Create a Custom Assessment Automation.
+ * Sample code: Get Security Solution Analytics.
*
* @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();
+ public static void getSecuritySolutionAnalytics(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.iotSecuritySolutionAnalytics().getWithResponse("MyGroup", "default", com.azure.core.util.Context.NONE);
}
}
```
-### CustomAssessmentAutomations_Delete
+### IotSecuritySolutionAnalytics_List
```java
/**
- * Samples for CustomAssessmentAutomations Delete.
+ * Samples for IotSecuritySolutionAnalytics List.
*/
-public final class CustomAssessmentAutomationsDeleteSamples {
+public final class IotSecuritySolutionAnalyticsListSamples {
/*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/
- * CustomAssessmentAutomations/customAssessmentAutomationDelete_example.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/
+ * IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAnalyticsList.json
*/
/**
- * Sample code: Delete a Custom Assessment Automation.
+ * Sample code: Get Security Solution Analytics.
*
* @param manager Entry point to SecurityManager.
*/
- public static void deleteACustomAssessmentAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customAssessmentAutomations()
- .deleteByResourceGroupWithResponse("TestResourceGroup", "MyCustomAssessmentAutomation",
- com.azure.core.util.Context.NONE);
+ public static void getSecuritySolutionAnalytics(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.iotSecuritySolutionAnalytics().listWithResponse("MyGroup", "default", com.azure.core.util.Context.NONE);
}
}
```
-### CustomAssessmentAutomations_GetByResourceGroup
+### IotSecuritySolutionsAnalyticsAggregatedAlert_Dismiss
```java
/**
- * Samples for CustomAssessmentAutomations GetByResourceGroup.
+ * Samples for IotSecuritySolutionsAnalyticsAggregatedAlert Dismiss.
*/
-public final class CustomAssessmentAutomationsGetByResourceGroupSamples {
+public final class IotSecuritySolutionsAnalyticsAggregatedAlertDismissSamples {
/*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/
- * CustomAssessmentAutomations/customAssessmentAutomationGet_example.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/
+ * IoTSecuritySolutionsAnalytics/PostIoTSecuritySolutionsSecurityAggregatedAlertDismiss.json
*/
/**
- * Sample code: Get a Custom Assessment Automation.
+ * Sample code: Dismiss an aggregated IoT Security Solution Alert.
*
* @param manager Entry point to SecurityManager.
*/
- public static void getACustomAssessmentAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customAssessmentAutomations()
- .getByResourceGroupWithResponse("TestResourceGroup", "MyCustomAssessmentAutomation",
+ public static void
+ dismissAnAggregatedIoTSecuritySolutionAlert(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.iotSecuritySolutionsAnalyticsAggregatedAlerts()
+ .dismissWithResponse("IoTEdgeResources", "default", "IoT_Bruteforce_Fail/2019-02-02/dismiss",
com.azure.core.util.Context.NONE);
}
}
```
-### CustomAssessmentAutomations_List
+### IotSecuritySolutionsAnalyticsAggregatedAlert_Get
```java
/**
- * Samples for CustomAssessmentAutomations List.
+ * Samples for IotSecuritySolutionsAnalyticsAggregatedAlert Get.
*/
-public final class CustomAssessmentAutomationsListSamples {
+public final class IotSecuritySolutionsAnalyticsAggregatedAlertGetSamples {
/*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/
- * CustomAssessmentAutomations/customAssessmentAutomationListBySubscription_example.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/
+ * IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAggregatedAlert.json
*/
/**
- * Sample code: List Custom Assessment Automations in a subscription.
+ * 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
- listCustomAssessmentAutomationsInASubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customAssessmentAutomations().list(com.azure.core.util.Context.NONE);
+ getTheAggregatedSecurityAnalyticsAlertOfYoursIoTSecuritySolutionThisAggregationIsPerformedByAlertName(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.iotSecuritySolutionsAnalyticsAggregatedAlerts()
+ .getWithResponse("MyGroup", "default", "IoT_Bruteforce_Fail/2019-02-02", com.azure.core.util.Context.NONE);
}
}
```
-### CustomAssessmentAutomations_ListByResourceGroup
+### IotSecuritySolutionsAnalyticsAggregatedAlert_List
```java
/**
- * Samples for CustomAssessmentAutomations ListByResourceGroup.
+ * Samples for IotSecuritySolutionsAnalyticsAggregatedAlert List.
*/
-public final class CustomAssessmentAutomationsListByResourceGroupSamples {
+public final class IotSecuritySolutionsAnalyticsAggregatedAlertListSamples {
/*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/
- * CustomAssessmentAutomations/customAssessmentAutomationListByResourceGroup_example.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/
+ * IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAggregatedAlertList.json
*/
/**
- * Sample code: List Custom Assessment Automations in a subscription and a resource group.
+ * Sample code: Get the aggregated alert list of yours IoT Security solution.
*
* @param manager Entry point to SecurityManager.
*/
- public static void listCustomAssessmentAutomationsInASubscriptionAndAResourceGroup(
+ public static void getTheAggregatedAlertListOfYoursIoTSecuritySolution(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customAssessmentAutomations()
- .listByResourceGroup("TestResourceGroup", com.azure.core.util.Context.NONE);
+ manager.iotSecuritySolutionsAnalyticsAggregatedAlerts()
+ .list("MyGroup", "default", null, com.azure.core.util.Context.NONE);
}
}
```
-### CustomEntityStoreAssignments_Create
+### IotSecuritySolutionsAnalyticsRecommendation_Get
```java
/**
- * Samples for CustomEntityStoreAssignments Create.
+ * Samples for IotSecuritySolutionsAnalyticsRecommendation Get.
*/
-public final class CustomEntityStoreAssignmentsCreateSamples {
+public final class IotSecuritySolutionsAnalyticsRecommendationGetSamples {
/*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/
- * CustomEntityStoreAssignments/customEntityStoreAssignmentCreate_example.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/
+ * IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityRecommendation.json
*/
/**
- * Sample code: Create a custom entity store assignment.
+ * Sample code: Get the aggregated security analytics recommendation of yours IoT Security solution.
*
* @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();
+ public static void getTheAggregatedSecurityAnalyticsRecommendationOfYoursIoTSecuritySolution(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.iotSecuritySolutionsAnalyticsRecommendations()
+ .getWithResponse("IoTEdgeResources", "default", "OpenPortsOnDevice", com.azure.core.util.Context.NONE);
}
}
```
-### CustomEntityStoreAssignments_Delete
+### IotSecuritySolutionsAnalyticsRecommendation_List
```java
/**
- * Samples for CustomEntityStoreAssignments Delete.
+ * Samples for IotSecuritySolutionsAnalyticsRecommendation List.
*/
-public final class CustomEntityStoreAssignmentsDeleteSamples {
+public final class IotSecuritySolutionsAnalyticsRecommendationListSamples {
/*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/
- * CustomEntityStoreAssignments/customEntityStoreAssignmentDelete_example.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/
+ * IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityRecommendationList.json
*/
/**
- * Sample code: Delete a custom entity store assignment.
+ * Sample code: Get the list of aggregated security analytics recommendations of yours IoT Security solution.
*
* @param manager Entry point to SecurityManager.
*/
- public static void deleteACustomEntityStoreAssignment(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customEntityStoreAssignments()
- .deleteByResourceGroupWithResponse("TestResourceGroup", "33e7cc6e-a139-4723-a0e5-76993aee0771",
- com.azure.core.util.Context.NONE);
+ public static void getTheListOfAggregatedSecurityAnalyticsRecommendationsOfYoursIoTSecuritySolution(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.iotSecuritySolutionsAnalyticsRecommendations()
+ .list("IoTEdgeResources", "default", null, com.azure.core.util.Context.NONE);
}
}
```
-### CustomEntityStoreAssignments_GetByResourceGroup
+### 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 CustomEntityStoreAssignments GetByResourceGroup.
+ * Samples for JitNetworkAccessPolicies CreateOrUpdate.
*/
-public final class CustomEntityStoreAssignmentsGetByResourceGroupSamples {
+public final class JitNetworkAccessPoliciesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/
- * CustomEntityStoreAssignments/customEntityStoreAssignmentGet_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/
+ * CreateJitNetworkAccessPolicy_example.json
*/
/**
- * Sample code: Get a custom entity store assignment.
+ * Sample code: Create JIT network access policy.
*
* @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",
- com.azure.core.util.Context.NONE);
+ 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();
}
}
```
-### CustomEntityStoreAssignments_List
+### JitNetworkAccessPolicies_Delete
```java
/**
- * Samples for CustomEntityStoreAssignments List.
+ * Samples for JitNetworkAccessPolicies Delete.
*/
-public final class CustomEntityStoreAssignmentsListSamples {
+public final class JitNetworkAccessPoliciesDeleteSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/
- * CustomEntityStoreAssignments/customEntityStoreAssignmentListBySubscription_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/
+ * DeleteJitNetworkAccessPolicy_example.json
*/
/**
- * Sample code: List custom entity store assignments in a subscription.
+ * Sample code: Delete a JIT network access policy.
*
* @param manager Entry point to SecurityManager.
*/
- public static void
- listCustomEntityStoreAssignmentsInASubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customEntityStoreAssignments().list(com.azure.core.util.Context.NONE);
+ public static void deleteAJITNetworkAccessPolicy(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.jitNetworkAccessPolicies()
+ .deleteWithResponse("myRg1", "westeurope", "default", com.azure.core.util.Context.NONE);
}
}
```
-### CustomEntityStoreAssignments_ListByResourceGroup
+### JitNetworkAccessPolicies_Get
```java
/**
- * Samples for CustomEntityStoreAssignments ListByResourceGroup.
+ * Samples for JitNetworkAccessPolicies Get.
*/
-public final class CustomEntityStoreAssignmentsListByResourceGroupSamples {
+public final class JitNetworkAccessPoliciesGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/
- * CustomEntityStoreAssignments/customEntityStoreAssignmentListByResourceGroup_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/
+ * GetJitNetworkAccessPolicy_example.json
*/
/**
- * Sample code: List custom entity store assignments in a subscription and a resource group.
+ * Sample code: Get JIT network access policy.
*
* @param manager Entry point to SecurityManager.
*/
- public static void listCustomEntityStoreAssignmentsInASubscriptionAndAResourceGroup(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customEntityStoreAssignments()
- .listByResourceGroup("TestResourceGroup", com.azure.core.util.Context.NONE);
+ public static void getJITNetworkAccessPolicy(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.jitNetworkAccessPolicies()
+ .getWithResponse("myRg1", "westeurope", "default", com.azure.core.util.Context.NONE);
}
}
```
-### CustomRecommendations_CreateOrUpdate
+### JitNetworkAccessPolicies_Initiate
```java
-import com.azure.resourcemanager.security.models.RecommendationSupportedClouds;
-import com.azure.resourcemanager.security.models.SecurityIssue;
-import com.azure.resourcemanager.security.models.SeverityEnum;
+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 CustomRecommendations CreateOrUpdate.
+ * Samples for JitNetworkAccessPolicies Initiate.
*/
-public final class CustomRecommendationsCreateOrUpdateSamples {
+public final class JitNetworkAccessPoliciesInitiateSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * PutBySecurityConnectorCustomRecommendation_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/
+ * InitiateJitNetworkAccessPolicy_example.json
*/
/**
- * Sample code: Create or update custom recommendation over security connector scope.
+ * Sample code: Initiate an action on a JIT network access policy.
*
* @param manager Entry point to SecurityManager.
*/
- public static void createOrUpdateCustomRecommendationOverSecurityConnectorScope(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customRecommendations()
- .define("33e7cc6e-a139-4723-a0e5-76993aee0771")
- .withExistingScope(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector")
- .withQuery(
- "RawEntityMetadata | where Environment == 'GCP' and Identifiers.Type == 'compute.firewalls' | extend IslogConfigEnabled = tobool(Record.logConfig.enable) | extend HealthStatus = iff(IslogConfigEnabled, 'HEALTHY', 'UNHEALTHY')")
- .withCloudProviders(Arrays.asList(RecommendationSupportedClouds.AWS))
- .withSeverity(SeverityEnum.MEDIUM)
- .withSecurityIssue(SecurityIssue.VULNERABILITY)
- .withDisplayName("Password Policy")
- .withDescription("organization passwords policy")
- .withRemediationDescription("Change password policy to...")
- .create();
+ 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"), com.azure.core.util.Context.NONE);
}
+}
+```
+### JitNetworkAccessPolicies_List
+
+```java
+/**
+ * Samples for JitNetworkAccessPolicies List.
+ */
+public final class JitNetworkAccessPoliciesListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * PutBySubscriptionCustomRecommendation_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/
+ * GetJitNetworkAccessPoliciesSubscription_example.json
*/
/**
- * Sample code: Create or update custom recommendation over subscription scope.
+ * Sample code: Get JIT network access policies on a subscription.
*
* @param manager Entry point to SecurityManager.
*/
- public static void createOrUpdateCustomRecommendationOverSubscriptionScope(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customRecommendations()
- .define("33e7cc6e-a139-4723-a0e5-76993aee0771")
- .withExistingScope("subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b")
- .withQuery(
- "RawEntityMetadata | where Environment == 'GCP' and Identifiers.Type == 'compute.firewalls' | extend IslogConfigEnabled = tobool(Record.logConfig.enable) | extend HealthStatus = iff(IslogConfigEnabled, 'HEALTHY', 'UNHEALTHY')")
- .withCloudProviders(Arrays.asList(RecommendationSupportedClouds.AWS))
- .withSeverity(SeverityEnum.MEDIUM)
- .withSecurityIssue(SecurityIssue.VULNERABILITY)
- .withDisplayName("Password Policy")
- .withDescription("organization passwords policy")
- .withRemediationDescription("Change password policy to...")
- .create();
+ public static void
+ getJITNetworkAccessPoliciesOnASubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.jitNetworkAccessPolicies().list(com.azure.core.util.Context.NONE);
}
+}
+```
+### JitNetworkAccessPolicies_ListByRegion
+
+```java
+/**
+ * Samples for JitNetworkAccessPolicies ListByRegion.
+ */
+public final class JitNetworkAccessPoliciesListByRegionSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * PutByManagementGroupCustomRecommendation_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/
+ * GetJitNetworkAccessPoliciesSubscriptionLocation_example.json
*/
/**
- * Sample code: Create or update custom recommendation over management group scope.
+ * Sample code: Get JIT network access policies on a subscription from a security data location.
*
* @param manager Entry point to SecurityManager.
*/
- public static void createOrUpdateCustomRecommendationOverManagementGroupScope(
+ public static void getJITNetworkAccessPoliciesOnASubscriptionFromASecurityDataLocation(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customRecommendations()
- .define("33e7cc6e-a139-4723-a0e5-76993aee0771")
- .withExistingScope("providers/Microsoft.Management/managementGroups/contoso")
- .withQuery(
- "RawEntityMetadata | where Environment == 'GCP' and Identifiers.Type == 'compute.firewalls' | extend IslogConfigEnabled = tobool(Record.logConfig.enable) | extend HealthStatus = iff(IslogConfigEnabled, 'HEALTHY', 'UNHEALTHY')")
- .withCloudProviders(Arrays.asList(RecommendationSupportedClouds.AWS))
- .withSeverity(SeverityEnum.MEDIUM)
- .withSecurityIssue(SecurityIssue.VULNERABILITY)
- .withDisplayName("Password Policy")
- .withDescription("organization passwords policy")
- .withRemediationDescription("Change password policy to...")
- .create();
+ manager.jitNetworkAccessPolicies().listByRegion("westeurope", com.azure.core.util.Context.NONE);
}
}
```
-### CustomRecommendations_Delete
+### JitNetworkAccessPolicies_ListByResourceGroup
```java
/**
- * Samples for CustomRecommendations Delete.
+ * Samples for JitNetworkAccessPolicies ListByResourceGroup.
*/
-public final class CustomRecommendationsDeleteSamples {
+public final class JitNetworkAccessPoliciesListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * DeleteBySecurityConnectorCustomRecommendation_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/
+ * GetJitNetworkAccessPoliciesResourceGroup_example.json
*/
/**
- * Sample code: Delete a custom recommendation over security connector scope.
+ * Sample code: Get JIT network access policies on a resource group.
*
* @param manager Entry point to SecurityManager.
*/
- public static void deleteACustomRecommendationOverSecurityConnectorScope(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customRecommendations()
- .deleteByResourceGroupWithResponse(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
- "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", com.azure.core.util.Context.NONE);
+ public static void
+ getJITNetworkAccessPoliciesOnAResourceGroup(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.jitNetworkAccessPolicies().listByResourceGroup("myRg1", com.azure.core.util.Context.NONE);
}
+}
+```
+
+### JitNetworkAccessPolicies_ListByResourceGroupAndRegion
+```java
+/**
+ * Samples for JitNetworkAccessPolicies ListByResourceGroupAndRegion.
+ */
+public final class JitNetworkAccessPoliciesListByResourceGroupAndRegionSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * DeleteBySubscriptionCustomRecommendation_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/
+ * GetJitNetworkAccessPoliciesResourceGroupLocation_example.json
*/
/**
- * Sample code: Delete a custom recommendation over subscription scope.
+ * 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
- deleteACustomRecommendationOverSubscriptionScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customRecommendations()
- .deleteByResourceGroupWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23",
- "1f3afdf9-d0c9-4c3d-847f-89da613e70a8", com.azure.core.util.Context.NONE);
+ public static void getJITNetworkAccessPoliciesOnAResourceGroupFromASecurityDataLocation(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.jitNetworkAccessPolicies()
+ .listByResourceGroupAndRegion("myRg1", "westeurope", com.azure.core.util.Context.NONE);
}
+}
+```
+
+### Pricings_Delete
+```java
+/**
+ * Samples for Pricings Delete.
+ */
+public final class PricingsDeleteSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * DeleteByManagementGroupCustomRecommendation_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
+ * DeleteResourcePricing_example.json
*/
/**
- * Sample code: Delete a custom recommendation over management group scope.
+ * Sample code: Delete a pricing on resource.
*
* @param manager Entry point to SecurityManager.
*/
- public static void deleteACustomRecommendationOverManagementGroupScope(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customRecommendations()
- .deleteByResourceGroupWithResponse("providers/Microsoft.Management/managementGroups/contoso",
- "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", com.azure.core.util.Context.NONE);
+ public static void deleteAPricingOnResource(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.pricings()
+ .deleteByResourceGroupWithResponse(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/DEMO/providers/Microsoft.Compute/virtualMachines/VM-1",
+ "VirtualMachines", com.azure.core.util.Context.NONE);
}
}
```
-### CustomRecommendations_Get
+### Pricings_Get
```java
/**
- * Samples for CustomRecommendations Get.
+ * Samples for Pricings Get.
*/
-public final class CustomRecommendationsGetSamples {
+public final class PricingsGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * GetByManagementGroupCustomRecommendation_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
+ * GetResourcePricingByNameVirtualMachines_example.json
*/
/**
- * Sample code: Get a custom recommendation over management group scope.
+ * Sample code: Get pricings on resource - VirtualMachines plan.
*
* @param manager Entry point to SecurityManager.
*/
public static void
- getACustomRecommendationOverManagementGroupScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customRecommendations()
- .getWithResponse("providers/Microsoft.Management/managementGroups/contoso",
- "1f3afdf9-d0c9-4c3d-847f-89da613e70a8", com.azure.core.util.Context.NONE);
+ getPricingsOnResourceVirtualMachinesPlan(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.pricings()
+ .getWithResponse(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/DEMO/providers/Microsoft.Compute/virtualMachines/VM-1",
+ "VirtualMachines", com.azure.core.util.Context.NONE);
}
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * GetBySecurityConnectorCustomRecommendation_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
+ * GetPricingByNameCloudPosture_example.json
*/
/**
- * Sample code: Get a custom recommendation over security connector scope.
+ * Sample code: Get pricings on subscription - CloudPosture plan.
*
* @param manager Entry point to SecurityManager.
*/
public static void
- getACustomRecommendationOverSecurityConnectorScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customRecommendations()
- .getWithResponse(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
- "1f3afdf9-d0c9-4c3d-847f-89da613e70a8", com.azure.core.util.Context.NONE);
+ getPricingsOnSubscriptionCloudPosturePlan(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.pricings()
+ .getWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "CloudPosture",
+ com.azure.core.util.Context.NONE);
}
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * GetBySubscriptionCustomRecommendation_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
+ * GetPricingByNameDns_example.json
*/
/**
- * Sample code: Get a custom recommendation over subscription scope.
+ * Sample code: Get pricings on subscription - Dns plan.
*
* @param manager Entry point to SecurityManager.
*/
- public static void
- getACustomRecommendationOverSubscriptionScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customRecommendations()
- .getWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23",
- "1f3afdf9-d0c9-4c3d-847f-89da613e70a8", com.azure.core.util.Context.NONE);
+ public static void getPricingsOnSubscriptionDnsPlan(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.pricings()
+ .getWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "Dns",
+ com.azure.core.util.Context.NONE);
}
-}
-```
-
-### CustomRecommendations_List
-```java
-/**
- * Samples for CustomRecommendations List.
- */
-public final class CustomRecommendationsListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * ListByManagementGroupCustomRecommendations_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
+ * GetPricingByNameContainers_example.json
*/
/**
- * Sample code: List custom recommendations by management group scope.
+ * Sample code: Get pricings on subscription - Containers plan.
*
* @param manager Entry point to SecurityManager.
*/
public static void
- listCustomRecommendationsByManagementGroupScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customRecommendations()
- .list("providers/Microsoft.Management/managementGroups/contoso", com.azure.core.util.Context.NONE);
+ getPricingsOnSubscriptionContainersPlan(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.pricings()
+ .getWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "Containers",
+ com.azure.core.util.Context.NONE);
}
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * ListBySubscriptionCustomRecommendations_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
+ * GetPricingByNameStorageAccounts_example.json
*/
/**
- * Sample code: List custom recommendations by subscription scope.
+ * Sample code: Get pricings on subscription - StorageAccounts plan.
*
* @param manager Entry point to SecurityManager.
*/
public static void
- listCustomRecommendationsBySubscriptionScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customRecommendations()
- .list("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", com.azure.core.util.Context.NONE);
+ getPricingsOnSubscriptionStorageAccountsPlan(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.pricings()
+ .getWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "StorageAccounts",
+ com.azure.core.util.Context.NONE);
}
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * ListBySecurityConnectorCustomRecommendations_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
+ * GetPricingByNameVirtualMachines_example.json
*/
/**
- * Sample code: List custom recommendations by security connector scope.
+ * Sample code: Get pricings on subscription - VirtualMachines plan.
*
* @param manager Entry point to SecurityManager.
*/
public static void
- listCustomRecommendationsBySecurityConnectorScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customRecommendations()
- .list(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
+ getPricingsOnSubscriptionVirtualMachinesPlan(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.pricings()
+ .getWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "VirtualMachines",
com.azure.core.util.Context.NONE);
}
}
```
-### DefenderForStorage_CancelMalwareScan
+### Pricings_List
```java
-import com.azure.resourcemanager.security.models.SettingName;
-
/**
- * Samples for DefenderForStorage CancelMalwareScan.
+ * Samples for Pricings List.
*/
-public final class DefenderForStorageCancelMalwareScanSamples {
+public final class PricingsListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-10-01-preview/examples/DefenderForStorage
- * /CancelMalwareScan_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
+ * ListPricingsWithPlanFilter_example.json
*/
/**
- * Sample code: Cancel a Defender for Storage malware scan for the specified storage resource.
+ * Sample code: Get pricings on subscription with plans filter.
*
* @param manager Entry point to SecurityManager.
*/
- public static void cancelADefenderForStorageMalwareScanForTheSpecifiedStorageResource(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.defenderForStorages()
- .cancelMalwareScanWithResponse(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Storage/storageAccounts/samplestorageaccount",
- SettingName.CURRENT, "latest", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DefenderForStorage_Create
-
-```java
-import com.azure.resourcemanager.security.models.DefenderForStorageSettingProperties;
-import com.azure.resourcemanager.security.models.MalwareScanningProperties;
-import com.azure.resourcemanager.security.models.OnUploadProperties;
-import com.azure.resourcemanager.security.models.SensitiveDataDiscoveryProperties;
-import com.azure.resourcemanager.security.models.SettingName;
-
-/**
- * Samples for DefenderForStorage Create.
- */
-public final class DefenderForStorageCreateSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-10-01-preview/examples/DefenderForStorage
- * /PutDefenderForStorageSettings_example.json
- */
- /**
- * Sample code: Creates or updates the Defender for Storage settings on a specified resource.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void createsOrUpdatesTheDefenderForStorageSettingsOnASpecifiedResource(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.defenderForStorages()
- .define(SettingName.CURRENT)
- .withExistingResourceId(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Storage/storageAccounts/samplestorageaccount")
- .withProperties(new DefenderForStorageSettingProperties().withIsEnabled(true)
- .withMalwareScanning(new MalwareScanningProperties()
- .withOnUpload(new OnUploadProperties().withIsEnabled(true).withCapGBPerMonth(-1))
- .withScanResultsEventGridTopicResourceId(
- "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.EventGrid/topics/sampletopic"))
- .withSensitiveDataDiscovery(new SensitiveDataDiscoveryProperties().withIsEnabled(true))
- .withOverrideSubscriptionLevelSettings(true))
- .create();
+ public static void
+ getPricingsOnSubscriptionWithPlansFilter(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.pricings()
+ .listWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "name in (VirtualMachines,KeyVaults)", com.azure.core.util.Context.NONE);
}
-}
-```
-
-### DefenderForStorage_Get
-```java
-import com.azure.resourcemanager.security.models.SettingName;
-
-/**
- * Samples for DefenderForStorage Get.
- */
-public final class DefenderForStorageGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-10-01-preview/examples/DefenderForStorage
- * /GetDefenderForStorageSettings_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
+ * ListPricings_example.json
*/
/**
- * Sample code: Gets the Defender for Storage settings for the specified resource.
+ * Sample code: Get pricings on subscription.
*
* @param manager Entry point to SecurityManager.
*/
- public static void getsTheDefenderForStorageSettingsForTheSpecifiedResource(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.defenderForStorages()
- .getWithResponse(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Storage/storageAccounts/samplestorageaccount",
- SettingName.CURRENT, com.azure.core.util.Context.NONE);
+ public static void getPricingsOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.pricings()
+ .listWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", null,
+ com.azure.core.util.Context.NONE);
}
-}
-```
-
-### DefenderForStorage_GetMalwareScan
-
-```java
-import com.azure.resourcemanager.security.models.SettingName;
-/**
- * Samples for DefenderForStorage GetMalwareScan.
- */
-public final class DefenderForStorageGetMalwareScanSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-10-01-preview/examples/DefenderForStorage
- * /GetMalwareScan_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
+ * ListResourcePricings_example.json
*/
/**
- * Sample code: Gets the Defender for Storage malware scan for the specified storage resource.
+ * Sample code: Get pricings on resource.
*
* @param manager Entry point to SecurityManager.
*/
- public static void getsTheDefenderForStorageMalwareScanForTheSpecifiedStorageResource(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.defenderForStorages()
- .getMalwareScanWithResponse(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Storage/storageAccounts/samplestorageaccount",
- SettingName.CURRENT, "latest", com.azure.core.util.Context.NONE);
+ public static void getPricingsOnResource(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.pricings()
+ .listWithResponse(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/DEMO/providers/Microsoft.Compute/virtualMachines/VM-1",
+ null, com.azure.core.util.Context.NONE);
}
}
```
-### DefenderForStorage_StartMalwareScan
+### Pricings_Update
```java
-import com.azure.resourcemanager.security.models.SettingName;
+import com.azure.resourcemanager.security.fluent.models.PricingInner;
+import com.azure.resourcemanager.security.models.Enforce;
+import com.azure.resourcemanager.security.models.PricingTier;
/**
- * Samples for DefenderForStorage StartMalwareScan.
+ * Samples for Pricings Update.
*/
-public final class DefenderForStorageStartMalwareScanSamples {
+public final class PricingsUpdateSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-10-01-preview/examples/DefenderForStorage
- * /StartMalwareScan_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
+ * PutPricingByName_example.json
*/
/**
- * Sample code: Initiate a Defender for Storage malware scan for the specified storage account.
+ * Sample code: Update pricing on subscription (example for CloudPosture plan).
*
* @param manager Entry point to SecurityManager.
*/
- public static void initiateADefenderForStorageMalwareScanForTheSpecifiedStorageAccount(
+ public static void updatePricingOnSubscriptionExampleForCloudPosturePlan(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.defenderForStorages()
- .startMalwareScanWithResponse(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Storage/storageAccounts/samplestorageaccount",
- SettingName.CURRENT, com.azure.core.util.Context.NONE);
+ manager.pricings()
+ .updateWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "CloudPosture",
+ new PricingInner().withPricingTier(PricingTier.STANDARD), com.azure.core.util.Context.NONE);
}
-}
-```
-
-### DevOpsConfigurations_CreateOrUpdate
-
-```java
-import com.azure.resourcemanager.security.fluent.models.DevOpsConfigurationInner;
-import com.azure.resourcemanager.security.models.Authorization;
-import com.azure.resourcemanager.security.models.AutoDiscovery;
-import com.azure.resourcemanager.security.models.DevOpsConfigurationProperties;
-import java.util.Arrays;
-/**
- * Samples for DevOpsConfigurations CreateOrUpdate.
- */
-public final class DevOpsConfigurationsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/CreateOrUpdateDevOpsConfigurationsOnboardCurrentAndFuture_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
+ * PutPricingByNamePartialSuccess_example.json
*/
/**
- * Sample code: CreateOrUpdate_DevOpsConfigurations_OnboardCurrentAndFuture.
+ * Sample code: Update pricing on subscription (example for CloudPosture plan) - partial success.
*
* @param manager Entry point to SecurityManager.
*/
- public static void createOrUpdateDevOpsConfigurationsOnboardCurrentAndFuture(
+ public static void updatePricingOnSubscriptionExampleForCloudPosturePlanPartialSuccess(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.devOpsConfigurations()
- .createOrUpdate("myRg", "mySecurityConnectorName",
- new DevOpsConfigurationInner().withProperties(new DevOpsConfigurationProperties()
- .withAuthorization(new Authorization().withCode("fakeTokenPlaceholder"))
- .withAutoDiscovery(AutoDiscovery.ENABLED)),
- com.azure.core.util.Context.NONE);
+ manager.pricings()
+ .updateWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "CloudPosture",
+ new PricingInner().withPricingTier(PricingTier.STANDARD), com.azure.core.util.Context.NONE);
}
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/CreateOrUpdateDevOpsConfigurationsOnboardCurrentOnly_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
+ * PutPricingVMsByName_example.json
*/
/**
- * Sample code: CreateOrUpdate_DevOpsConfigurations_OnboardCurrentOnly.
+ * Sample code: Update pricing on subscription (example for VirtualMachines plan).
*
* @param manager Entry point to SecurityManager.
*/
- public static void createOrUpdateDevOpsConfigurationsOnboardCurrentOnly(
+ public static void updatePricingOnSubscriptionExampleForVirtualMachinesPlan(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.devOpsConfigurations()
- .createOrUpdate("myRg", "mySecurityConnectorName",
- new DevOpsConfigurationInner().withProperties(new DevOpsConfigurationProperties()
- .withAuthorization(new Authorization().withCode("fakeTokenPlaceholder"))
- .withAutoDiscovery(AutoDiscovery.DISABLED)),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/CreateOrUpdateDevOpsConfigurationsOnboardSelected_example.json
- */
- /**
- * Sample code: CreateOrUpdate_DevOpsConfigurations_OnboardSelected.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- createOrUpdateDevOpsConfigurationsOnboardSelected(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.devOpsConfigurations()
- .createOrUpdate("myRg", "mySecurityConnectorName",
- new DevOpsConfigurationInner().withProperties(new DevOpsConfigurationProperties()
- .withAuthorization(new Authorization().withCode("fakeTokenPlaceholder"))
- .withAutoDiscovery(AutoDiscovery.DISABLED)
- .withTopLevelInventoryList(Arrays.asList("org1", "org2"))),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DevOpsConfigurations_Delete
-
-```java
-/**
- * Samples for DevOpsConfigurations Delete.
- */
-public final class DevOpsConfigurationsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/DeleteDevOpsConfigurations_example.json
- */
- /**
- * Sample code: Delete_DevOpsConfigurations.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void deleteDevOpsConfigurations(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.devOpsConfigurations().delete("myRg", "mySecurityConnectorName", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DevOpsConfigurations_Get
-
-```java
-/**
- * Samples for DevOpsConfigurations Get.
- */
-public final class DevOpsConfigurationsGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/GetDevOpsConfigurationsWithCapabilities_example.json
- */
- /**
- * Sample code: Get_DevOpsConfigurations_WithCapabilities.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- getDevOpsConfigurationsWithCapabilities(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.devOpsConfigurations()
- .getWithResponse("myRg", "mySecurityConnectorName", com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/GetDevOpsConfigurations_example.json
- */
- /**
- * Sample code: Get_DevOpsConfigurations.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getDevOpsConfigurations(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.devOpsConfigurations()
- .getWithResponse("myRg", "mySecurityConnectorName", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DevOpsConfigurations_List
-
-```java
-/**
- * Samples for DevOpsConfigurations List.
- */
-public final class DevOpsConfigurationsListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/ListDevOpsConfigurations_example.json
- */
- /**
- * Sample code: List_DevOpsConfigurations.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void listDevOpsConfigurations(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.devOpsConfigurations().list("myRg", "mySecurityConnectorName", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DevOpsConfigurations_Update
-
-```java
-import com.azure.resourcemanager.security.fluent.models.DevOpsConfigurationInner;
-import com.azure.resourcemanager.security.models.AutoDiscovery;
-import com.azure.resourcemanager.security.models.DevOpsConfigurationProperties;
-
-/**
- * Samples for DevOpsConfigurations Update.
- */
-public final class DevOpsConfigurationsUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/UpdateDevOpsConfigurations_example.json
- */
- /**
- * Sample code: Update_DevOpsConfigurations.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void updateDevOpsConfigurations(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.devOpsConfigurations()
- .update("myRg", "mySecurityConnectorName",
- new DevOpsConfigurationInner()
- .withProperties(new DevOpsConfigurationProperties().withAutoDiscovery(AutoDiscovery.ENABLED)),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DevOpsOperationResults_Get
-
-```java
-/**
- * Samples for DevOpsOperationResults Get.
- */
-public final class DevOpsOperationResultsGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/GetDevOpsOperationResultsFailed_example.json
- */
- /**
- * Sample code: Get_DevOpsOperationResults_Failed.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getDevOpsOperationResultsFailed(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.devOpsOperationResults()
- .getWithResponse("myRg", "mySecurityConnectorName", "8d4caace-e7b3-4b3e-af99-73f76829ebcf",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/GetDevOpsOperationResultsSucceeded_example.json
- */
- /**
- * Sample code: Get_DevOpsOperationResults_Succeeded.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getDevOpsOperationResultsSucceeded(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.devOpsOperationResults()
- .getWithResponse("myRg", "mySecurityConnectorName", "4e826cf1-5c36-4808-a7d2-fb4f5170978b",
+ manager.pricings()
+ .updateWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "VirtualMachines",
+ new PricingInner().withPricingTier(PricingTier.STANDARD).withSubPlan("P2").withEnforce(Enforce.TRUE),
com.azure.core.util.Context.NONE);
}
-}
-```
-
-### DevOpsPolicies_Get
-
-```java
-/**
- * Samples for DevOpsPolicies Get.
- */
-public final class DevOpsPoliciesGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/GetDevOpsPolicies_example.json
- */
- /**
- * Sample code: Get_DevOpsPolicies.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getDevOpsPolicies(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.devOpsPolicies()
- .getWithResponse("myRg", "mySecurityConnectorName", "myDevOpsPolicy", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DevOpsPolicies_List
-
-```java
-/**
- * Samples for DevOpsPolicies List.
- */
-public final class DevOpsPoliciesListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/ListDevOpsPolicies_example.json
- */
- /**
- * Sample code: List_DevOpsPolicies.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void listDevOpsPolicies(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.devOpsPolicies().list("myRg", "mySecurityConnectorName", null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DevOpsPolicyAssignments_CreateOrUpdate
-
-```java
-import com.azure.resourcemanager.security.models.DescendantBehavior;
-import com.azure.resourcemanager.security.models.DevOpsPolicyAssignmentProperties;
-import com.azure.resourcemanager.security.models.DevOpsPolicyDescriptor;
-import com.azure.resourcemanager.security.models.DevOpsPolicyType;
-
-/**
- * Samples for DevOpsPolicyAssignments CreateOrUpdate.
- */
-public final class DevOpsPolicyAssignmentsCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/CreateOrUpdateDevOpsPolicyAssignments_example.json
- */
- /**
- * Sample code: CreateOrUpdate_DevOpsPolicyAssignments.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- createOrUpdateDevOpsPolicyAssignments(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.devOpsPolicyAssignments()
- .define("5ec87f43-62d8-437b-8f46-4c8d4032cf6d")
- .withExistingSecurityConnector("myRg", "mySecurityConnectorName")
- .withProperties(new DevOpsPolicyAssignmentProperties().withResourceId(
- "/subscriptions/0806e1cd-cfda-4ff8-b99c-2b0af42cffd3/resourcegroups/myRg/providers/Microsoft.Security/securityConnectors/mySecurityConnectorName/devops/default/azureDevOpsOrgs/Contoso")
- .withDescendantBehavior(DescendantBehavior.OVERRIDE)
- .withPolicy(new DevOpsPolicyDescriptor().withPolicyName("myDevOpsPolicy")
- .withPolicyId("00000000-0000-0000-0000-000000000000")
- .withPolicyVersion("1.0")
- .withPolicyType(DevOpsPolicyType.PIPELINE)))
- .create();
- }
-}
-```
-
-### DevOpsPolicyAssignments_Delete
-
-```java
-/**
- * Samples for DevOpsPolicyAssignments Delete.
- */
-public final class DevOpsPolicyAssignmentsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/DeleteDevOpsPolicyAssignments_example.json
- */
- /**
- * Sample code: Delete_DevOpsPolicyAssignments.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void deleteDevOpsPolicyAssignments(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.devOpsPolicyAssignments()
- .delete("myRg", "mySecurityConnectorName", "5ec87f43-62d8-437b-8f46-4c8d4032cf6d",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DevOpsPolicyAssignments_Get
-
-```java
-/**
- * Samples for DevOpsPolicyAssignments Get.
- */
-public final class DevOpsPolicyAssignmentsGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/GetDevOpsPolicyAssignments_example.json
- */
- /**
- * Sample code: Get_DevOpsPolicyAssignments.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getDevOpsPolicyAssignments(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.devOpsPolicyAssignments()
- .getWithResponse("myRg", "mySecurityConnectorName", "5ec87f43-62d8-437b-8f46-4c8d4032cf6d",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DevOpsPolicyAssignments_List
-
-```java
-/**
- * Samples for DevOpsPolicyAssignments List.
- */
-public final class DevOpsPolicyAssignmentsListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/ListDevOpsPolicyAssignments_example.json
- */
- /**
- * Sample code: List_DevOpsPolicyAssignments.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void listDevOpsPolicyAssignments(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.devOpsPolicyAssignments()
- .list("myRg", "mySecurityConnectorName", null, null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DevOpsPolicyAssignments_Update
-
-```java
-import com.azure.resourcemanager.security.models.DescendantBehavior;
-import com.azure.resourcemanager.security.models.DevOpsPolicyAssignment;
-import com.azure.resourcemanager.security.models.DevOpsPolicyAssignmentProperties;
-import com.azure.resourcemanager.security.models.DevOpsPolicyDescriptor;
-import com.azure.resourcemanager.security.models.DevOpsPolicyType;
-
-/**
- * Samples for DevOpsPolicyAssignments Update.
- */
-public final class DevOpsPolicyAssignmentsUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/UpdateDevOpsPolicyAssignments_example.json
- */
- /**
- * Sample code: Update_DevOpsPolicyAssignments.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void updateDevOpsPolicyAssignments(com.azure.resourcemanager.security.SecurityManager manager) {
- DevOpsPolicyAssignment resource = manager.devOpsPolicyAssignments()
- .getWithResponse("myRg", "mySecurityConnectorName", "5ec87f43-62d8-437b-8f46-4c8d4032cf6d",
- com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withProperties(new DevOpsPolicyAssignmentProperties().withResourceId(
- "/subscriptions/0806e1cd-cfda-4ff8-b99c-2b0af42cffd3/resourcegroups/myRg/providers/Microsoft.Security/securityConnectors/mySecurityConnectorName/devops/default/azureDevOpsOrgs/Contoso")
- .withDescendantBehavior(DescendantBehavior.OVERRIDE)
- .withPolicy(new DevOpsPolicyDescriptor().withPolicyName("myDevOpsPolicy")
- .withPolicyId("00000000-0000-0000-0000-000000000000")
- .withPolicyVersion("1.0")
- .withPolicyType(DevOpsPolicyType.PIPELINE)))
- .apply();
- }
-}
-```
-
-### 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
-/**
- * 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()
- .deleteByResourceGroupWithResponse(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Devices/iotHubs/sampleiothub",
- "samplesecuritygroup", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DeviceSecurityGroups_Get
-
-```java
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DeviceSecurityGroups_List
-
-```java
-/**
- * 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",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DiscoveredSecuritySolutions_Get
-
-```java
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DiscoveredSecuritySolutions_List
-
-```java
-/**
- * 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(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DiscoveredSecuritySolutions_ListByHomeRegion
-
-```java
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ExternalSecuritySolutions_Get
-
-```java
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ExternalSecuritySolutions_List
-
-```java
-/**
- * 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(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ExternalSecuritySolutions_ListByHomeRegion
-
-```java
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### GitHubOwners_Get
-
-```java
-/**
- * Samples for GitHubOwners Get.
- */
-public final class GitHubOwnersGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/GetGitHubOwners_example.json
- */
- /**
- * Sample code: Get_GitHubOwners.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getGitHubOwners(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.gitHubOwners()
- .getWithResponse("myRg", "mySecurityConnectorName", "myGitHubOwner", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### GitHubOwners_List
-
-```java
-/**
- * Samples for GitHubOwners List.
- */
-public final class GitHubOwnersListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/ListGitHubOwners_example.json
- */
- /**
- * Sample code: List_GitHubOwners.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void listGitHubOwners(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.gitHubOwners().list("myRg", "mySecurityConnectorName", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### GitHubOwners_ListAvailable
-
-```java
-/**
- * Samples for GitHubOwners ListAvailable.
- */
-public final class GitHubOwnersListAvailableSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/ListAvailableGitHubOwners_example.json
- */
- /**
- * Sample code: ListAvailable_GitHubOwners.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void listAvailableGitHubOwners(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.gitHubOwners()
- .listAvailableWithResponse("myRg", "mySecurityConnectorName", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### GitHubRepos_Get
-
-```java
-/**
- * Samples for GitHubRepos Get.
- */
-public final class GitHubReposGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/GetGitHubRepos_example.json
- */
- /**
- * Sample code: Get_GitHubRepos.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getGitHubRepos(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.gitHubRepos()
- .getWithResponse("myRg", "mySecurityConnectorName", "myGitHubOwner", "myGitHubRepo",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### GitHubRepos_List
-
-```java
-/**
- * Samples for GitHubRepos List.
- */
-public final class GitHubReposListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/ListGitHubRepos_example.json
- */
- /**
- * Sample code: List_GitHubRepos.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void listGitHubRepos(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.gitHubRepos()
- .list("myRg", "mySecurityConnectorName", "myGitHubOwner", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### GitLabGroups_Get
-
-```java
-/**
- * Samples for GitLabGroups Get.
- */
-public final class GitLabGroupsGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/GetGitLabGroups_example.json
- */
- /**
- * Sample code: Get_GitLabGroups.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getGitLabGroups(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.gitLabGroups()
- .getWithResponse("myRg", "mySecurityConnectorName", "myGitLabGroup$mySubGroup",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### GitLabGroups_List
-
-```java
-/**
- * Samples for GitLabGroups List.
- */
-public final class GitLabGroupsListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/ListGitLabGroups_example.json
- */
- /**
- * Sample code: List_GitLabGroups.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void listGitLabGroups(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.gitLabGroups().list("myRg", "mySecurityConnectorName", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### GitLabGroups_ListAvailable
-
-```java
-/**
- * Samples for GitLabGroups ListAvailable.
- */
-public final class GitLabGroupsListAvailableSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/ListAvailableGitLabGroups_example.json
- */
- /**
- * Sample code: ListAvailable_GitLabGroups.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void listAvailableGitLabGroups(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.gitLabGroups()
- .listAvailableWithResponse("myRg", "mySecurityConnectorName", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### GitLabProjects_Get
-
-```java
-/**
- * Samples for GitLabProjects Get.
- */
-public final class GitLabProjectsGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/GetGitLabProjects_example.json
- */
- /**
- * Sample code: Get_GitLabProjects.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getGitLabProjects(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.gitLabProjects()
- .getWithResponse("myRg", "mySecurityConnectorName", "myGitLabGroup$mySubGroup", "myGitLabProject",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### GitLabProjects_List
-
-```java
-/**
- * Samples for GitLabProjects List.
- */
-public final class GitLabProjectsListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/ListGitLabProjects_example.json
- */
- /**
- * Sample code: List_GitLabProjects.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void listGitLabProjects(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.gitLabProjects()
- .list("myRg", "mySecurityConnectorName", "myGitLabGroup$mySubGroup", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### GitLabSubgroups_List
-
-```java
-/**
- * Samples for GitLabSubgroups List.
- */
-public final class GitLabSubgroupsListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-05-15-preview/examples/
- * SecurityConnectorsDevOps/ListGitLabSubgroups_example.json
- */
- /**
- * Sample code: List_GitLabSubgroups.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void listGitLabSubgroups(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.gitLabSubgroups()
- .listWithResponse("myRg", "mySecurityConnectorName", "myGitLabGroup", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### GovernanceAssignments_CreateOrUpdate
-
-```java
-import com.azure.resourcemanager.security.models.GovernanceAssignmentAdditionalData;
-import com.azure.resourcemanager.security.models.GovernanceEmailNotification;
-import com.azure.resourcemanager.security.models.RemediationEta;
-import java.time.OffsetDateTime;
-
-/**
- * Samples for GovernanceAssignments CreateOrUpdate.
- */
-public final class GovernanceAssignmentsCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/
- * GovernanceAssignments/PutGovernanceAssignment_example.json
- */
- /**
- * Sample code: Create Governance assignment.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void createGovernanceAssignment(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.governanceAssignments()
- .define("6634ff9f-127b-4bf2-8e6e-b1737f5e789c")
- .withExistingAssessment(
- "subscriptions/c32e05d9-7207-4e22-bdf4-4f7d9c72e5fd/resourceGroups/compute_servers/providers/Microsoft.Compute/virtualMachines/win2012",
- "6b9421dd-5555-2251-9b3d-2be58e2f82cd")
- .withOwner("user@contoso.com")
- .withRemediationDueDate(OffsetDateTime.parse("2022-01-07T13:00:00.0000000Z"))
- .withRemediationEta(new RemediationEta().withEta(OffsetDateTime.parse("2022-01-08T13:00:00.0000000Z"))
- .withJustification("Justification of ETA"))
- .withIsGracePeriod(true)
- .withGovernanceEmailNotification(
- new GovernanceEmailNotification().withDisableManagerEmailNotification(false)
- .withDisableOwnerEmailNotification(false))
- .withAdditionalData(new GovernanceAssignmentAdditionalData().withTicketNumber(123123)
- .withTicketLink("https://snow.com")
- .withTicketStatus("Active"))
- .create();
- }
-}
-```
-
-### GovernanceAssignments_Delete
-
-```java
-/**
- * Samples for GovernanceAssignments Delete.
- */
-public final class GovernanceAssignmentsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/
- * GovernanceAssignments/DeleteGovernanceAssignment_example.json
- */
- /**
- * Sample code: Delete security assignment.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void deleteSecurityAssignment(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.governanceAssignments()
- .deleteWithResponse(
- "subscriptions/c32e05d9-7207-4e22-bdf4-4f7d9c72e5fd/resourceGroups/compute_servers/providers/Microsoft.Compute/virtualMachines/win2012",
- "6b9421dd-5555-2251-9b3d-2be58e2f82cd", "6634ff9f-127b-4bf2-8e6e-b1737f5e789c",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### GovernanceAssignments_Get
-
-```java
-/**
- * Samples for GovernanceAssignments Get.
- */
-public final class GovernanceAssignmentsGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/
- * GovernanceAssignments/GetGovernanceAssignment_example.json
- */
- /**
- * Sample code: Get governanceAssignment by specific governanceAssignmentKey.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getGovernanceAssignmentBySpecificGovernanceAssignmentKey(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.governanceAssignments()
- .getWithResponse(
- "subscriptions/c32e05d9-7207-4e22-bdf4-4f7d9c72e5fd/resourceGroups/compute_servers/providers/Microsoft.Compute/virtualMachines/win2012",
- "6b9421dd-5555-2251-9b3d-2be58e2f82cd", "6634ff9f-127b-4bf2-8e6e-b1737f5e789c",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### GovernanceAssignments_List
-
-```java
-/**
- * Samples for GovernanceAssignments List.
- */
-public final class GovernanceAssignmentsListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/
- * GovernanceAssignments/ListGovernanceAssignments_example.json
- */
- /**
- * Sample code: List governance assignments.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void listGovernanceAssignments(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.governanceAssignments()
- .list("subscriptions/c32e05d9-7207-4e22-bdf4-4f7d9c72e5fd", "6b9421dd-5555-2251-9b3d-2be58e2f82cd",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### GovernanceRules_CreateOrUpdate
-
-```java
-import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.security.models.GovernanceRuleEmailNotification;
-import com.azure.resourcemanager.security.models.GovernanceRuleOwnerSource;
-import com.azure.resourcemanager.security.models.GovernanceRuleOwnerSourceType;
-import com.azure.resourcemanager.security.models.GovernanceRuleSourceResourceType;
-import com.azure.resourcemanager.security.models.GovernanceRuleType;
-import java.io.IOException;
-import java.util.Arrays;
-
-/**
- * Samples for GovernanceRules CreateOrUpdate.
- */
-public final class GovernanceRulesCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/
- * PutManagementGroupGovernanceRule_example.json
- */
- /**
- * Sample code: Create or update governance rule over management group scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void createOrUpdateGovernanceRuleOverManagementGroupScope(
- com.azure.resourcemanager.security.SecurityManager manager) throws IOException {
- manager.governanceRules()
- .define("ad9a8e26-29d9-4829-bb30-e597a58cdbb8")
- .withExistingScope("providers/Microsoft.Management/managementGroups/contoso")
- .withDisplayName("Management group rule")
- .withDescription("A rule for a management group")
- .withRemediationTimeframe("7.00:00:00")
- .withIsGracePeriod(true)
- .withRulePriority(200)
- .withIsDisabled(false)
- .withRuleType(GovernanceRuleType.INTEGRATED)
- .withSourceResourceType(GovernanceRuleSourceResourceType.ASSESSMENTS)
- .withExcludedScopes(Arrays.asList("/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23"))
- .withConditionSets(Arrays.asList(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize(
- "{\"conditions\":[{\"operator\":\"In\",\"property\":\"$.AssessmentKey\",\"value\":\"[\\\"b1cd27e0-4ecc-4246-939f-49c426d9d72f\\\", \\\"fe83f80b-073d-4ccf-93d9-6797eb870201\\\"]\"}]}",
- Object.class, SerializerEncoding.JSON)))
- .withOwnerSource(new GovernanceRuleOwnerSource().withType(GovernanceRuleOwnerSourceType.MANUALLY)
- .withValue("user@contoso.com"))
- .withGovernanceEmailNotification(
- new GovernanceRuleEmailNotification().withDisableManagerEmailNotification(true)
- .withDisableOwnerEmailNotification(false))
- .create();
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/
- * PutSecurityConnectorGovernanceRule_example.json
- */
- /**
- * Sample code: Create or update governance rule over security connector scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void createOrUpdateGovernanceRuleOverSecurityConnectorScope(
- com.azure.resourcemanager.security.SecurityManager manager) throws IOException {
- manager.governanceRules()
- .define("ad9a8e26-29d9-4829-bb30-e597a58cdbb8")
- .withExistingScope(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector")
- .withDisplayName("GCP Admin's rule")
- .withDescription("A rule on critical GCP recommendations")
- .withRemediationTimeframe("7.00:00:00")
- .withIsGracePeriod(true)
- .withRulePriority(200)
- .withIsDisabled(false)
- .withRuleType(GovernanceRuleType.INTEGRATED)
- .withSourceResourceType(GovernanceRuleSourceResourceType.ASSESSMENTS)
- .withConditionSets(Arrays.asList(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize(
- "{\"conditions\":[{\"operator\":\"In\",\"property\":\"$.AssessmentKey\",\"value\":\"[\\\"b1cd27e0-4ecc-4246-939f-49c426d9d72f\\\", \\\"fe83f80b-073d-4ccf-93d9-6797eb870201\\\"]\"}]}",
- Object.class, SerializerEncoding.JSON)))
- .withOwnerSource(new GovernanceRuleOwnerSource().withType(GovernanceRuleOwnerSourceType.MANUALLY)
- .withValue("user@contoso.com"))
- .withGovernanceEmailNotification(
- new GovernanceRuleEmailNotification().withDisableManagerEmailNotification(true)
- .withDisableOwnerEmailNotification(false))
- .create();
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/
- * PutGovernanceRule_example.json
- */
- /**
- * Sample code: Create or update governance rule over subscription scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void createOrUpdateGovernanceRuleOverSubscriptionScope(
- com.azure.resourcemanager.security.SecurityManager manager) throws IOException {
- manager.governanceRules()
- .define("ad9a8e26-29d9-4829-bb30-e597a58cdbb8")
- .withExistingScope("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23")
- .withDisplayName("Admin's rule")
- .withDescription("A rule for critical recommendations")
- .withRemediationTimeframe("7.00:00:00")
- .withIsGracePeriod(true)
- .withRulePriority(200)
- .withIsDisabled(false)
- .withRuleType(GovernanceRuleType.INTEGRATED)
- .withSourceResourceType(GovernanceRuleSourceResourceType.ASSESSMENTS)
- .withConditionSets(Arrays.asList(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize(
- "{\"conditions\":[{\"operator\":\"In\",\"property\":\"$.AssessmentKey\",\"value\":\"[\\\"b1cd27e0-4ecc-4246-939f-49c426d9d72f\\\", \\\"fe83f80b-073d-4ccf-93d9-6797eb870201\\\"]\"}]}",
- Object.class, SerializerEncoding.JSON)))
- .withOwnerSource(new GovernanceRuleOwnerSource().withType(GovernanceRuleOwnerSourceType.MANUALLY)
- .withValue("user@contoso.com"))
- .withGovernanceEmailNotification(
- new GovernanceRuleEmailNotification().withDisableManagerEmailNotification(false)
- .withDisableOwnerEmailNotification(false))
- .create();
- }
-}
-```
-
-### GovernanceRules_Delete
-
-```java
-/**
- * Samples for GovernanceRules Delete.
- */
-public final class GovernanceRulesDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/
- * DeleteManagementGroupGovernanceRule_example.json
- */
- /**
- * Sample code: Delete a Governance rule over management group scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- deleteAGovernanceRuleOverManagementGroupScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.governanceRules()
- .delete("providers/Microsoft.Management/managementGroups/contoso", "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/
- * DeleteGovernanceRule_example.json
- */
- /**
- * Sample code: Delete a Governance rule over subscription scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- deleteAGovernanceRuleOverSubscriptionScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.governanceRules()
- .delete("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/
- * DeleteSecurityConnectorGovernanceRule_example.json
- */
- /**
- * Sample code: Delete a Governance rule over security connector scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- deleteAGovernanceRuleOverSecurityConnectorScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.governanceRules()
- .delete(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
- "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### GovernanceRules_Execute
-
-```java
-
-/**
- * Samples for GovernanceRules Execute.
- */
-public final class GovernanceRulesExecuteSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/
- * PostSecurityConnectorGovernanceRule_example.json
- */
- /**
- * Sample code: Execute governance rule over security connector scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- executeGovernanceRuleOverSecurityConnectorScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.governanceRules()
- .execute(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
- "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", null, com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/
- * PostGovernanceRule_example.json
- */
- /**
- * Sample code: Execute Governance rule over subscription scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- executeGovernanceRuleOverSubscriptionScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.governanceRules()
- .execute("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", null,
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/
- * PostManagementGroupGovernanceRule_example.json
- */
- /**
- * Sample code: Execute governance rule over management group scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- executeGovernanceRuleOverManagementGroupScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.governanceRules()
- .execute("providers/Microsoft.Management/managementGroups/contoso", "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
- null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### GovernanceRules_Get
-
-```java
-/**
- * Samples for GovernanceRules Get.
- */
-public final class GovernanceRulesGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/
- * GetManagementGroupGovernanceRule_example.json
- */
- /**
- * Sample code: Get a governance rule over management group scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- getAGovernanceRuleOverManagementGroupScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.governanceRules()
- .getWithResponse("providers/Microsoft.Management/managementGroups/contoso",
- "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/
- * GetGovernanceRule_example.json
- */
- /**
- * Sample code: Get a governance rule over subscription scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- getAGovernanceRuleOverSubscriptionScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.governanceRules()
- .getWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23",
- "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/
- * GetSecurityConnectorGovernanceRule_example.json
- */
- /**
- * Sample code: Get a governance rule over security connector scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- getAGovernanceRuleOverSecurityConnectorScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.governanceRules()
- .getWithResponse(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
- "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### GovernanceRules_List
-
-```java
-/**
- * Samples for GovernanceRules List.
- */
-public final class GovernanceRulesListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/
- * ListBySubscriptionGovernanceRules_example.json
- */
- /**
- * Sample code: List governance rules by subscription scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- listGovernanceRulesBySubscriptionScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.governanceRules()
- .list("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/
- * ListBySecurityConnectorGovernanceRules_example.json
- */
- /**
- * Sample code: List governance rules by security connector scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- listGovernanceRulesBySecurityConnectorScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.governanceRules()
- .list(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/
- * ListByManagementGroupGovernanceRules_example.json
- */
- /**
- * Sample code: List governance rules by management group scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- listGovernanceRulesByManagementGroupScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.governanceRules()
- .list("providers/Microsoft.Management/managementGroups/contoso", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### GovernanceRules_OperationResults
-
-```java
-/**
- * Samples for GovernanceRules OperationResults.
- */
-public final class GovernanceRulesOperationResultsSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/
- * GetManagementGroupGovernanceRuleExecuteStatus_example.json
- */
- /**
- * Sample code: Get governance rules long run operation result over management group.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getGovernanceRulesLongRunOperationResultOverManagementGroup(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.governanceRules()
- .operationResultsWithResponse("providers/Microsoft.Management/managementGroups/contoso",
- "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", "58b33f4f-c8c7-4b01-99cc-d437db4d40dd",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/
- * GetSecurityConnectorGovernanceRuleExecuteStatus_example.json
- */
- /**
- * Sample code: Get governance rules long run operation result over security connector.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getGovernanceRulesLongRunOperationResultOverSecurityConnector(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.governanceRules()
- .operationResultsWithResponse(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
- "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", "58b33f4f-c8c7-4b01-99cc-d437db4d40dd",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/
- * GetGovernanceRuleExecuteStatus_example.json
- */
- /**
- * Sample code: Get governance rules long run operation result over subscription.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getGovernanceRulesLongRunOperationResultOverSubscription(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.governanceRules()
- .operationResultsWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23",
- "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", "58b33f4f-c8c7-4b01-99cc-d437db4d40dd",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### HealthReports_Get
-
-```java
-/**
- * Samples for HealthReports Get.
- */
-public final class HealthReportsGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-05-01-preview/examples/HealthReports/
- * GetHealthReports_example.json
- */
- /**
- * Sample code: Get health report of resource.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getHealthReportOfResource(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.healthReports()
- .getWithResponse(
- "subscriptions/a1efb6ca-fbc5-4782-9aaa-5c7daded1ce2/resourcegroups/E2E-IBB0WX/providers/Microsoft.Security/securityconnectors/AwsConnectorAllOfferings",
- "909c629a-bf39-4521-8e4f-10b443a0bc02", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### HealthReports_List
-
-```java
-/**
- * Samples for HealthReports List.
- */
-public final class HealthReportsListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-05-01-preview/examples/HealthReports/
- * ListHealthReports_example.json
- */
- /**
- * Sample code: List health reports.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void listHealthReports(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.healthReports()
- .list("subscriptions/a1efb6ca-fbc5-4782-9aaa-5c7daded1ce2", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### InformationProtectionPolicies_CreateOrUpdate
-
-```java
-import com.azure.resourcemanager.security.models.InformationProtectionKeyword;
-import com.azure.resourcemanager.security.models.InformationProtectionPolicyName;
-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(InformationProtectionPolicyName.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();
- }
-
- // Use "Map.of" if available
- @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.resourcemanager.security.models.InformationProtectionPolicyName;
-
-/**
- * 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",
- InformationProtectionPolicyName.CUSTOM, com.azure.core.util.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",
- InformationProtectionPolicyName.EFFECTIVE, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### InformationProtectionPolicies_List
-
-```java
-/**
- * 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",
- com.azure.core.util.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();
- }
-
- // Use "Map.of" if available
- @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
-/**
- * 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()
- .deleteByResourceGroupWithResponse("MyGroup", "default", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### IotSecuritySolution_GetByResourceGroup
-
-```java
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### IotSecuritySolution_List
-
-```java
-/**
- * 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, com.azure.core.util.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\")",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### IotSecuritySolution_ListByResourceGroup
-
-```java
-/**
- * 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\")",
- com.azure.core.util.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, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### IotSecuritySolution_Update
-
-```java
-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", com.azure.core.util.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();
- }
-
- // Use "Map.of" if available
- @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
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### IotSecuritySolutionAnalytics_List
-
-```java
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### IotSecuritySolutionsAnalyticsAggregatedAlert_Dismiss
-
-```java
-/**
- * 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",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### IotSecuritySolutionsAnalyticsAggregatedAlert_Get
-
-```java
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### IotSecuritySolutionsAnalyticsAggregatedAlert_List
-
-```java
-/**
- * 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, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### IotSecuritySolutionsAnalyticsRecommendation_Get
-
-```java
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### IotSecuritySolutionsAnalyticsRecommendation_List
-
-```java
-/**
- * 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, com.azure.core.util.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
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### JitNetworkAccessPolicies_Get
-
-```java
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### JitNetworkAccessPolicies_Initiate
-
-```java
-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"), com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### JitNetworkAccessPolicies_List
-
-```java
-/**
- * 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(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### JitNetworkAccessPolicies_ListByRegion
-
-```java
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### JitNetworkAccessPolicies_ListByResourceGroup
-
-```java
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### JitNetworkAccessPolicies_ListByResourceGroupAndRegion
-
-```java
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Locations_Get
-
-```java
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Locations_List
-
-```java
-/**
- * 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(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### MdeOnboardings_Get
-
-```java
-/**
- * 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(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### MdeOnboardings_List
-
-```java
-/**
- * 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(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Operations_List
-
-```java
-/**
- * Samples for Operations List.
- */
-public final class OperationsListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-10-01-preview/examples/Operations/
- * ListOperations_example.json
- */
- /**
- * Sample code: List the operations for the Microsoft.Security (Microsoft Defender for Cloud) resource provider.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void listTheOperationsForTheMicrosoftSecurityMicrosoftDefenderForCloudResourceProvider(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.operations().list(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Pricings_Delete
-
-```java
-/**
- * Samples for Pricings Delete.
- */
-public final class PricingsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
- * DeleteResourcePricing_example.json
- */
- /**
- * Sample code: Delete a pricing on resource.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void deleteAPricingOnResource(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.pricings()
- .deleteByResourceGroupWithResponse(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/DEMO/providers/Microsoft.Compute/virtualMachines/VM-1",
- "VirtualMachines", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Pricings_Get
-
-```java
-/**
- * Samples for Pricings Get.
- */
-public final class PricingsGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
- * GetResourcePricingByNameVirtualMachines_example.json
- */
- /**
- * Sample code: Get pricings on resource - VirtualMachines plan.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- getPricingsOnResourceVirtualMachinesPlan(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.pricings()
- .getWithResponse(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/DEMO/providers/Microsoft.Compute/virtualMachines/VM-1",
- "VirtualMachines", com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
- * GetPricingByNameCloudPosture_example.json
- */
- /**
- * Sample code: Get pricings on subscription - CloudPosture plan.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- getPricingsOnSubscriptionCloudPosturePlan(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.pricings()
- .getWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "CloudPosture",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
- * GetPricingByNameDns_example.json
- */
- /**
- * Sample code: Get pricings on subscription - Dns plan.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getPricingsOnSubscriptionDnsPlan(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.pricings()
- .getWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "Dns",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
- * GetPricingByNameContainers_example.json
- */
- /**
- * Sample code: Get pricings on subscription - Containers plan.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- getPricingsOnSubscriptionContainersPlan(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.pricings()
- .getWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "Containers",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
- * GetPricingByNameStorageAccounts_example.json
- */
- /**
- * Sample code: Get pricings on subscription - StorageAccounts plan.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- getPricingsOnSubscriptionStorageAccountsPlan(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.pricings()
- .getWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "StorageAccounts",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
- * GetPricingByNameVirtualMachines_example.json
- */
- /**
- * Sample code: Get pricings on subscription - VirtualMachines plan.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- getPricingsOnSubscriptionVirtualMachinesPlan(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.pricings()
- .getWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "VirtualMachines",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Pricings_List
-
-```java
-/**
- * Samples for Pricings List.
- */
-public final class PricingsListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
- * ListPricingsWithPlanFilter_example.json
- */
- /**
- * Sample code: Get pricings on subscription with plans filter.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- getPricingsOnSubscriptionWithPlansFilter(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.pricings()
- .listWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23",
- "name in (VirtualMachines,KeyVaults)", com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-01-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("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", null,
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
- * ListResourcePricings_example.json
- */
- /**
- * Sample code: Get pricings on resource.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getPricingsOnResource(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.pricings()
- .listWithResponse(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/DEMO/providers/Microsoft.Compute/virtualMachines/VM-1",
- null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Pricings_Update
-
-```java
-import com.azure.resourcemanager.security.fluent.models.PricingInner;
-import com.azure.resourcemanager.security.models.Enforce;
-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/2024-01-01/examples/Pricings/
- * PutPricingByName_example.json
- */
- /**
- * Sample code: Update pricing on subscription (example for CloudPosture plan).
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void updatePricingOnSubscriptionExampleForCloudPosturePlan(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.pricings()
- .updateWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "CloudPosture",
- new PricingInner().withPricingTier(PricingTier.STANDARD), com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
- * PutPricingByNamePartialSuccess_example.json
- */
- /**
- * Sample code: Update pricing on subscription (example for CloudPosture plan) - partial success.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void updatePricingOnSubscriptionExampleForCloudPosturePlanPartialSuccess(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.pricings()
- .updateWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "CloudPosture",
- new PricingInner().withPricingTier(PricingTier.STANDARD), com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
- * PutPricingVMsByName_example.json
- */
- /**
- * Sample code: Update pricing on subscription (example for VirtualMachines plan).
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void updatePricingOnSubscriptionExampleForVirtualMachinesPlan(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.pricings()
- .updateWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "VirtualMachines",
- new PricingInner().withPricingTier(PricingTier.STANDARD).withSubPlan("P2").withEnforce(Enforce.TRUE),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
- * PutResourcePricingByNameVirtualMachines_example.json
- */
- /**
- * Sample code: Update pricing on resource (example for VirtualMachines plan).
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void updatePricingOnResourceExampleForVirtualMachinesPlan(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.pricings()
- .updateWithResponse(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/DEMO/providers/Microsoft.Compute/virtualMachines/VM-1",
- "virtualMachines", new PricingInner().withPricingTier(PricingTier.STANDARD).withSubPlan("P1"),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### RegulatoryComplianceAssessments_Get
-
-```java
-/**
- * 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",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### RegulatoryComplianceAssessments_List
-
-```java
-/**
- * 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, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### RegulatoryComplianceControls_Get
-
-```java
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### RegulatoryComplianceControls_List
-
-```java
-/**
- * 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, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### RegulatoryComplianceStandards_Get
-
-```java
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### RegulatoryComplianceStandards_List
-
-```java
-/**
- * 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, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecureScoreControlDefinitions_List
-
-```java
-/**
- * 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(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecureScoreControlDefinitions_ListBySubscription
-
-```java
-/**
- * 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(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecureScoreControls_List
-
-```java
-
-/**
- * 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, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecureScoreControls_ListBySecureScore
-
-```java
-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, com.azure.core.util.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, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecureScores_Get
-
-```java
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecureScores_List
-
-```java
-/**
- * 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(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecurityConnectorApplicationOperation_CreateOrUpdate
-
-```java
-import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.security.fluent.models.ApplicationInner;
-import com.azure.resourcemanager.security.models.ApplicationSourceResourceType;
-import java.io.IOException;
-import java.util.Arrays;
-
-/**
- * Samples for SecurityConnectorApplicationOperation CreateOrUpdate.
- */
-public final class SecurityConnectorApplicationOperationCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-07-01-preview/examples/Applications/
- * PutSecurityConnectorApplication_example.json
- */
- /**
- * Sample code: Create Application.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void createApplication(com.azure.resourcemanager.security.SecurityManager manager)
- throws IOException {
- manager.securityConnectorApplicationOperations()
- .createOrUpdateWithResponse("gcpResourceGroup", "gcpconnector", "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
- new ApplicationInner().withDisplayName("GCP Admin's application")
- .withDescription("An application on critical GCP recommendations")
- .withSourceResourceType(ApplicationSourceResourceType.ASSESSMENTS)
- .withConditionSets(Arrays.asList(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize(
- "{\"conditions\":[{\"operator\":\"contains\",\"property\":\"$.Id\",\"value\":\"-prod-\"}]}",
- Object.class, SerializerEncoding.JSON))),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecurityConnectorApplicationOperation_Delete
-
-```java
-/**
- * Samples for SecurityConnectorApplicationOperation Delete.
- */
-public final class SecurityConnectorApplicationOperationDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-07-01-preview/examples/Applications/
- * DeleteSecurityConnectorApplication_example.json
- */
- /**
- * Sample code: Delete security Application.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void deleteSecurityApplication(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityConnectorApplicationOperations()
- .deleteWithResponse("gcpResourceGroup", "gcpconnector", "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecurityConnectorApplicationOperation_Get
-
-```java
-/**
- * Samples for SecurityConnectorApplicationOperation Get.
- */
-public final class SecurityConnectorApplicationOperationGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-07-01-preview/examples/Applications/
- * GetSecurityConnectorApplication_example.json
- */
- /**
- * Sample code: Get security applications by specific applicationId.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- getSecurityApplicationsBySpecificApplicationId(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityConnectorApplicationOperations()
- .getWithResponse("gcpResourceGroup", "gcpconnector", "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecurityConnectorApplications_List
-
-```java
-/**
- * Samples for SecurityConnectorApplications List.
- */
-public final class SecurityConnectorApplicationsListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2022-07-01-preview/examples/Applications/
- * ListBySecurityConnectorApplications_example.json
- */
- /**
- * Sample code: List security applications by security connector level scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void listSecurityApplicationsBySecurityConnectorLevelScope(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityConnectorApplications()
- .list("gcpResourceGroup", "gcpconnector", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecurityConnectors_CreateOrUpdate
-
-```java
-import com.azure.resourcemanager.security.models.AwsEnvironmentData;
-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/2024-08-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")
- .withEnvironmentName(CloudName.AWS)
- .withOfferings(Arrays.asList(
- new CspmMonitorAwsOffering().withNativeCloudConnection(new CspmMonitorAwsOfferingNativeCloudConnection()
- .withCloudRoleArn("arn:aws:iam::00000000:role/ASCMonitor"))))
- .withEnvironmentData(new AwsEnvironmentData().withScanInterval(4L))
- .create();
- }
-
- // Use "Map.of" if available
- @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
-/**
- * Samples for SecurityConnectors Delete.
- */
-public final class SecurityConnectorsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-08-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()
- .deleteByResourceGroupWithResponse("myRg", "mySecurityConnectorName", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecurityConnectors_GetByResourceGroup
-
-```java
-/**
- * Samples for SecurityConnectors GetByResourceGroup.
- */
-public final class SecurityConnectorsGetByResourceGroupSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-08-01-preview/examples/SecurityConnectors
- * /GetSecurityConnectorSingleResource_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",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecurityConnectors_List
-
-```java
-/**
- * Samples for SecurityConnectors List.
- */
-public final class SecurityConnectorsListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-08-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(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecurityConnectors_ListByResourceGroup
-
-```java
-/**
- * Samples for SecurityConnectors ListByResourceGroup.
- */
-public final class SecurityConnectorsListByResourceGroupSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2024-08-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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecurityConnectors_Update
-
-```java
-import com.azure.resourcemanager.security.models.AwsEnvironmentData;
-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/2024-08-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",
- com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withTags(mapOf())
- .withHierarchyIdentifier("exampleHierarchyId")
- .withEnvironmentName(CloudName.AWS)
- .withOfferings(Arrays.asList(
- new CspmMonitorAwsOffering().withNativeCloudConnection(new CspmMonitorAwsOfferingNativeCloudConnection()
- .withCloudRoleArn("arn:aws:iam::00000000:role/ASCMonitor"))))
- .withEnvironmentData(new AwsEnvironmentData())
- .apply();
- }
-
- // Use "Map.of" if available
- @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.MinimalRiskLevel;
-import com.azure.resourcemanager.security.models.MinimalSeverity;
-import com.azure.resourcemanager.security.models.NotificationsSourceAlert;
-import com.azure.resourcemanager.security.models.NotificationsSourceAttackPath;
-import com.azure.resourcemanager.security.models.SecurityContactName;
-import com.azure.resourcemanager.security.models.SecurityContactPropertiesNotificationsByRole;
-import com.azure.resourcemanager.security.models.SecurityContactRole;
-import com.azure.resourcemanager.security.models.State;
-import java.util.Arrays;
-
-/**
- * Samples for SecurityContacts Create.
- */
-public final class SecurityContactsCreateSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-12-01-preview/examples/SecurityContacts/
- * CreateSecurityContact_example.json
- */
- /**
- * Sample code: Create security contact data.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void createSecurityContactData(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityContacts()
- .define(SecurityContactName.DEFAULT)
- .withEmails("john@contoso.com;jane@contoso.com")
- .withPhone("(214)275-4038")
- .withIsEnabled(true)
- .withNotificationsSources(
- Arrays.asList(new NotificationsSourceAttackPath().withMinimalRiskLevel(MinimalRiskLevel.CRITICAL),
- new NotificationsSourceAlert().withMinimalSeverity(MinimalSeverity.MEDIUM)))
- .withNotificationsByRole(
- new SecurityContactPropertiesNotificationsByRole().withState(State.fromString("On"))
- .withRoles(Arrays.asList(SecurityContactRole.OWNER)))
- .create();
- }
-}
-```
-
-### SecurityContacts_Delete
-
-```java
-import com.azure.resourcemanager.security.models.SecurityContactName;
-
-/**
- * Samples for SecurityContacts Delete.
- */
-public final class SecurityContactsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-12-01-preview/examples/SecurityContacts/
- * DeleteSecurityContact_example.json
- */
- /**
- * Sample code: Deletes a security contact data.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void deletesASecurityContactData(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityContacts().deleteWithResponse(SecurityContactName.DEFAULT, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecurityContacts_Get
-
-```java
-import com.azure.resourcemanager.security.models.SecurityContactName;
-
-/**
- * Samples for SecurityContacts Get.
- */
-public final class SecurityContactsGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-12-01-preview/examples/SecurityContacts/
- * GetSecurityContact_example.json
- */
- /**
- * Sample code: Get a security contact.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getASecurityContact(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityContacts().getWithResponse(SecurityContactName.DEFAULT, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecurityContacts_List
-
-```java
-/**
- * Samples for SecurityContacts List.
- */
-public final class SecurityContactsListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-12-01-preview/examples/SecurityContacts/
- * GetSecurityContactsSubscription_example.json
- */
- /**
- * Sample code: List security contact data.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void listSecurityContactData(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityContacts().list(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecurityOperators_CreateOrUpdate
-
-```java
-/**
- * Samples for SecurityOperators CreateOrUpdate.
- */
-public final class SecurityOperatorsCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-01-01-preview/examples/SecurityOperators/
- * PutSecurityOperatorByName_example.json
- */
- /**
- * Sample code: Create a security operator on the given scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- createASecurityOperatorOnTheGivenScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityOperators()
- .createOrUpdateWithResponse("CloudPosture", "DefenderCSPMSecurityOperator",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecurityOperators_Delete
-
-```java
-/**
- * Samples for SecurityOperators Delete.
- */
-public final class SecurityOperatorsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-01-01-preview/examples/SecurityOperators/
- * DeleteSecurityOperatorByName_example.json
- */
- /**
- * Sample code: Delete SecurityOperator on subscription.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- deleteSecurityOperatorOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityOperators()
- .deleteByResourceGroupWithResponse("CloudPosture", "DefenderCSPMSecurityOperator",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecurityOperators_Get
-
-```java
-/**
- * Samples for SecurityOperators Get.
- */
-public final class SecurityOperatorsGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-01-01-preview/examples/SecurityOperators/
- * GetSecurityOperatorByName_example.json
- */
- /**
- * Sample code: Get a specific security operator by scope and securityOperatorName.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getASpecificSecurityOperatorByScopeAndSecurityOperatorName(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityOperators()
- .getWithResponse("CloudPosture", "DefenderCSPMSecurityOperator", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecurityOperators_List
-
-```java
-/**
- * Samples for SecurityOperators List.
- */
-public final class SecurityOperatorsListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-01-01-preview/examples/SecurityOperators/
- * ListSecurityOperators_example.json
- */
- /**
- * Sample code: List SecurityOperators.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void listSecurityOperators(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityOperators().listWithResponse("CloudPosture", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecuritySolutions_Get
-
-```java
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecuritySolutions_List
-
-```java
-/**
- * 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(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecuritySolutionsReferenceData_List
-
-```java
-/**
- * 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(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecuritySolutionsReferenceData_ListByHomeRegion
-
-```java
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecurityStandards_CreateOrUpdate
-
-```java
-import com.azure.resourcemanager.security.models.PartialAssessmentProperties;
-import com.azure.resourcemanager.security.models.StandardSupportedCloud;
-import java.util.Arrays;
-
-/**
- * Samples for SecurityStandards CreateOrUpdate.
- */
-public final class SecurityStandardsCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
- * PutBySubscriptionSecurityStandard_example.json
- */
- /**
- * Sample code: Create or update security standard over subscription scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void createOrUpdateSecurityStandardOverSubscriptionScope(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityStandards()
- .define("8bb8be0a-6010-4789-812f-e4d661c4ed0e")
- .withExistingScope("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23")
- .withDisplayName("Azure Test Security Standard 1")
- .withDescription("description of Azure Test Security Standard 1")
- .withAssessments(Arrays.asList(new PartialAssessmentProperties().withAssessmentKey("fakeTokenPlaceholder"),
- new PartialAssessmentProperties().withAssessmentKey("fakeTokenPlaceholder")))
- .withCloudProviders(Arrays.asList(StandardSupportedCloud.GCP))
- .withPolicySetDefinitionId(
- "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Authorization/policySetDefinitions/patchorchestration-applicationversions")
- .create();
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
- * PutBySecurityConnectorSecurityStandard_example.json
- */
- /**
- * Sample code: Create or update security standard over security connector scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void createOrUpdateSecurityStandardOverSecurityConnectorScope(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityStandards()
- .define("8bb8be0a-6010-4789-812f-e4d661c4ed0e")
- .withExistingScope(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector")
- .withDisplayName("Azure Test Security Standard 1")
- .withDescription("description of Azure Test Security Standard 1")
- .withAssessments(Arrays.asList(new PartialAssessmentProperties().withAssessmentKey("fakeTokenPlaceholder"),
- new PartialAssessmentProperties().withAssessmentKey("fakeTokenPlaceholder")))
- .withCloudProviders(Arrays.asList(StandardSupportedCloud.GCP))
- .create();
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
- * PutByManagementGroupSecurityStandard_example.json
- */
- /**
- * Sample code: Create or update security standard over management group scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void createOrUpdateSecurityStandardOverManagementGroupScope(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityStandards()
- .define("8bb8be0a-6010-4789-812f-e4d661c4ed0e")
- .withExistingScope("providers/Microsoft.Management/managementGroups/contoso")
- .withDisplayName("Azure Test Security Standard 1")
- .withDescription("description of Azure Test Security Standard 1")
- .withAssessments(Arrays.asList(new PartialAssessmentProperties().withAssessmentKey("fakeTokenPlaceholder"),
- new PartialAssessmentProperties().withAssessmentKey("fakeTokenPlaceholder")))
- .withCloudProviders(Arrays.asList(StandardSupportedCloud.GCP))
- .withPolicySetDefinitionId(
- "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Authorization/policySetDefinitions/patchorchestration-applicationversions")
- .create();
- }
-}
-```
-
-### SecurityStandards_Delete
-
-```java
-/**
- * Samples for SecurityStandards Delete.
- */
-public final class SecurityStandardsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
- * DeleteBySecurityConnectorSecurityStandard_example.json
- */
- /**
- * Sample code: Delete a security standard over security connector scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- deleteASecurityStandardOverSecurityConnectorScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityStandards()
- .deleteByResourceGroupWithResponse(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
- "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
- * DeleteByManagementGroupSecurityStandard_example.json
- */
- /**
- * Sample code: Delete a security standard over management group scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- deleteASecurityStandardOverManagementGroupScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityStandards()
- .deleteByResourceGroupWithResponse("providers/Microsoft.Management/managementGroups/contoso",
- "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
- * DeleteBySubscriptionSecurityStandard_example.json
- */
- /**
- * Sample code: Delete a security standard over subscription scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- deleteASecurityStandardOverSubscriptionScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityStandards()
- .deleteByResourceGroupWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23",
- "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecurityStandards_Get
-
-```java
-/**
- * Samples for SecurityStandards Get.
- */
-public final class SecurityStandardsGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
- * GetBySecurityConnectorSecurityStandard_example.json
- */
- /**
- * Sample code: Get a security standard over security connector scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- getASecurityStandardOverSecurityConnectorScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityStandards()
- .getWithResponse(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
- "1f3afdf9-d0c9-4c3d-847f-89da613e70a8", com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
- * GetByManagementGroupSecurityStandard_example.json
- */
- /**
- * Sample code: Get a security standard over management group scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- getASecurityStandardOverManagementGroupScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityStandards()
- .getWithResponse("providers/Microsoft.Management/managementGroups/contoso",
- "1f3afdf9-d0c9-4c3d-847f-89da613e70a8", com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
- * GetBySubscriptionSecurityStandard_example.json
- */
- /**
- * Sample code: Get a security standard over subscription scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- getASecurityStandardOverSubscriptionScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityStandards()
- .getWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23",
- "1f3afdf9-d0c9-4c3d-847f-89da613e70a8", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SecurityStandards_List
-
-```java
-/**
- * Samples for SecurityStandards List.
- */
-public final class SecurityStandardsListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
- * ListByManagementGroupSecurityStandards_example.json
- */
- /**
- * Sample code: List security standards by management group scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- listSecurityStandardsByManagementGroupScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityStandards()
- .list("providers/Microsoft.Management/managementGroups/contoso", com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
- * ListBySubscriptionSecurityStandards_example.json
- */
- /**
- * Sample code: List security standards by subscription scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- listSecurityStandardsBySubscriptionScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityStandards()
- .list("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
- * ListBySecurityConnectorSecurityStandards_example.json
- */
- /**
- * Sample code: List security standards by security connector scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- listSecurityStandardsBySecurityConnectorScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityStandards()
- .list(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SensitivitySettings_CreateOrUpdate
-
-```java
-import com.azure.resourcemanager.security.models.UpdateSensitivitySettingsRequest;
-import java.util.Arrays;
-import java.util.UUID;
-
-/**
- * Samples for SensitivitySettings CreateOrUpdate.
- */
-public final class SensitivitySettingsCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/
- * SensitivitySettings/PutSensitivitySettings_example.json
- */
- /**
- * Sample code: Update sensitivity settings.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void updateSensitivitySettings(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.sensitivitySettings()
- .createOrUpdateWithResponse(
- new UpdateSensitivitySettingsRequest()
- .withSensitiveInfoTypesIds(Arrays.asList(UUID.fromString("f2f8a7a1-28c0-404b-9ab4-30a0a7af18cb"),
- UUID.fromString("b452f22b-f87d-4f48-8490-ecf0873325b5"),
- UUID.fromString("d59ee8b6-2618-404b-a5e7-aa377cd67543")))
- .withSensitivityThresholdLabelOrder(2.0F)
- .withSensitivityThresholdLabelId(UUID.fromString("f2f8a7a1-28c0-404b-9ab4-30a0a7af18cb")),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SensitivitySettings_Get
-
-```java
-/**
- * Samples for SensitivitySettings Get.
- */
-public final class SensitivitySettingsGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/
- * SensitivitySettings/GetSensitivitySettings_example.json
- */
- /**
- * Sample code: Get sensitivity settings.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getSensitivitySettings(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.sensitivitySettings().getWithResponse(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SensitivitySettings_List
-
-```java
-/**
- * Samples for SensitivitySettings List.
- */
-public final class SensitivitySettingsListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/
- * SensitivitySettings/GetSensitivitySettingsList_example.json
- */
- /**
- * Sample code: Get sensitivity settings list.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getSensitivitySettingsList(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.sensitivitySettings().listWithResponse(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ServerVulnerabilityAssessment_CreateOrUpdate
-
-```java
-/**
- * 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",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ServerVulnerabilityAssessment_Delete
-
-```java
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ServerVulnerabilityAssessment_Get
-
-```java
-/**
- * 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", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ServerVulnerabilityAssessment_ListByExtendedResource
-
-```java
-/**
- * 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",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ServerVulnerabilityAssessmentsSettings_CreateOrUpdate
-
-```java
-import com.azure.resourcemanager.security.models.AzureServersSetting;
-import com.azure.resourcemanager.security.models.ServerVulnerabilityAssessmentsAzureSettingSelectedProvider;
-import com.azure.resourcemanager.security.models.ServerVulnerabilityAssessmentsSettingKindName;
-
-/**
- * Samples for ServerVulnerabilityAssessmentsSettings CreateOrUpdate.
- */
-public final class ServerVulnerabilityAssessmentsSettingsCreateOrUpdateSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-05-01/examples/
- * ServerVulnerabilityAssessmentsSettings/PutServerVulnerabilityAssessmentsSetting_example.json
- */
- /**
- * Sample code: Set a server vulnerability assessments setting of the kind settingKind on the subscription.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void setAServerVulnerabilityAssessmentsSettingOfTheKindSettingKindOnTheSubscription(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.serverVulnerabilityAssessmentsSettings()
- .createOrUpdateWithResponse(ServerVulnerabilityAssessmentsSettingKindName.AZURE_SERVERS_SETTING,
- new AzureServersSetting()
- .withSelectedProvider(ServerVulnerabilityAssessmentsAzureSettingSelectedProvider.MDE_TVM),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ServerVulnerabilityAssessmentsSettings_Delete
-
-```java
-import com.azure.resourcemanager.security.models.ServerVulnerabilityAssessmentsSettingKindName;
-/**
- * Samples for ServerVulnerabilityAssessmentsSettings Delete.
- */
-public final class ServerVulnerabilityAssessmentsSettingsDeleteSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-05-01/examples/
- * ServerVulnerabilityAssessmentsSettings/DeleteServerVulnerabilityAssessmentsSetting_example.json
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
+ * PutResourcePricingByNameVirtualMachines_example.json
*/
/**
- * Sample code: Delete the server vulnerability assessments setting of the kind settingKind from the subscription.
+ * Sample code: Update pricing on resource (example for VirtualMachines plan).
*
* @param manager Entry point to SecurityManager.
*/
- public static void deleteTheServerVulnerabilityAssessmentsSettingOfTheKindSettingKindFromTheSubscription(
+ public static void updatePricingOnResourceExampleForVirtualMachinesPlan(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.serverVulnerabilityAssessmentsSettings()
- .deleteWithResponse(ServerVulnerabilityAssessmentsSettingKindName.AZURE_SERVERS_SETTING,
+ manager.pricings()
+ .updateWithResponse(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/DEMO/providers/Microsoft.Compute/virtualMachines/VM-1",
+ "virtualMachines", new PricingInner().withPricingTier(PricingTier.STANDARD).withSubPlan("P1"),
com.azure.core.util.Context.NONE);
}
}
```
-### ServerVulnerabilityAssessmentsSettings_Get
+### SecureScoreControlDefinitions_List
```java
-import com.azure.resourcemanager.security.models.ServerVulnerabilityAssessmentsSettingKindName;
-
/**
- * Samples for ServerVulnerabilityAssessmentsSettings Get.
+ * Samples for SecureScoreControlDefinitions List.
*/
-public final class ServerVulnerabilityAssessmentsSettingsGetSamples {
+public final class SecureScoreControlDefinitionsListSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-05-01/examples/
- * ServerVulnerabilityAssessmentsSettings/GetServerVulnerabilityAssessmentsSetting_example.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/
+ * secureScoreControlDefinitions/ListSecureScoreControlDefinitions_example.json
*/
/**
- * Sample code: Get the server vulnerability assessments setting of the kind settingKind that is set on the
- * subscription.
+ * Sample code: List security controls definition.
*
* @param manager Entry point to SecurityManager.
*/
- public static void getTheServerVulnerabilityAssessmentsSettingOfTheKindSettingKindThatIsSetOnTheSubscription(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.serverVulnerabilityAssessmentsSettings()
- .getWithResponse(ServerVulnerabilityAssessmentsSettingKindName.AZURE_SERVERS_SETTING,
- com.azure.core.util.Context.NONE);
+ public static void listSecurityControlsDefinition(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.secureScoreControlDefinitions().list(com.azure.core.util.Context.NONE);
}
}
```
-### ServerVulnerabilityAssessmentsSettings_List
+### SecureScoreControlDefinitions_ListBySubscription
```java
/**
- * Samples for ServerVulnerabilityAssessmentsSettings List.
+ * Samples for SecureScoreControlDefinitions ListBySubscription.
*/
-public final class ServerVulnerabilityAssessmentsSettingsListSamples {
+public final class SecureScoreControlDefinitionsListBySubscriptionSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-05-01/examples/
- * ServerVulnerabilityAssessmentsSettings/ListServerVulnerabilityAssessmentsSettings_example.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/
+ * secureScoreControlDefinitions/ListSecureScoreControlDefinitions_subscription_example.json
*/
/**
- * Sample code: List the server vulnerability assessments settings set on the subscription.
+ * Sample code: List security controls definition by subscription.
*
* @param manager Entry point to SecurityManager.
*/
- public static void listTheServerVulnerabilityAssessmentsSettingsSetOnTheSubscription(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.serverVulnerabilityAssessmentsSettings().list(com.azure.core.util.Context.NONE);
+ public static void
+ listSecurityControlsDefinitionBySubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.secureScoreControlDefinitions().listBySubscription(com.azure.core.util.Context.NONE);
}
}
```
-### Settings_Get
+### SecureScoreControls_List
```java
-import com.azure.resourcemanager.security.models.SettingNameAutoGenerated;
/**
- * Samples for Settings Get.
+ * Samples for SecureScoreControls List.
*/
-public final class SettingsGetSamples {
+public final class SecureScoreControlsListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2022-05-01/examples/Settings/GetSetting_example
- * .json
+ * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/secureScores/
+ * ListSecureScoreControls_example.json
*/
/**
- * Sample code: Get a setting on subscription.
+ * Sample code: List all secure scores controls.
*
* @param manager Entry point to SecurityManager.
*/
- public static void getASettingOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.settings().getWithResponse(SettingNameAutoGenerated.WDATP, com.azure.core.util.Context.NONE);
+ public static void listAllSecureScoresControls(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.secureScoreControls().list(null, com.azure.core.util.Context.NONE);
}
}
```
-### Settings_List
+### SecureScoreControls_ListBySecureScore
```java
+import com.azure.resourcemanager.security.models.ExpandControlsEnum;
+
/**
- * Samples for Settings List.
+ * Samples for SecureScoreControls ListBySecureScore.
*/
-public final class SettingsListSamples {
+public final class SecureScoreControlsListBySecureScoreSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2022-05-01/examples/Settings/
- * GetSettings_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/secureScores/
+ * ListSecureScoreControlsForNameWithExpand_builtin_example.json
*/
/**
- * Sample code: Get settings of subscription.
+ * 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 getSettingsOfSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.settings().list(com.azure.core.util.Context.NONE);
+ public static void getSecurityControlsAndTheirCurrentScoreForTheSpecifiedInitiativeWithTheExpandParameter(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.secureScoreControls()
+ .listBySecureScore("ascScore", ExpandControlsEnum.DEFINITION, com.azure.core.util.Context.NONE);
}
-}
-```
-
-### Settings_Update
-
-```java
-import com.azure.resourcemanager.security.models.DataExportSettings;
-import com.azure.resourcemanager.security.models.SettingNameAutoGenerated;
-/**
- * Samples for Settings Update.
- */
-public final class SettingsUpdateSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2022-05-01/examples/Settings/
- * UpdateSetting_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/secureScores/
+ * ListSecureScoreControlsForName_builtin_example.json
*/
/**
- * Sample code: Update a setting for subscription.
+ * Sample code: Get security controls and their current score for the specified initiative.
*
* @param manager Entry point to SecurityManager.
*/
- public static void updateASettingForSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.settings()
- .updateWithResponse(SettingNameAutoGenerated.WDATP, new DataExportSettings().withEnabled(true),
- com.azure.core.util.Context.NONE);
+ public static void getSecurityControlsAndTheirCurrentScoreForTheSpecifiedInitiative(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.secureScoreControls().listBySecureScore("ascScore", null, com.azure.core.util.Context.NONE);
}
}
```
-### SoftwareInventories_Get
+### SecureScores_Get
```java
/**
- * Samples for SoftwareInventories Get.
+ * Samples for SecureScores Get.
*/
-public final class SoftwareInventoriesGetSamples {
+public final class SecureScoresGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2021-05-01-preview/examples/
- * SoftwareInventories/GetSoftware_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/secureScores/
+ * GetSecureScoresSingle_example.json
*/
/**
- * Sample code: Gets a single software data of the virtual machine.
+ * Sample code: Get single secure score.
*
* @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", com.azure.core.util.Context.NONE);
+ public static void getSingleSecureScore(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.secureScores().getWithResponse("ascScore", com.azure.core.util.Context.NONE);
}
}
```
-### SoftwareInventories_List
+### SecureScores_List
```java
/**
- * Samples for SoftwareInventories List.
+ * Samples for SecureScores List.
*/
-public final class SoftwareInventoriesListSamples {
+public final class SecureScoresListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2021-05-01-preview/examples/
- * SoftwareInventories/ListBySubscriptionSoftwareInventories_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/secureScores/
+ * ListSecureScores_example.json
*/
/**
- * Sample code: Gets the software inventory of all virtual machines in the subscriptions.
+ * Sample code: List secure scores.
*
* @param manager Entry point to SecurityManager.
*/
- public static void getsTheSoftwareInventoryOfAllVirtualMachinesInTheSubscriptions(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.softwareInventories().list(com.azure.core.util.Context.NONE);
+ public static void listSecureScores(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.secureScores().list(com.azure.core.util.Context.NONE);
}
}
```
-### SoftwareInventories_ListByExtendedResource
+### SecuritySolutions_Get
```java
/**
- * Samples for SoftwareInventories ListByExtendedResource.
+ * Samples for SecuritySolutions Get.
*/
-public final class SoftwareInventoriesListByExtendedResourceSamples {
+public final class SecuritySolutionsGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2021-05-01-preview/examples/
- * SoftwareInventories/ListByExtendedResourceSoftwareInventories_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/SecuritySolutions/
+ * GetSecuritySolutionsResourceGroupLocation_example.json
*/
/**
- * Sample code: Gets the software inventory of the virtual machine.
+ * Sample code: Get a security solution from a security data location.
*
* @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",
- com.azure.core.util.Context.NONE);
+ getASecuritySolutionFromASecurityDataLocation(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securitySolutions()
+ .getWithResponse("myRg2", "centralus", "paloalto7", com.azure.core.util.Context.NONE);
}
}
```
-### SqlVulnerabilityAssessmentBaselineRules_Add
+### SecuritySolutions_List
```java
-import com.azure.resourcemanager.security.models.RulesResultsInput;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-
/**
- * Samples for SqlVulnerabilityAssessmentBaselineRules Add.
+ * Samples for SecuritySolutions List.
*/
-public final class SqlVulnerabilityAssessmentBaselineRulesAddSamples {
+public final class SecuritySolutionsListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
- * sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_Add.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/SecuritySolutions/
+ * GetSecuritySolutionsSubscription_example.json
*/
/**
- * Sample code: Create a baseline for all rules.
+ * Sample code: Get security solutions.
*
* @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")))),
- com.azure.core.util.Context.NONE);
+ public static void getSecuritySolutions(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securitySolutions().list(com.azure.core.util.Context.NONE);
}
+}
+```
+
+### SecuritySolutionsReferenceData_List
+```java
+/**
+ * Samples for SecuritySolutionsReferenceData List.
+ */
+public final class SecuritySolutionsReferenceDataListSamples {
/*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
- * sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_AddLatest.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/
+ * SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscription_example.json
*/
/**
- * Sample code: Create a baseline for all rules using the latest scan results.
+ * Sample code: Get security solutions.
*
* @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()), com.azure.core.util.Context.NONE);
- }
-
- // Use "Map.of" if available
- @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;
+ public static void getSecuritySolutions(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securitySolutionsReferenceDatas().listWithResponse(com.azure.core.util.Context.NONE);
}
}
```
-### SqlVulnerabilityAssessmentBaselineRules_CreateOrUpdate
+### SecuritySolutionsReferenceData_ListByHomeRegion
```java
-import java.util.Arrays;
-
/**
- * Samples for SqlVulnerabilityAssessmentBaselineRules CreateOrUpdate.
+ * Samples for SecuritySolutionsReferenceData ListByHomeRegion.
*/
-public final class SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateSamples {
+public final class SecuritySolutionsReferenceDataListByHomeRegionSamples {
/*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
- * sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_PutLatest.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/
+ * SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscriptionLocation_example.json
*/
/**
- * Sample code: Create a baseline using the latest scan results.
+ * Sample code: Get security solutions from a security data location.
*
* @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/2023-02-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();
+ getSecuritySolutionsFromASecurityDataLocation(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securitySolutionsReferenceDatas()
+ .listByHomeRegionWithResponse("westcentralus", com.azure.core.util.Context.NONE);
}
}
```
-### SqlVulnerabilityAssessmentBaselineRules_Delete
+### SecurityStandards_CreateOrUpdate
```java
+import com.azure.resourcemanager.security.models.PartialAssessmentProperties;
+import com.azure.resourcemanager.security.models.StandardSupportedCloud;
+import java.util.Arrays;
+
/**
- * Samples for SqlVulnerabilityAssessmentBaselineRules Delete.
+ * Samples for SecurityStandards CreateOrUpdate.
*/
-public final class SqlVulnerabilityAssessmentBaselineRulesDeleteSamples {
+public final class SecurityStandardsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
- * sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_Delete.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
+ * PutBySubscriptionSecurityStandard_example.json
*/
/**
- * Sample code: Delete the baseline.
+ * Sample code: Create or update security standard over subscription scope.
*
* @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",
- com.azure.core.util.Context.NONE);
+ public static void createOrUpdateSecurityStandardOverSubscriptionScope(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securityStandards()
+ .define("8bb8be0a-6010-4789-812f-e4d661c4ed0e")
+ .withExistingScope("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23")
+ .withDisplayName("Azure Test Security Standard 1")
+ .withDescription("description of Azure Test Security Standard 1")
+ .withAssessments(Arrays.asList(new PartialAssessmentProperties().withAssessmentKey("fakeTokenPlaceholder"),
+ new PartialAssessmentProperties().withAssessmentKey("fakeTokenPlaceholder")))
+ .withCloudProviders(Arrays.asList(StandardSupportedCloud.GCP))
+ .withPolicySetDefinitionId(
+ "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Authorization/policySetDefinitions/patchorchestration-applicationversions")
+ .create();
}
-}
-```
-### SqlVulnerabilityAssessmentBaselineRules_Get
-
-```java
-/**
- * Samples for SqlVulnerabilityAssessmentBaselineRules Get.
- */
-public final class SqlVulnerabilityAssessmentBaselineRulesGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
- * sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_Get.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
+ * PutBySecurityConnectorSecurityStandard_example.json
*/
/**
- * Sample code: Get the baseline.
+ * Sample code: Create or update security standard over security connector scope.
*
* @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",
- com.azure.core.util.Context.NONE);
+ public static void createOrUpdateSecurityStandardOverSecurityConnectorScope(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securityStandards()
+ .define("8bb8be0a-6010-4789-812f-e4d661c4ed0e")
+ .withExistingScope(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector")
+ .withDisplayName("Azure Test Security Standard 1")
+ .withDescription("description of Azure Test Security Standard 1")
+ .withAssessments(Arrays.asList(new PartialAssessmentProperties().withAssessmentKey("fakeTokenPlaceholder"),
+ new PartialAssessmentProperties().withAssessmentKey("fakeTokenPlaceholder")))
+ .withCloudProviders(Arrays.asList(StandardSupportedCloud.GCP))
+ .create();
}
-}
-```
-### SqlVulnerabilityAssessmentBaselineRules_List
-
-```java
-/**
- * Samples for SqlVulnerabilityAssessmentBaselineRules List.
- */
-public final class SqlVulnerabilityAssessmentBaselineRulesListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
- * sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_List.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
+ * PutByManagementGroupSecurityStandard_example.json
*/
/**
- * Sample code: List baseline for all rules.
+ * Sample code: Create or update security standard over management group scope.
*
* @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",
- com.azure.core.util.Context.NONE);
+ public static void createOrUpdateSecurityStandardOverManagementGroupScope(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securityStandards()
+ .define("8bb8be0a-6010-4789-812f-e4d661c4ed0e")
+ .withExistingScope("providers/Microsoft.Management/managementGroups/contoso")
+ .withDisplayName("Azure Test Security Standard 1")
+ .withDescription("description of Azure Test Security Standard 1")
+ .withAssessments(Arrays.asList(new PartialAssessmentProperties().withAssessmentKey("fakeTokenPlaceholder"),
+ new PartialAssessmentProperties().withAssessmentKey("fakeTokenPlaceholder")))
+ .withCloudProviders(Arrays.asList(StandardSupportedCloud.GCP))
+ .withPolicySetDefinitionId(
+ "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Authorization/policySetDefinitions/patchorchestration-applicationversions")
+ .create();
}
}
```
-### SqlVulnerabilityAssessmentScanResults_Get
+### SecurityStandards_Delete
```java
/**
- * Samples for SqlVulnerabilityAssessmentScanResults Get.
+ * Samples for SecurityStandards Delete.
*/
-public final class SqlVulnerabilityAssessmentScanResultsGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-02-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",
- com.azure.core.util.Context.NONE);
- }
-
+public final class SecurityStandardsDeleteSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
- * sqlVulnerabilityAssessmentsScanResultsOperations/ArcMachineScanResults_GetLatest.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
+ * DeleteBySecurityConnectorSecurityStandard_example.json
*/
/**
- * Sample code: Get scan details of the latest scan record.
+ * Sample code: Delete a security standard over security connector scope.
*
* @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",
- com.azure.core.util.Context.NONE);
+ public static void
+ deleteASecurityStandardOverSecurityConnectorScope(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securityStandards()
+ .deleteByResourceGroupWithResponse(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
+ "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", com.azure.core.util.Context.NONE);
}
-}
-```
-### SqlVulnerabilityAssessmentScanResults_List
-
-```java
-/**
- * Samples for SqlVulnerabilityAssessmentScanResults List.
- */
-public final class SqlVulnerabilityAssessmentScanResultsListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
- * sqlVulnerabilityAssessmentsScanResultsOperations/ArcMachineScanResults_ListLatest.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
+ * DeleteByManagementGroupSecurityStandard_example.json
*/
/**
- * Sample code: List scan results of the latest scan.
+ * Sample code: Delete a security standard over management group scope.
*
* @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",
- com.azure.core.util.Context.NONE);
+ public static void
+ deleteASecurityStandardOverManagementGroupScope(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securityStandards()
+ .deleteByResourceGroupWithResponse("providers/Microsoft.Management/managementGroups/contoso",
+ "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", com.azure.core.util.Context.NONE);
}
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
- * sqlVulnerabilityAssessmentsScanResultsOperations/ArcMachineScanResults_List.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
+ * DeleteBySubscriptionSecurityStandard_example.json
*/
/**
- * Sample code: List scan results.
+ * Sample code: Delete a security standard over subscription scope.
*
* @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",
- com.azure.core.util.Context.NONE);
+ public static void
+ deleteASecurityStandardOverSubscriptionScope(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securityStandards()
+ .deleteByResourceGroupWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", com.azure.core.util.Context.NONE);
}
}
```
-### SqlVulnerabilityAssessmentScans_Get
+### SecurityStandards_Get
```java
/**
- * Samples for SqlVulnerabilityAssessmentScans Get.
+ * Samples for SecurityStandards Get.
*/
-public final class SqlVulnerabilityAssessmentScansGetSamples {
+public final class SecurityStandardsGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
- * sqlVulnerabilityAssessmentScanOperations/ArcMachineScans_Get.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
+ * GetBySecurityConnectorSecurityStandard_example.json
*/
/**
- * Sample code: Get scan details of a scan record.
+ * Sample code: Get a security standard over security connector scope.
*
* @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",
- com.azure.core.util.Context.NONE);
+ public static void
+ getASecurityStandardOverSecurityConnectorScope(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securityStandards()
+ .getWithResponse(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
+ "1f3afdf9-d0c9-4c3d-847f-89da613e70a8", com.azure.core.util.Context.NONE);
}
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
- * sqlVulnerabilityAssessmentScanOperations/ArcMachineScans_GetLatest.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
+ * GetByManagementGroupSecurityStandard_example.json
*/
/**
- * Sample code: Get scan details of the latest scan record.
+ * Sample code: Get a security standard over management group scope.
*
* @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",
- com.azure.core.util.Context.NONE);
+ public static void
+ getASecurityStandardOverManagementGroupScope(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securityStandards()
+ .getWithResponse("providers/Microsoft.Management/managementGroups/contoso",
+ "1f3afdf9-d0c9-4c3d-847f-89da613e70a8", com.azure.core.util.Context.NONE);
}
-}
-```
-### SqlVulnerabilityAssessmentScans_List
-
-```java
-/**
- * Samples for SqlVulnerabilityAssessmentScans List.
- */
-public final class SqlVulnerabilityAssessmentScansListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
- * sqlVulnerabilityAssessmentScanOperations/ArcMachineScans_List.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
+ * GetBySubscriptionSecurityStandard_example.json
*/
/**
- * Sample code: List scan details.
+ * Sample code: Get a security standard over subscription scope.
*
* @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",
- com.azure.core.util.Context.NONE);
+ public static void
+ getASecurityStandardOverSubscriptionScope(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securityStandards()
+ .getWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "1f3afdf9-d0c9-4c3d-847f-89da613e70a8", com.azure.core.util.Context.NONE);
}
}
```
-### StandardAssignments_Create
+### SecurityStandards_List
```java
-import com.azure.resourcemanager.security.models.AssignedAssessmentItem;
-import com.azure.resourcemanager.security.models.AssignedStandardItem;
-import com.azure.resourcemanager.security.models.Effect;
-import com.azure.resourcemanager.security.models.ExemptionCategory;
-import com.azure.resourcemanager.security.models.StandardAssignmentPropertiesExemptionData;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-
/**
- * Samples for StandardAssignments Create.
+ * Samples for SecurityStandards List.
*/
-public final class StandardAssignmentsCreateSamples {
+public final class SecurityStandardsListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/StandardAssignments/
- * PutStandardAssignment.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
+ * ListByManagementGroupSecurityStandards_example.json
*/
/**
- * Sample code: Put an audit standard assignment.
+ * Sample code: List security standards by management group scope.
*
* @param manager Entry point to SecurityManager.
*/
- public static void putAnAuditStandardAssignment(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.standardAssignments()
- .define("1f3afdf9-d0c9-4c3d-847f-89da613e70a8")
- .withExistingResourceId("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23")
- .withDisplayName("ASC Default")
- .withDescription("Set of policies monitored by Azure Security Center for cross cloud")
- .withAssignedStandard(new AssignedStandardItem()
- .withId("/providers/Microsoft.Security/securityStandards/1f3afdf9-d0c9-4c3d-847f-89da613e70a8"))
- .withEffect(Effect.AUDIT)
- .withExcludedScopes(Arrays.asList())
- .create();
+ public static void
+ listSecurityStandardsByManagementGroupScope(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securityStandards()
+ .list("providers/Microsoft.Management/managementGroups/contoso", com.azure.core.util.Context.NONE);
}
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/StandardAssignments/
- * PutExemptionStandardAssignment.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
+ * ListBySubscriptionSecurityStandards_example.json
*/
/**
- * Sample code: Put exemption standard assignment.
+ * Sample code: List security standards by subscription scope.
*
* @param manager Entry point to SecurityManager.
*/
- public static void putExemptionStandardAssignment(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.standardAssignments()
- .define("1f3afdf9-d0c9-4c3d-847f-89da613e70a8")
- .withExistingResourceId(
- "subscriptions/212f9889-769e-45ae-ab43-6da33674bd26/resourceGroups/ANAT_TEST_RG/providers/Microsoft.Compute/virtualMachines/anatTestE2LA")
- .withDisplayName("Test exemption")
- .withDescription("Exemption description")
- .withAssignedStandard(new AssignedStandardItem()
- .withId("/providers/Microsoft.Security/securityStandards/1f3afdf9-d0c9-4c3d-847f-89da613e70a8"))
- .withEffect(Effect.EXEMPT)
- .withExpiresOn(OffsetDateTime.parse("2022-05-01T19:50:47.083633Z"))
- .withExemptionData(
- new StandardAssignmentPropertiesExemptionData().withExemptionCategory(ExemptionCategory.WAIVER)
- .withAssignedAssessment(new AssignedAssessmentItem().withAssessmentKey("fakeTokenPlaceholder")))
- .create();
+ public static void
+ listSecurityStandardsBySubscriptionScope(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securityStandards()
+ .list("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", com.azure.core.util.Context.NONE);
}
-}
-```
-
-### StandardAssignments_Delete
-```java
-/**
- * Samples for StandardAssignments Delete.
- */
-public final class StandardAssignmentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/StandardAssignments/
- * DeleteStandardAssignment.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
+ * ListBySecurityConnectorSecurityStandards_example.json
*/
/**
- * Sample code: Delete a standard assignment.
+ * Sample code: List security standards by security connector scope.
*
* @param manager Entry point to SecurityManager.
*/
- public static void deleteAStandardAssignment(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.standardAssignments()
- .deleteByResourceGroupWithResponse(
+ public static void
+ listSecurityStandardsBySecurityConnectorScope(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.securityStandards()
+ .list(
"subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
- "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### StandardAssignments_Get
-
-```java
-/**
- * Samples for StandardAssignments Get.
- */
-public final class StandardAssignmentsGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/StandardAssignments/
- * GetStandardAssignment.json
- */
- /**
- * Sample code: Retrieve a standard assignment.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void retrieveAStandardAssignment(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.standardAssignments()
- .getWithResponse("providers/Microsoft.Management/managementGroups/contoso",
- "1f3afdf9-d0c9-4c3d-847f-89da613e70a8", com.azure.core.util.Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
-### StandardAssignments_List
+### ServerVulnerabilityAssessment_CreateOrUpdate
```java
/**
- * Samples for StandardAssignments List.
+ * Samples for ServerVulnerabilityAssessment CreateOrUpdate.
*/
-public final class StandardAssignmentsListSamples {
+public final class ServerVulnerabilityAssessmentCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/StandardAssignments/
- * ListStandardAssignments.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/
+ * ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json
*/
/**
- * Sample code: List standard assignments.
+ * 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 listStandardAssignments(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.standardAssignments()
- .list(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
+ public static void
+ createAServerVulnerabilityAssessmentsOnAResourceOnlyDefaultResourceIsSupportedOnceCreatingTheResourceTheServerWillBeOnboardedToVulnerabilityAssessmentByMicrosoftSecurity(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.serverVulnerabilityAssessments()
+ .createOrUpdateWithResponse("rg1", "Microsoft.Compute", "virtualMachines", "vm1",
com.azure.core.util.Context.NONE);
}
}
```
-### SubAssessments_Get
+### ServerVulnerabilityAssessment_Delete
```java
/**
- * Samples for SubAssessments Get.
+ * Samples for ServerVulnerabilityAssessment Delete.
*/
-public final class SubAssessmentsGetSamples {
+public final class ServerVulnerabilityAssessmentDeleteSamples {
/*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/SubAssessments/
- * GetSubAssessment_example.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/
+ * ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json
*/
/**
- * Sample code: Get security recommendation task from security data location.
+ * 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 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",
- com.azure.core.util.Context.NONE);
+ public static void
+ deleteAServerVulnerabilityAssessmentsOnAResourceOnlyDefaultResourceIsSupportedOnceDeletingMicrosoftSecurityWillNotProvideVulnerabilityAssessmentFindingsOnTheResource(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.serverVulnerabilityAssessments()
+ .delete("rg1", "Microsoft.Compute", "virtualMachines", "vm1", com.azure.core.util.Context.NONE);
}
}
```
-### SubAssessments_List
+### ServerVulnerabilityAssessment_Get
```java
/**
- * Samples for SubAssessments List.
+ * Samples for ServerVulnerabilityAssessment Get.
*/
-public final class SubAssessmentsListSamples {
+public final class ServerVulnerabilityAssessmentGetSamples {
/*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/SubAssessments/
- * ListSubAssessments_example.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/
+ * ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json
*/
/**
- * Sample code: List security sub-assessments.
+ * 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 listSecuritySubAssessments(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.subAssessments()
- .list("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "82e20e14-edc5-4373-bfc4-f13121257c37",
- com.azure.core.util.Context.NONE);
+ public static void
+ getAServerVulnerabilityAssessmentsOnboardingStatusOnAResourceCurrentlyMicrosoftSecurityOnlySupportsTheSingleDefaultResource(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.serverVulnerabilityAssessments()
+ .getWithResponse("rg1", "Microsoft.Compute", "virtualMachines", "vm1", com.azure.core.util.Context.NONE);
}
}
```
-### SubAssessments_ListAll
+### ServerVulnerabilityAssessment_ListByExtendedResource
```java
/**
- * Samples for SubAssessments ListAll.
+ * Samples for ServerVulnerabilityAssessment ListByExtendedResource.
*/
-public final class SubAssessmentsListAllSamples {
+public final class ServerVulnerabilityAssessmentListByExtendedResourceSamples {
/*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/SubAssessments/
- * ListSubscriptionSubAssessments_example.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/
+ * ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json
*/
/**
- * Sample code: List security sub-assessments.
+ * 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 listSecuritySubAssessments(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.subAssessments()
- .listAll("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", com.azure.core.util.Context.NONE);
+ public static void
+ getAListOfServerVulnerabilityAssessmentsOnAResourceThoughThisAPIReturnsAListCurrentlyMicrosoftSecurityOnlySupportsASingleDefaultTypeOfServerVulnerabilityAssessment(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.serverVulnerabilityAssessments()
+ .listByExtendedResourceWithResponse("rg1", "Microsoft.Compute", "virtualMachines", "vm1",
+ com.azure.core.util.Context.NONE);
}
}
```
-### Tasks_GetResourceGroupLevelTask
+### ServerVulnerabilityAssessmentsSettings_CreateOrUpdate
```java
+import com.azure.resourcemanager.security.models.AzureServersSetting;
+import com.azure.resourcemanager.security.models.ServerVulnerabilityAssessmentsAzureSettingSelectedProvider;
+import com.azure.resourcemanager.security.models.ServerVulnerabilityAssessmentsSettingKindName;
+
/**
- * Samples for Tasks GetResourceGroupLevelTask.
+ * Samples for ServerVulnerabilityAssessmentsSettings CreateOrUpdate.
*/
-public final class TasksGetResourceGroupLevelTaskSamples {
+public final class ServerVulnerabilityAssessmentsSettingsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Tasks/
- * GetTaskResourceGroupLocation_example.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-05-01/examples/
+ * ServerVulnerabilityAssessmentsSettings/PutServerVulnerabilityAssessmentsSetting_example.json
*/
/**
- * Sample code: Get security recommendation task in a resource group.
+ * Sample code: Set a server vulnerability assessments setting of the kind settingKind on the subscription.
*
* @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",
+ public static void setAServerVulnerabilityAssessmentsSettingOfTheKindSettingKindOnTheSubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.serverVulnerabilityAssessmentsSettings()
+ .createOrUpdateWithResponse(ServerVulnerabilityAssessmentsSettingKindName.AZURE_SERVERS_SETTING,
+ new AzureServersSetting()
+ .withSelectedProvider(ServerVulnerabilityAssessmentsAzureSettingSelectedProvider.MDE_TVM),
com.azure.core.util.Context.NONE);
}
}
```
-### Tasks_GetSubscriptionLevelTask
+### ServerVulnerabilityAssessmentsSettings_Delete
```java
+import com.azure.resourcemanager.security.models.ServerVulnerabilityAssessmentsSettingKindName;
+
/**
- * Samples for Tasks GetSubscriptionLevelTask.
+ * Samples for ServerVulnerabilityAssessmentsSettings Delete.
*/
-public final class TasksGetSubscriptionLevelTaskSamples {
+public final class ServerVulnerabilityAssessmentsSettingsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Tasks/
- * GetTaskSubscriptionLocation_example.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-05-01/examples/
+ * ServerVulnerabilityAssessmentsSettings/DeleteServerVulnerabilityAssessmentsSetting_example.json
*/
/**
- * Sample code: Get security recommendation task from security data location.
+ * Sample code: Delete the server vulnerability assessments setting of the kind settingKind from the subscription.
*
* @param manager Entry point to SecurityManager.
*/
- public static void getSecurityRecommendationTaskFromSecurityDataLocation(
+ public static void deleteTheServerVulnerabilityAssessmentsSettingOfTheKindSettingKindFromTheSubscription(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.tasks()
- .getSubscriptionLevelTaskWithResponse("westeurope", "62609ee7-d0a5-8616-9fe4-1df5cca7758d",
+ manager.serverVulnerabilityAssessmentsSettings()
+ .deleteWithResponse(ServerVulnerabilityAssessmentsSettingKindName.AZURE_SERVERS_SETTING,
com.azure.core.util.Context.NONE);
}
}
```
-### Tasks_List
+### ServerVulnerabilityAssessmentsSettings_Get
```java
+import com.azure.resourcemanager.security.models.ServerVulnerabilityAssessmentsSettingKindName;
+
/**
- * Samples for Tasks List.
+ * Samples for ServerVulnerabilityAssessmentsSettings Get.
*/
-public final class TasksListSamples {
+public final class ServerVulnerabilityAssessmentsSettingsGetSamples {
/*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Tasks/
- * GetTasksSubscription_example.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-05-01/examples/
+ * ServerVulnerabilityAssessmentsSettings/GetServerVulnerabilityAssessmentsSetting_example.json
*/
/**
- * Sample code: Get security recommendations tasks.
+ * Sample code: Get the server vulnerability assessments setting of the kind settingKind that is set on the
+ * subscription.
*
* @param manager Entry point to SecurityManager.
*/
- public static void getSecurityRecommendationsTasks(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.tasks().list(null, com.azure.core.util.Context.NONE);
+ public static void getTheServerVulnerabilityAssessmentsSettingOfTheKindSettingKindThatIsSetOnTheSubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.serverVulnerabilityAssessmentsSettings()
+ .getWithResponse(ServerVulnerabilityAssessmentsSettingKindName.AZURE_SERVERS_SETTING,
+ com.azure.core.util.Context.NONE);
}
}
```
-### Tasks_ListByHomeRegion
+### ServerVulnerabilityAssessmentsSettings_List
```java
/**
- * Samples for Tasks ListByHomeRegion.
+ * Samples for ServerVulnerabilityAssessmentsSettings List.
*/
-public final class TasksListByHomeRegionSamples {
+public final class ServerVulnerabilityAssessmentsSettingsListSamples {
/*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Tasks/
- * GetTasksSubscriptionLocation_example.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-05-01/examples/
+ * ServerVulnerabilityAssessmentsSettings/ListServerVulnerabilityAssessmentsSettings_example.json
*/
/**
- * Sample code: Get security recommendations tasks from security data location.
+ * Sample code: List the server vulnerability assessments settings set on the subscription.
*
* @param manager Entry point to SecurityManager.
*/
- public static void getSecurityRecommendationsTasksFromSecurityDataLocation(
+ public static void listTheServerVulnerabilityAssessmentsSettingsSetOnTheSubscription(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.tasks().listByHomeRegion("westeurope", null, com.azure.core.util.Context.NONE);
+ manager.serverVulnerabilityAssessmentsSettings().list(com.azure.core.util.Context.NONE);
}
}
```
-### Tasks_ListByResourceGroup
+### Settings_Get
```java
+import com.azure.resourcemanager.security.models.SettingName;
+
/**
- * Samples for Tasks ListByResourceGroup.
+ * Samples for Settings Get.
*/
-public final class TasksListByResourceGroupSamples {
+public final class SettingsGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Tasks/
- * GetTasksResourceGroupLocation_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2022-05-01/examples/Settings/GetSetting_example
+ * .json
*/
/**
- * Sample code: Get security recommendation tasks in a resource group.
+ * Sample code: Get a setting on subscription.
*
* @param manager Entry point to SecurityManager.
*/
- public static void
- getSecurityRecommendationTasksInAResourceGroup(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.tasks().listByResourceGroup("myRg", "westeurope", null, com.azure.core.util.Context.NONE);
+ public static void getASettingOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.settings().getWithResponse(SettingName.WDATP, com.azure.core.util.Context.NONE);
}
}
```
-### Tasks_UpdateResourceGroupLevelTaskState
+### Settings_List
```java
-import com.azure.resourcemanager.security.models.TaskUpdateActionType;
-
/**
- * Samples for Tasks UpdateResourceGroupLevelTaskState.
+ * Samples for Settings List.
*/
-public final class TasksUpdateResourceGroupLevelTaskStateSamples {
+public final class SettingsListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Tasks/
- * UpdateTaskResourceGroupLocation_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2022-05-01/examples/Settings/
+ * GetSettings_example.json
*/
/**
- * Sample code: Change security recommendation task state.
+ * Sample code: Get settings of subscription.
*
* @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",
- TaskUpdateActionType.DISMISS, com.azure.core.util.Context.NONE);
+ public static void getSettingsOfSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.settings().list(com.azure.core.util.Context.NONE);
}
}
```
-### Tasks_UpdateSubscriptionLevelTaskState
+### Settings_Update
```java
-import com.azure.resourcemanager.security.models.TaskUpdateActionType;
+import com.azure.resourcemanager.security.models.DataExportSettings;
+import com.azure.resourcemanager.security.models.SettingName;
/**
- * Samples for Tasks UpdateSubscriptionLevelTaskState.
+ * Samples for Settings Update.
*/
-public final class TasksUpdateSubscriptionLevelTaskStateSamples {
+public final class SettingsUpdateSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Tasks/
- * UpdateTaskSubscriptionLocation_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2022-05-01/examples/Settings/
+ * UpdateSetting_example.json
*/
/**
- * Sample code: Change security recommendation task state.
+ * Sample code: Update a setting for subscription.
*
* @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",
- TaskUpdateActionType.DISMISS, com.azure.core.util.Context.NONE);
+ public static void updateASettingForSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.settings()
+ .updateWithResponse(SettingName.WDATP, new DataExportSettings().withEnabled(true),
+ com.azure.core.util.Context.NONE);
}
}
```
-### Topology_Get
+### StandardAssignments_Create
```java
+import com.azure.resourcemanager.security.models.AssignedAssessmentItem;
+import com.azure.resourcemanager.security.models.AssignedStandardItem;
+import com.azure.resourcemanager.security.models.Effect;
+import com.azure.resourcemanager.security.models.ExemptionCategory;
+import com.azure.resourcemanager.security.models.StandardAssignmentPropertiesExemptionData;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+
/**
- * Samples for Topology Get.
+ * Samples for StandardAssignments Create.
*/
-public final class TopologyGetSamples {
+public final class StandardAssignmentsCreateSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/Topology/
- * GetTopology_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/StandardAssignments/
+ * PutStandardAssignment.json
*/
/**
- * Sample code: Get topology.
+ * Sample code: Put an audit standard assignment.
*
* @param manager Entry point to SecurityManager.
*/
- public static void getTopology(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.topologies().getWithResponse("myservers", "centralus", "vnets", com.azure.core.util.Context.NONE);
+ public static void putAnAuditStandardAssignment(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.standardAssignments()
+ .define("1f3afdf9-d0c9-4c3d-847f-89da613e70a8")
+ .withExistingResourceId("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23")
+ .withDisplayName("ASC Default")
+ .withDescription("Set of policies monitored by Azure Security Center for cross cloud")
+ .withAssignedStandard(new AssignedStandardItem()
+ .withId("/providers/Microsoft.Security/securityStandards/1f3afdf9-d0c9-4c3d-847f-89da613e70a8"))
+ .withEffect(Effect.AUDIT)
+ .withExcludedScopes(Arrays.asList())
+ .create();
}
-}
-```
-
-### Topology_List
-```java
-/**
- * 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
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/StandardAssignments/
+ * PutExemptionStandardAssignment.json
*/
/**
- * Sample code: Get topology on a subscription.
+ * Sample code: Put exemption standard assignment.
*
* @param manager Entry point to SecurityManager.
*/
- public static void getTopologyOnASubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.topologies().list(com.azure.core.util.Context.NONE);
+ public static void putExemptionStandardAssignment(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.standardAssignments()
+ .define("1f3afdf9-d0c9-4c3d-847f-89da613e70a8")
+ .withExistingResourceId(
+ "subscriptions/212f9889-769e-45ae-ab43-6da33674bd26/resourceGroups/ANAT_TEST_RG/providers/Microsoft.Compute/virtualMachines/anatTestE2LA")
+ .withDisplayName("Test exemption")
+ .withDescription("Exemption description")
+ .withAssignedStandard(new AssignedStandardItem()
+ .withId("/providers/Microsoft.Security/securityStandards/1f3afdf9-d0c9-4c3d-847f-89da613e70a8"))
+ .withEffect(Effect.EXEMPT)
+ .withExpiresOn(OffsetDateTime.parse("2022-05-01T19:50:47.083633Z"))
+ .withExemptionData(
+ new StandardAssignmentPropertiesExemptionData().withExemptionCategory(ExemptionCategory.WAIVER)
+ .withAssignedAssessment(new AssignedAssessmentItem().withAssessmentKey("fakeTokenPlaceholder")))
+ .create();
}
}
```
-### Topology_ListByHomeRegion
+### StandardAssignments_Delete
```java
/**
- * Samples for Topology ListByHomeRegion.
+ * Samples for StandardAssignments Delete.
*/
-public final class TopologyListByHomeRegionSamples {
+public final class StandardAssignmentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/Topology/
- * GetTopologySubscriptionLocation_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/StandardAssignments/
+ * DeleteStandardAssignment.json
*/
/**
- * Sample code: Get topology on a subscription from security data location.
+ * Sample code: Delete a standard assignment.
*
* @param manager Entry point to SecurityManager.
*/
- public static void
- getTopologyOnASubscriptionFromSecurityDataLocation(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.topologies().listByHomeRegion("centralus", com.azure.core.util.Context.NONE);
+ public static void deleteAStandardAssignment(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.standardAssignments()
+ .deleteByResourceGroupWithResponse(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
+ "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", com.azure.core.util.Context.NONE);
}
}
```
-### WorkspaceSettings_Create
+### StandardAssignments_Get
```java
/**
- * Samples for WorkspaceSettings Create.
+ * Samples for StandardAssignments Get.
*/
-public final class WorkspaceSettingsCreateSamples {
+public final class StandardAssignmentsGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/WorkspaceSettings/
- * CreateWorkspaceSetting_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/StandardAssignments/
+ * GetStandardAssignment.json
*/
/**
- * Sample code: Create a workspace setting data for subscription.
+ * Sample code: Retrieve a standard assignment.
*
* @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();
+ public static void retrieveAStandardAssignment(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.standardAssignments()
+ .getWithResponse("providers/Microsoft.Management/managementGroups/contoso",
+ "1f3afdf9-d0c9-4c3d-847f-89da613e70a8", com.azure.core.util.Context.NONE);
}
}
```
-### WorkspaceSettings_Delete
+### StandardAssignments_List
```java
/**
- * Samples for WorkspaceSettings Delete.
+ * Samples for StandardAssignments List.
*/
-public final class WorkspaceSettingsDeleteSamples {
+public final class StandardAssignmentsListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/WorkspaceSettings/
- * DeleteWorkspaceSetting_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/StandardAssignments/
+ * ListStandardAssignments.json
*/
/**
- * Sample code: Delete a workspace setting data for resource group.
+ * Sample code: List standard assignments.
*
* @param manager Entry point to SecurityManager.
*/
- public static void
- deleteAWorkspaceSettingDataForResourceGroup(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.workspaceSettings().deleteWithResponse("default", com.azure.core.util.Context.NONE);
+ public static void listStandardAssignments(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.standardAssignments()
+ .list(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
+ com.azure.core.util.Context.NONE);
}
}
```
-### WorkspaceSettings_Get
+### Topology_Get
```java
/**
- * Samples for WorkspaceSettings Get.
+ * Samples for Topology Get.
*/
-public final class WorkspaceSettingsGetSamples {
+public final class TopologyGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/WorkspaceSettings/
- * GetWorkspaceSetting_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/Topology/
+ * GetTopology_example.json
*/
/**
- * Sample code: Get a workspace setting on subscription.
+ * Sample code: Get topology.
*
* @param manager Entry point to SecurityManager.
*/
- public static void getAWorkspaceSettingOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.workspaceSettings().getWithResponse("default", com.azure.core.util.Context.NONE);
+ public static void getTopology(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.topologies().getWithResponse("myservers", "centralus", "vnets", com.azure.core.util.Context.NONE);
}
}
```
-### WorkspaceSettings_List
+### Topology_List
```java
/**
- * Samples for WorkspaceSettings List.
+ * Samples for Topology List.
*/
-public final class WorkspaceSettingsListSamples {
+public final class TopologyListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/WorkspaceSettings/
- * GetWorkspaceSettings_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/Topology/
+ * GetTopologySubscription_example.json
*/
/**
- * Sample code: Get workspace settings on subscription.
+ * Sample code: Get topology on a subscription.
*
* @param manager Entry point to SecurityManager.
*/
- public static void getWorkspaceSettingsOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.workspaceSettings().list(com.azure.core.util.Context.NONE);
+ public static void getTopologyOnASubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.topologies().list(com.azure.core.util.Context.NONE);
}
}
```
-### WorkspaceSettings_Update
+### Topology_ListByHomeRegion
```java
-import com.azure.resourcemanager.security.models.WorkspaceSetting;
-
/**
- * Samples for WorkspaceSettings Update.
+ * Samples for Topology ListByHomeRegion.
*/
-public final class WorkspaceSettingsUpdateSamples {
+public final class TopologyListByHomeRegionSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/WorkspaceSettings/
- * UpdateWorkspaceSetting_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/Topology/
+ * GetTopologySubscriptionLocation_example.json
*/
/**
- * Sample code: Update a workspace setting data for subscription.
+ * Sample code: Get topology on a subscription from security data location.
*
* @param manager Entry point to SecurityManager.
*/
public static void
- updateAWorkspaceSettingDataForSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- WorkspaceSetting resource
- = manager.workspaceSettings().getWithResponse("default", com.azure.core.util.Context.NONE).getValue();
- resource.update()
- .withWorkspaceId(
- "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace")
- .apply();
+ getTopologyOnASubscriptionFromSecurityDataLocation(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.topologies().listByHomeRegion("centralus", com.azure.core.util.Context.NONE);
}
}
```
diff --git a/sdk/security/azure-resourcemanager-security/pom.xml b/sdk/security/azure-resourcemanager-security/pom.xml
index 4f9b36f8bd0cc..6ccc2233f3460 100644
--- a/sdk/security/azure-resourcemanager-security/pom.xml
+++ b/sdk/security/azure-resourcemanager-security/pom.xml
@@ -1,7 +1,7 @@
4.0.0
@@ -14,7 +14,7 @@
com.azure.resourcemanagerazure-resourcemanager-security
- 1.0.0-beta.9
+ 1.0.0jarMicrosoft Azure SDK for Security Management
@@ -45,7 +45,6 @@
UTF-800
- truefalse
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 0d84e621ce5c8..7899208378023 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
@@ -26,151 +26,61 @@
import com.azure.resourcemanager.security.fluent.SecurityCenter;
import com.azure.resourcemanager.security.implementation.AdvancedThreatProtectionsImpl;
import com.azure.resourcemanager.security.implementation.AlertsImpl;
-import com.azure.resourcemanager.security.implementation.AlertsSuppressionRulesImpl;
import com.azure.resourcemanager.security.implementation.AllowedConnectionsImpl;
import com.azure.resourcemanager.security.implementation.ApiCollectionsImpl;
-import com.azure.resourcemanager.security.implementation.ApplicationOperationsImpl;
-import com.azure.resourcemanager.security.implementation.ApplicationsImpl;
import com.azure.resourcemanager.security.implementation.AssessmentsImpl;
import com.azure.resourcemanager.security.implementation.AssessmentsMetadatasImpl;
-import com.azure.resourcemanager.security.implementation.AutoProvisioningSettingsImpl;
-import com.azure.resourcemanager.security.implementation.AutomationsImpl;
-import com.azure.resourcemanager.security.implementation.AzureDevOpsOrgsImpl;
-import com.azure.resourcemanager.security.implementation.AzureDevOpsProjectsImpl;
-import com.azure.resourcemanager.security.implementation.AzureDevOpsReposImpl;
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.CustomRecommendationsImpl;
-import com.azure.resourcemanager.security.implementation.DefenderForStoragesImpl;
-import com.azure.resourcemanager.security.implementation.DevOpsConfigurationsImpl;
-import com.azure.resourcemanager.security.implementation.DevOpsOperationResultsImpl;
-import com.azure.resourcemanager.security.implementation.DevOpsPoliciesImpl;
-import com.azure.resourcemanager.security.implementation.DevOpsPolicyAssignmentsImpl;
import com.azure.resourcemanager.security.implementation.DeviceSecurityGroupsImpl;
import com.azure.resourcemanager.security.implementation.DiscoveredSecuritySolutionsImpl;
import com.azure.resourcemanager.security.implementation.ExternalSecuritySolutionsImpl;
-import com.azure.resourcemanager.security.implementation.GitHubOwnersImpl;
-import com.azure.resourcemanager.security.implementation.GitHubReposImpl;
-import com.azure.resourcemanager.security.implementation.GitLabGroupsImpl;
-import com.azure.resourcemanager.security.implementation.GitLabProjectsImpl;
-import com.azure.resourcemanager.security.implementation.GitLabSubgroupsImpl;
-import com.azure.resourcemanager.security.implementation.GovernanceAssignmentsImpl;
-import com.azure.resourcemanager.security.implementation.GovernanceRulesImpl;
-import com.azure.resourcemanager.security.implementation.HealthReportsImpl;
-import com.azure.resourcemanager.security.implementation.InformationProtectionPoliciesImpl;
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.JitNetworkAccessPoliciesImpl;
-import com.azure.resourcemanager.security.implementation.LocationsImpl;
-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;
-import com.azure.resourcemanager.security.implementation.RegulatoryComplianceControlsImpl;
-import com.azure.resourcemanager.security.implementation.RegulatoryComplianceStandardsImpl;
import com.azure.resourcemanager.security.implementation.SecureScoreControlDefinitionsImpl;
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.SecurityConnectorApplicationOperationsImpl;
-import com.azure.resourcemanager.security.implementation.SecurityConnectorApplicationsImpl;
-import com.azure.resourcemanager.security.implementation.SecurityConnectorsImpl;
-import com.azure.resourcemanager.security.implementation.SecurityContactsImpl;
-import com.azure.resourcemanager.security.implementation.SecurityOperatorsImpl;
import com.azure.resourcemanager.security.implementation.SecuritySolutionsImpl;
import com.azure.resourcemanager.security.implementation.SecuritySolutionsReferenceDatasImpl;
import com.azure.resourcemanager.security.implementation.SecurityStandardsImpl;
-import com.azure.resourcemanager.security.implementation.SensitivitySettingsImpl;
import com.azure.resourcemanager.security.implementation.ServerVulnerabilityAssessmentsImpl;
import com.azure.resourcemanager.security.implementation.ServerVulnerabilityAssessmentsSettingsImpl;
import com.azure.resourcemanager.security.implementation.SettingsImpl;
-import com.azure.resourcemanager.security.implementation.SoftwareInventoriesImpl;
-import com.azure.resourcemanager.security.implementation.SqlVulnerabilityAssessmentBaselineRulesImpl;
-import com.azure.resourcemanager.security.implementation.SqlVulnerabilityAssessmentScanResultsImpl;
-import com.azure.resourcemanager.security.implementation.SqlVulnerabilityAssessmentScansImpl;
import com.azure.resourcemanager.security.implementation.StandardAssignmentsImpl;
-import com.azure.resourcemanager.security.implementation.SubAssessmentsImpl;
-import com.azure.resourcemanager.security.implementation.TasksImpl;
import com.azure.resourcemanager.security.implementation.TopologiesImpl;
-import com.azure.resourcemanager.security.implementation.WorkspaceSettingsImpl;
import com.azure.resourcemanager.security.models.AdvancedThreatProtections;
import com.azure.resourcemanager.security.models.Alerts;
-import com.azure.resourcemanager.security.models.AlertsSuppressionRules;
import com.azure.resourcemanager.security.models.AllowedConnections;
import com.azure.resourcemanager.security.models.ApiCollections;
-import com.azure.resourcemanager.security.models.ApplicationOperations;
-import com.azure.resourcemanager.security.models.Applications;
import com.azure.resourcemanager.security.models.Assessments;
import com.azure.resourcemanager.security.models.AssessmentsMetadatas;
-import com.azure.resourcemanager.security.models.AutoProvisioningSettings;
-import com.azure.resourcemanager.security.models.Automations;
-import com.azure.resourcemanager.security.models.AzureDevOpsOrgs;
-import com.azure.resourcemanager.security.models.AzureDevOpsProjects;
-import com.azure.resourcemanager.security.models.AzureDevOpsRepos;
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.CustomRecommendations;
-import com.azure.resourcemanager.security.models.DefenderForStorages;
-import com.azure.resourcemanager.security.models.DevOpsConfigurations;
-import com.azure.resourcemanager.security.models.DevOpsOperationResults;
-import com.azure.resourcemanager.security.models.DevOpsPolicies;
-import com.azure.resourcemanager.security.models.DevOpsPolicyAssignments;
import com.azure.resourcemanager.security.models.DeviceSecurityGroups;
import com.azure.resourcemanager.security.models.DiscoveredSecuritySolutions;
import com.azure.resourcemanager.security.models.ExternalSecuritySolutions;
-import com.azure.resourcemanager.security.models.GitHubOwners;
-import com.azure.resourcemanager.security.models.GitHubRepos;
-import com.azure.resourcemanager.security.models.GitLabGroups;
-import com.azure.resourcemanager.security.models.GitLabProjects;
-import com.azure.resourcemanager.security.models.GitLabSubgroups;
-import com.azure.resourcemanager.security.models.GovernanceAssignments;
-import com.azure.resourcemanager.security.models.GovernanceRules;
-import com.azure.resourcemanager.security.models.HealthReports;
-import com.azure.resourcemanager.security.models.InformationProtectionPolicies;
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.JitNetworkAccessPolicies;
-import com.azure.resourcemanager.security.models.Locations;
-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;
-import com.azure.resourcemanager.security.models.RegulatoryComplianceControls;
-import com.azure.resourcemanager.security.models.RegulatoryComplianceStandards;
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.SecurityConnectorApplicationOperations;
-import com.azure.resourcemanager.security.models.SecurityConnectorApplications;
-import com.azure.resourcemanager.security.models.SecurityConnectors;
-import com.azure.resourcemanager.security.models.SecurityContacts;
-import com.azure.resourcemanager.security.models.SecurityOperators;
import com.azure.resourcemanager.security.models.SecuritySolutions;
import com.azure.resourcemanager.security.models.SecuritySolutionsReferenceDatas;
import com.azure.resourcemanager.security.models.SecurityStandards;
-import com.azure.resourcemanager.security.models.SensitivitySettings;
import com.azure.resourcemanager.security.models.ServerVulnerabilityAssessments;
import com.azure.resourcemanager.security.models.ServerVulnerabilityAssessmentsSettings;
import com.azure.resourcemanager.security.models.Settings;
-import com.azure.resourcemanager.security.models.SoftwareInventories;
-import com.azure.resourcemanager.security.models.SqlVulnerabilityAssessmentBaselineRules;
-import com.azure.resourcemanager.security.models.SqlVulnerabilityAssessmentScanResults;
-import com.azure.resourcemanager.security.models.SqlVulnerabilityAssessmentScans;
import com.azure.resourcemanager.security.models.StandardAssignments;
-import com.azure.resourcemanager.security.models.SubAssessments;
-import com.azure.resourcemanager.security.models.Tasks;
import com.azure.resourcemanager.security.models.Topologies;
-import com.azure.resourcemanager.security.models.WorkspaceSettings;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
@@ -183,96 +93,6 @@
* API spec for Microsoft.Security (Azure Security Center) resource provider.
*/
public final class SecurityManager {
- private Locations locations;
-
- private Operations operations;
-
- private Tasks tasks;
-
- private AutoProvisioningSettings autoProvisioningSettings;
-
- private Compliances compliances;
-
- private InformationProtectionPolicies informationProtectionPolicies;
-
- private WorkspaceSettings workspaceSettings;
-
- private AlertsSuppressionRules alertsSuppressionRules;
-
- private RegulatoryComplianceStandards regulatoryComplianceStandards;
-
- private RegulatoryComplianceControls regulatoryComplianceControls;
-
- private RegulatoryComplianceAssessments regulatoryComplianceAssessments;
-
- private SubAssessments subAssessments;
-
- private Connectors connectors;
-
- private SoftwareInventories softwareInventories;
-
- private CustomAssessmentAutomations customAssessmentAutomations;
-
- private CustomEntityStoreAssignments customEntityStoreAssignments;
-
- private MdeOnboardings mdeOnboardings;
-
- private GovernanceAssignments governanceAssignments;
-
- private GovernanceRules governanceRules;
-
- private Applications applications;
-
- private ApplicationOperations applicationOperations;
-
- private SecurityConnectorApplications securityConnectorApplications;
-
- private SecurityConnectorApplicationOperations securityConnectorApplicationOperations;
-
- private DefenderForStorages defenderForStorages;
-
- private SecurityOperators securityOperators;
-
- private SqlVulnerabilityAssessmentBaselineRules sqlVulnerabilityAssessmentBaselineRules;
-
- private SqlVulnerabilityAssessmentScans sqlVulnerabilityAssessmentScans;
-
- private SqlVulnerabilityAssessmentScanResults sqlVulnerabilityAssessmentScanResults;
-
- private SensitivitySettings sensitivitySettings;
-
- private HealthReports healthReports;
-
- private Automations automations;
-
- private SecurityContacts securityContacts;
-
- private SecurityConnectors securityConnectors;
-
- private AzureDevOpsOrgs azureDevOpsOrgs;
-
- private AzureDevOpsProjects azureDevOpsProjects;
-
- private AzureDevOpsRepos azureDevOpsRepos;
-
- private DevOpsConfigurations devOpsConfigurations;
-
- private DevOpsPolicies devOpsPolicies;
-
- private DevOpsPolicyAssignments devOpsPolicyAssignments;
-
- private GitHubOwners gitHubOwners;
-
- private GitHubRepos gitHubRepos;
-
- private GitLabGroups gitLabGroups;
-
- private GitLabSubgroups gitLabSubgroups;
-
- private GitLabProjects gitLabProjects;
-
- private DevOpsOperationResults devOpsOperationResults;
-
private ComplianceResults complianceResults;
private AdvancedThreatProtections advancedThreatProtections;
@@ -493,7 +313,7 @@ public SecurityManager authenticate(TokenCredential credential, AzureProfile pro
.append("-")
.append("com.azure.resourcemanager.security")
.append("/")
- .append("1.0.0-beta.8");
+ .append("1.0.0");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -539,561 +359,6 @@ public SecurityManager authenticate(TokenCredential credential, AzureProfile pro
}
}
- /**
- * Gets the resource collection API of Locations.
- *
- * @return Resource collection API of Locations.
- */
- public Locations locations() {
- if (this.locations == null) {
- this.locations = new LocationsImpl(clientObject.getLocations(), this);
- }
- return locations;
- }
-
- /**
- * Gets the resource collection API of Operations.
- *
- * @return Resource collection API of Operations.
- */
- public Operations operations() {
- if (this.operations == null) {
- this.operations = new OperationsImpl(clientObject.getOperations(), this);
- }
- return operations;
- }
-
- /**
- * Gets the resource collection API of Tasks.
- *
- * @return Resource collection API of Tasks.
- */
- public Tasks tasks() {
- if (this.tasks == null) {
- this.tasks = new TasksImpl(clientObject.getTasks(), this);
- }
- return tasks;
- }
-
- /**
- * Gets the resource collection API of AutoProvisioningSettings. It manages AutoProvisioningSetting.
- *
- * @return Resource collection API of AutoProvisioningSettings.
- */
- public AutoProvisioningSettings autoProvisioningSettings() {
- if (this.autoProvisioningSettings == null) {
- this.autoProvisioningSettings
- = new AutoProvisioningSettingsImpl(clientObject.getAutoProvisioningSettings(), this);
- }
- return autoProvisioningSettings;
- }
-
- /**
- * Gets the resource collection API of Compliances.
- *
- * @return Resource collection API of Compliances.
- */
- public Compliances compliances() {
- if (this.compliances == null) {
- this.compliances = new CompliancesImpl(clientObject.getCompliances(), this);
- }
- return compliances;
- }
-
- /**
- * Gets the resource collection API of InformationProtectionPolicies. It manages InformationProtectionPolicy.
- *
- * @return Resource collection API of InformationProtectionPolicies.
- */
- public InformationProtectionPolicies informationProtectionPolicies() {
- if (this.informationProtectionPolicies == null) {
- this.informationProtectionPolicies
- = new InformationProtectionPoliciesImpl(clientObject.getInformationProtectionPolicies(), this);
- }
- return informationProtectionPolicies;
- }
-
- /**
- * Gets the resource collection API of WorkspaceSettings. It manages WorkspaceSetting.
- *
- * @return Resource collection API of WorkspaceSettings.
- */
- public WorkspaceSettings workspaceSettings() {
- if (this.workspaceSettings == null) {
- this.workspaceSettings = new WorkspaceSettingsImpl(clientObject.getWorkspaceSettings(), this);
- }
- return workspaceSettings;
- }
-
- /**
- * Gets the resource collection API of AlertsSuppressionRules.
- *
- * @return Resource collection API of AlertsSuppressionRules.
- */
- public AlertsSuppressionRules alertsSuppressionRules() {
- if (this.alertsSuppressionRules == null) {
- this.alertsSuppressionRules
- = new AlertsSuppressionRulesImpl(clientObject.getAlertsSuppressionRules(), this);
- }
- return alertsSuppressionRules;
- }
-
- /**
- * Gets the resource collection API of RegulatoryComplianceStandards.
- *
- * @return Resource collection API of RegulatoryComplianceStandards.
- */
- public RegulatoryComplianceStandards regulatoryComplianceStandards() {
- if (this.regulatoryComplianceStandards == null) {
- this.regulatoryComplianceStandards
- = new RegulatoryComplianceStandardsImpl(clientObject.getRegulatoryComplianceStandards(), this);
- }
- return regulatoryComplianceStandards;
- }
-
- /**
- * Gets the resource collection API of RegulatoryComplianceControls.
- *
- * @return Resource collection API of RegulatoryComplianceControls.
- */
- public RegulatoryComplianceControls regulatoryComplianceControls() {
- if (this.regulatoryComplianceControls == null) {
- this.regulatoryComplianceControls
- = new RegulatoryComplianceControlsImpl(clientObject.getRegulatoryComplianceControls(), this);
- }
- return regulatoryComplianceControls;
- }
-
- /**
- * Gets the resource collection API of RegulatoryComplianceAssessments.
- *
- * @return Resource collection API of RegulatoryComplianceAssessments.
- */
- public RegulatoryComplianceAssessments regulatoryComplianceAssessments() {
- if (this.regulatoryComplianceAssessments == null) {
- this.regulatoryComplianceAssessments
- = new RegulatoryComplianceAssessmentsImpl(clientObject.getRegulatoryComplianceAssessments(), this);
- }
- return regulatoryComplianceAssessments;
- }
-
- /**
- * Gets the resource collection API of SubAssessments.
- *
- * @return Resource collection API of SubAssessments.
- */
- public SubAssessments subAssessments() {
- if (this.subAssessments == null) {
- this.subAssessments = new SubAssessmentsImpl(clientObject.getSubAssessments(), this);
- }
- return subAssessments;
- }
-
- /**
- * Gets the resource collection API of Connectors. It manages ConnectorSetting.
- *
- * @return Resource collection API of Connectors.
- */
- public Connectors connectors() {
- if (this.connectors == null) {
- this.connectors = new ConnectorsImpl(clientObject.getConnectors(), this);
- }
- return connectors;
- }
-
- /**
- * Gets the resource collection API of SoftwareInventories.
- *
- * @return Resource collection API of SoftwareInventories.
- */
- public SoftwareInventories softwareInventories() {
- if (this.softwareInventories == null) {
- this.softwareInventories = new SoftwareInventoriesImpl(clientObject.getSoftwareInventories(), this);
- }
- return softwareInventories;
- }
-
- /**
- * Gets the resource collection API of CustomAssessmentAutomations. It manages CustomAssessmentAutomation.
- *
- * @return Resource collection API of CustomAssessmentAutomations.
- */
- public CustomAssessmentAutomations customAssessmentAutomations() {
- if (this.customAssessmentAutomations == null) {
- this.customAssessmentAutomations
- = new CustomAssessmentAutomationsImpl(clientObject.getCustomAssessmentAutomations(), this);
- }
- return customAssessmentAutomations;
- }
-
- /**
- * Gets the resource collection API of CustomEntityStoreAssignments. It manages CustomEntityStoreAssignment.
- *
- * @return Resource collection API of CustomEntityStoreAssignments.
- */
- public CustomEntityStoreAssignments customEntityStoreAssignments() {
- if (this.customEntityStoreAssignments == null) {
- this.customEntityStoreAssignments
- = new CustomEntityStoreAssignmentsImpl(clientObject.getCustomEntityStoreAssignments(), this);
- }
- return customEntityStoreAssignments;
- }
-
- /**
- * Gets the resource collection API of MdeOnboardings.
- *
- * @return Resource collection API of MdeOnboardings.
- */
- public MdeOnboardings mdeOnboardings() {
- if (this.mdeOnboardings == null) {
- this.mdeOnboardings = new MdeOnboardingsImpl(clientObject.getMdeOnboardings(), this);
- }
- return mdeOnboardings;
- }
-
- /**
- * Gets the resource collection API of GovernanceAssignments. It manages GovernanceAssignment.
- *
- * @return Resource collection API of GovernanceAssignments.
- */
- public GovernanceAssignments governanceAssignments() {
- if (this.governanceAssignments == null) {
- this.governanceAssignments = new GovernanceAssignmentsImpl(clientObject.getGovernanceAssignments(), this);
- }
- return governanceAssignments;
- }
-
- /**
- * Gets the resource collection API of GovernanceRules. It manages GovernanceRule.
- *
- * @return Resource collection API of GovernanceRules.
- */
- public GovernanceRules governanceRules() {
- if (this.governanceRules == null) {
- this.governanceRules = new GovernanceRulesImpl(clientObject.getGovernanceRules(), this);
- }
- return governanceRules;
- }
-
- /**
- * Gets the resource collection API of Applications.
- *
- * @return Resource collection API of Applications.
- */
- public Applications applications() {
- if (this.applications == null) {
- this.applications = new ApplicationsImpl(clientObject.getApplications(), this);
- }
- return applications;
- }
-
- /**
- * Gets the resource collection API of ApplicationOperations. It manages Application.
- *
- * @return Resource collection API of ApplicationOperations.
- */
- public ApplicationOperations applicationOperations() {
- if (this.applicationOperations == null) {
- this.applicationOperations = new ApplicationOperationsImpl(clientObject.getApplicationOperations(), this);
- }
- return applicationOperations;
- }
-
- /**
- * Gets the resource collection API of SecurityConnectorApplications.
- *
- * @return Resource collection API of SecurityConnectorApplications.
- */
- public SecurityConnectorApplications securityConnectorApplications() {
- if (this.securityConnectorApplications == null) {
- this.securityConnectorApplications
- = new SecurityConnectorApplicationsImpl(clientObject.getSecurityConnectorApplications(), this);
- }
- return securityConnectorApplications;
- }
-
- /**
- * Gets the resource collection API of SecurityConnectorApplicationOperations.
- *
- * @return Resource collection API of SecurityConnectorApplicationOperations.
- */
- public SecurityConnectorApplicationOperations securityConnectorApplicationOperations() {
- if (this.securityConnectorApplicationOperations == null) {
- this.securityConnectorApplicationOperations = new SecurityConnectorApplicationOperationsImpl(
- clientObject.getSecurityConnectorApplicationOperations(), this);
- }
- return securityConnectorApplicationOperations;
- }
-
- /**
- * Gets the resource collection API of DefenderForStorages. It manages DefenderForStorageSetting.
- *
- * @return Resource collection API of DefenderForStorages.
- */
- public DefenderForStorages defenderForStorages() {
- if (this.defenderForStorages == null) {
- this.defenderForStorages = new DefenderForStoragesImpl(clientObject.getDefenderForStorages(), this);
- }
- return defenderForStorages;
- }
-
- /**
- * Gets the resource collection API of SecurityOperators.
- *
- * @return Resource collection API of SecurityOperators.
- */
- public SecurityOperators securityOperators() {
- if (this.securityOperators == null) {
- this.securityOperators = new SecurityOperatorsImpl(clientObject.getSecurityOperators(), this);
- }
- return securityOperators;
- }
-
- /**
- * Gets the resource collection API of SqlVulnerabilityAssessmentBaselineRules. It manages RuleResults.
- *
- * @return Resource collection API of SqlVulnerabilityAssessmentBaselineRules.
- */
- public SqlVulnerabilityAssessmentBaselineRules sqlVulnerabilityAssessmentBaselineRules() {
- if (this.sqlVulnerabilityAssessmentBaselineRules == null) {
- this.sqlVulnerabilityAssessmentBaselineRules = new SqlVulnerabilityAssessmentBaselineRulesImpl(
- clientObject.getSqlVulnerabilityAssessmentBaselineRules(), this);
- }
- return sqlVulnerabilityAssessmentBaselineRules;
- }
-
- /**
- * Gets the resource collection API of SqlVulnerabilityAssessmentScans.
- *
- * @return Resource collection API of SqlVulnerabilityAssessmentScans.
- */
- public SqlVulnerabilityAssessmentScans sqlVulnerabilityAssessmentScans() {
- if (this.sqlVulnerabilityAssessmentScans == null) {
- this.sqlVulnerabilityAssessmentScans
- = new SqlVulnerabilityAssessmentScansImpl(clientObject.getSqlVulnerabilityAssessmentScans(), this);
- }
- return sqlVulnerabilityAssessmentScans;
- }
-
- /**
- * Gets the resource collection API of SqlVulnerabilityAssessmentScanResults.
- *
- * @return Resource collection API of SqlVulnerabilityAssessmentScanResults.
- */
- public SqlVulnerabilityAssessmentScanResults sqlVulnerabilityAssessmentScanResults() {
- if (this.sqlVulnerabilityAssessmentScanResults == null) {
- this.sqlVulnerabilityAssessmentScanResults = new SqlVulnerabilityAssessmentScanResultsImpl(
- clientObject.getSqlVulnerabilityAssessmentScanResults(), this);
- }
- return sqlVulnerabilityAssessmentScanResults;
- }
-
- /**
- * Gets the resource collection API of SensitivitySettings.
- *
- * @return Resource collection API of SensitivitySettings.
- */
- public SensitivitySettings sensitivitySettings() {
- if (this.sensitivitySettings == null) {
- this.sensitivitySettings = new SensitivitySettingsImpl(clientObject.getSensitivitySettings(), this);
- }
- return sensitivitySettings;
- }
-
- /**
- * Gets the resource collection API of HealthReports.
- *
- * @return Resource collection API of HealthReports.
- */
- public HealthReports healthReports() {
- if (this.healthReports == null) {
- this.healthReports = new HealthReportsImpl(clientObject.getHealthReports(), this);
- }
- return healthReports;
- }
-
- /**
- * Gets the resource collection API of Automations. It manages Automation.
- *
- * @return Resource collection API of Automations.
- */
- public Automations automations() {
- if (this.automations == null) {
- this.automations = new AutomationsImpl(clientObject.getAutomations(), this);
- }
- return automations;
- }
-
- /**
- * Gets the resource collection API of SecurityContacts. It manages SecurityContact.
- *
- * @return Resource collection API of SecurityContacts.
- */
- public SecurityContacts securityContacts() {
- if (this.securityContacts == null) {
- this.securityContacts = new SecurityContactsImpl(clientObject.getSecurityContacts(), this);
- }
- return securityContacts;
- }
-
- /**
- * Gets the resource collection API of SecurityConnectors. It manages SecurityConnector.
- *
- * @return Resource collection API of SecurityConnectors.
- */
- public SecurityConnectors securityConnectors() {
- if (this.securityConnectors == null) {
- this.securityConnectors = new SecurityConnectorsImpl(clientObject.getSecurityConnectors(), this);
- }
- return securityConnectors;
- }
-
- /**
- * Gets the resource collection API of AzureDevOpsOrgs. It manages AzureDevOpsOrg.
- *
- * @return Resource collection API of AzureDevOpsOrgs.
- */
- public AzureDevOpsOrgs azureDevOpsOrgs() {
- if (this.azureDevOpsOrgs == null) {
- this.azureDevOpsOrgs = new AzureDevOpsOrgsImpl(clientObject.getAzureDevOpsOrgs(), this);
- }
- return azureDevOpsOrgs;
- }
-
- /**
- * Gets the resource collection API of AzureDevOpsProjects. It manages AzureDevOpsProject.
- *
- * @return Resource collection API of AzureDevOpsProjects.
- */
- public AzureDevOpsProjects azureDevOpsProjects() {
- if (this.azureDevOpsProjects == null) {
- this.azureDevOpsProjects = new AzureDevOpsProjectsImpl(clientObject.getAzureDevOpsProjects(), this);
- }
- return azureDevOpsProjects;
- }
-
- /**
- * Gets the resource collection API of AzureDevOpsRepos. It manages AzureDevOpsRepository.
- *
- * @return Resource collection API of AzureDevOpsRepos.
- */
- public AzureDevOpsRepos azureDevOpsRepos() {
- if (this.azureDevOpsRepos == null) {
- this.azureDevOpsRepos = new AzureDevOpsReposImpl(clientObject.getAzureDevOpsRepos(), this);
- }
- return azureDevOpsRepos;
- }
-
- /**
- * Gets the resource collection API of DevOpsConfigurations.
- *
- * @return Resource collection API of DevOpsConfigurations.
- */
- public DevOpsConfigurations devOpsConfigurations() {
- if (this.devOpsConfigurations == null) {
- this.devOpsConfigurations = new DevOpsConfigurationsImpl(clientObject.getDevOpsConfigurations(), this);
- }
- return devOpsConfigurations;
- }
-
- /**
- * Gets the resource collection API of DevOpsPolicies.
- *
- * @return Resource collection API of DevOpsPolicies.
- */
- public DevOpsPolicies devOpsPolicies() {
- if (this.devOpsPolicies == null) {
- this.devOpsPolicies = new DevOpsPoliciesImpl(clientObject.getDevOpsPolicies(), this);
- }
- return devOpsPolicies;
- }
-
- /**
- * Gets the resource collection API of DevOpsPolicyAssignments. It manages DevOpsPolicyAssignment.
- *
- * @return Resource collection API of DevOpsPolicyAssignments.
- */
- public DevOpsPolicyAssignments devOpsPolicyAssignments() {
- if (this.devOpsPolicyAssignments == null) {
- this.devOpsPolicyAssignments
- = new DevOpsPolicyAssignmentsImpl(clientObject.getDevOpsPolicyAssignments(), this);
- }
- return devOpsPolicyAssignments;
- }
-
- /**
- * Gets the resource collection API of GitHubOwners.
- *
- * @return Resource collection API of GitHubOwners.
- */
- public GitHubOwners gitHubOwners() {
- if (this.gitHubOwners == null) {
- this.gitHubOwners = new GitHubOwnersImpl(clientObject.getGitHubOwners(), this);
- }
- return gitHubOwners;
- }
-
- /**
- * Gets the resource collection API of GitHubRepos.
- *
- * @return Resource collection API of GitHubRepos.
- */
- public GitHubRepos gitHubRepos() {
- if (this.gitHubRepos == null) {
- this.gitHubRepos = new GitHubReposImpl(clientObject.getGitHubRepos(), this);
- }
- return gitHubRepos;
- }
-
- /**
- * Gets the resource collection API of GitLabGroups.
- *
- * @return Resource collection API of GitLabGroups.
- */
- public GitLabGroups gitLabGroups() {
- if (this.gitLabGroups == null) {
- this.gitLabGroups = new GitLabGroupsImpl(clientObject.getGitLabGroups(), this);
- }
- return gitLabGroups;
- }
-
- /**
- * Gets the resource collection API of GitLabSubgroups.
- *
- * @return Resource collection API of GitLabSubgroups.
- */
- public GitLabSubgroups gitLabSubgroups() {
- if (this.gitLabSubgroups == null) {
- this.gitLabSubgroups = new GitLabSubgroupsImpl(clientObject.getGitLabSubgroups(), this);
- }
- return gitLabSubgroups;
- }
-
- /**
- * Gets the resource collection API of GitLabProjects.
- *
- * @return Resource collection API of GitLabProjects.
- */
- public GitLabProjects gitLabProjects() {
- if (this.gitLabProjects == null) {
- this.gitLabProjects = new GitLabProjectsImpl(clientObject.getGitLabProjects(), this);
- }
- return gitLabProjects;
- }
-
- /**
- * Gets the resource collection API of DevOpsOperationResults.
- *
- * @return Resource collection API of DevOpsOperationResults.
- */
- public DevOpsOperationResults devOpsOperationResults() {
- if (this.devOpsOperationResults == null) {
- this.devOpsOperationResults
- = new DevOpsOperationResultsImpl(clientObject.getDevOpsOperationResults(), this);
- }
- return devOpsOperationResults;
- }
-
/**
* Gets the resource collection API of ComplianceResults.
*
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsSuppressionRulesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsSuppressionRulesClient.java
deleted file mode 100644
index 4536de8753de4..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsSuppressionRulesClient.java
+++ /dev/null
@@ -1,119 +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.AlertsSuppressionRuleInner;
-
-/**
- * An instance of this class provides access to all the operations defined in AlertsSuppressionRulesClient.
- */
-public interface AlertsSuppressionRulesClient {
- /**
- * List of all the dismiss rules for the given 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 suppression rules list for subscription as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * List of all the dismiss rules for the given subscription.
- *
- * @param alertType Type of the alert to get rules for.
- * @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 suppression rules list for subscription as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String alertType, Context context);
-
- /**
- * Get dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription.
- *
- * @param alertsSuppressionRuleName The unique name of the suppression alert rule.
- * @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 dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription along with
- * {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String alertsSuppressionRuleName, Context context);
-
- /**
- * Get dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription.
- *
- * @param alertsSuppressionRuleName The unique name of the suppression alert rule.
- * @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 dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AlertsSuppressionRuleInner get(String alertsSuppressionRuleName);
-
- /**
- * Update existing rule or create new rule if it doesn't exist.
- *
- * @param alertsSuppressionRuleName The unique name of the suppression alert rule.
- * @param alertsSuppressionRule Suppression rule object.
- * @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 describes the suppression rule along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String alertsSuppressionRuleName,
- AlertsSuppressionRuleInner alertsSuppressionRule, Context context);
-
- /**
- * Update existing rule or create new rule if it doesn't exist.
- *
- * @param alertsSuppressionRuleName The unique name of the suppression alert rule.
- * @param alertsSuppressionRule Suppression rule object.
- * @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 describes the suppression rule.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AlertsSuppressionRuleInner update(String alertsSuppressionRuleName,
- AlertsSuppressionRuleInner alertsSuppressionRule);
-
- /**
- * Delete dismiss alert rule for this subscription.
- *
- * @param alertsSuppressionRuleName The unique name of the suppression alert rule.
- * @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 {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String alertsSuppressionRuleName, Context context);
-
- /**
- * Delete dismiss alert rule for this subscription.
- *
- * @param alertsSuppressionRuleName The unique name of the suppression alert rule.
- * @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 alertsSuppressionRuleName);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApplicationOperationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApplicationOperationsClient.java
deleted file mode 100644
index 19482d743f368..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApplicationOperationsClient.java
+++ /dev/null
@@ -1,93 +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.ApplicationInner;
-
-/**
- * An instance of this class provides access to all the operations defined in ApplicationOperationsClient.
- */
-public interface ApplicationOperationsClient {
- /**
- * Get a specific application for the requested scope by applicationId.
- *
- * @param applicationId The security Application key - unique key for the standard application.
- * @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 specific application for the requested scope by applicationId along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String applicationId, Context context);
-
- /**
- * Get a specific application for the requested scope by applicationId.
- *
- * @param applicationId The security Application key - unique key for the standard application.
- * @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 specific application for the requested scope by applicationId.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInner get(String applicationId);
-
- /**
- * Creates or update a security application on the given subscription.
- *
- * @param applicationId The security Application key - unique key for the standard application.
- * @param application Application over a subscription scope.
- * @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 security Application over a given scope along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String applicationId, ApplicationInner application,
- Context context);
-
- /**
- * Creates or update a security application on the given subscription.
- *
- * @param applicationId The security Application key - unique key for the standard application.
- * @param application Application over a subscription scope.
- * @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 Application over a given scope.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInner createOrUpdate(String applicationId, ApplicationInner application);
-
- /**
- * Delete an Application over a given scope.
- *
- * @param applicationId The security Application key - unique key for the standard application.
- * @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 {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String applicationId, Context context);
-
- /**
- * Delete an Application over a given scope.
- *
- * @param applicationId The security Application key - unique key for the standard application.
- * @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 applicationId);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApplicationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApplicationsClient.java
deleted file mode 100644
index a35f403f9bd84..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApplicationsClient.java
+++ /dev/null
@@ -1,40 +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.ApplicationInner;
-
-/**
- * An instance of this class provides access to all the operations defined in ApplicationsClient.
- */
-public interface ApplicationsClient {
- /**
- * Get a list of all relevant applications over a subscription level scope.
- *
- * @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 all relevant applications over a subscription level scope as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Get a list of all relevant applications over a subscription level scope.
- *
- * @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 all relevant applications over a subscription level scope as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AutoProvisioningSettingsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AutoProvisioningSettingsClient.java
deleted file mode 100644
index 385c41b9a00c2..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AutoProvisioningSettingsClient.java
+++ /dev/null
@@ -1,92 +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.AutoProvisioningSettingInner;
-
-/**
- * An instance of this class provides access to all the operations defined in AutoProvisioningSettingsClient.
- */
-public interface AutoProvisioningSettingsClient {
- /**
- * Exposes the auto provisioning settings of the subscriptions.
- *
- * @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 all the auto provisioning settings response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Exposes the auto provisioning settings of the subscriptions.
- *
- * @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 all the auto provisioning settings response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * Details of a specific setting.
- *
- * @param settingName Auto provisioning setting key.
- * @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 auto provisioning setting along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String settingName, Context context);
-
- /**
- * Details of a specific setting.
- *
- * @param settingName Auto provisioning setting key.
- * @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 auto provisioning setting.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AutoProvisioningSettingInner get(String settingName);
-
- /**
- * Details of a specific setting.
- *
- * @param settingName Auto provisioning setting key.
- * @param setting Auto provisioning setting key.
- * @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 auto provisioning setting along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(String settingName, AutoProvisioningSettingInner setting,
- Context context);
-
- /**
- * Details of a specific setting.
- *
- * @param settingName Auto provisioning setting key.
- * @param setting Auto provisioning setting key.
- * @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 auto provisioning setting.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AutoProvisioningSettingInner create(String settingName, AutoProvisioningSettingInner setting);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AutomationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AutomationsClient.java
deleted file mode 100644
index 7d18996b5d265..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AutomationsClient.java
+++ /dev/null
@@ -1,231 +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.AutomationInner;
-import com.azure.resourcemanager.security.fluent.models.AutomationValidationStatusInner;
-import com.azure.resourcemanager.security.models.AutomationUpdateModel;
-
-/**
- * An instance of this class provides access to all the operations defined in AutomationsClient.
- */
-public interface AutomationsClient {
- /**
- * Lists all the security automations in the specified subscription. Use the 'nextLink' property in the response to
- * get the next page of security automations 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 automations response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Lists all the security automations in the specified subscription. Use the 'nextLink' property in the response to
- * get the next page of security automations 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 automations response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * Lists all the security automations in the specified resource group. Use the 'nextLink' property in the response
- * to get the next page of security automations 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 automations response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * Lists all the security automations in the specified resource group. Use the 'nextLink' property in the response
- * to get the next page of security automations 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 automations response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
-
- /**
- * Retrieves information about the model of a security automation.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param automationName The security automation 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 automation resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName, String automationName,
- Context context);
-
- /**
- * Retrieves information about the model of a security automation.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param automationName The security automation 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 automation resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AutomationInner getByResourceGroup(String resourceGroupName, String automationName);
-
- /**
- * Creates or updates a security automation. If a security automation is already created and a subsequent request is
- * issued for the same automation 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 automationName The security automation name.
- * @param automation The security automation 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 automation resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String automationName,
- AutomationInner automation, Context context);
-
- /**
- * Creates or updates a security automation. If a security automation is already created and a subsequent request is
- * issued for the same automation 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 automationName The security automation name.
- * @param automation The security automation 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 automation resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AutomationInner createOrUpdate(String resourceGroupName, String automationName, AutomationInner automation);
-
- /**
- * Updates a security automation.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param automationName The security automation name.
- * @param automation The update model of security automation 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 automation resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String resourceGroupName, String automationName,
- AutomationUpdateModel automation, Context context);
-
- /**
- * Updates a security automation.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param automationName The security automation name.
- * @param automation The update model of security automation 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 automation resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AutomationInner update(String resourceGroupName, String automationName, AutomationUpdateModel automation);
-
- /**
- * Deletes a security automation.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param automationName The security automation 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 {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String automationName, Context context);
-
- /**
- * Deletes a security automation.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param automationName The security automation 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 automationName);
-
- /**
- * Validates the security automation model before create or update. Any validation errors are returned to the
- * client.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param automationName The security automation name.
- * @param automation The security automation 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 automation model state property bag along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response validateWithResponse(String resourceGroupName, String automationName,
- AutomationInner automation, Context context);
-
- /**
- * Validates the security automation model before create or update. Any validation errors are returned to the
- * client.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param automationName The security automation name.
- * @param automation The security automation 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 automation model state property bag.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AutomationValidationStatusInner validate(String resourceGroupName, String automationName,
- AutomationInner automation);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AzureDevOpsOrgsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AzureDevOpsOrgsClient.java
deleted file mode 100644
index 566832c05a501..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AzureDevOpsOrgsClient.java
+++ /dev/null
@@ -1,237 +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.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.security.fluent.models.AzureDevOpsOrgInner;
-import com.azure.resourcemanager.security.fluent.models.AzureDevOpsOrgListResponseInner;
-
-/**
- * An instance of this class provides access to all the operations defined in AzureDevOpsOrgsClient.
- */
-public interface AzureDevOpsOrgsClient {
- /**
- * Returns a list of all Azure DevOps organizations accessible by the user token consumed by the connector.
- *
- * @param resourceGroupName The name of the resource group. 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 list of RP resources which supports pagination along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listAvailableWithResponse(String resourceGroupName,
- String securityConnectorName, Context context);
-
- /**
- * Returns a list of all Azure DevOps organizations accessible by the user token consumed by the connector.
- *
- * @param resourceGroupName The name of the resource group. 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 list of RP resources which supports pagination.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AzureDevOpsOrgListResponseInner listAvailable(String resourceGroupName, String securityConnectorName);
-
- /**
- * Returns a list of Azure DevOps organizations onboarded to the connector.
- *
- * @param resourceGroupName The name of the resource group. 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 list of RP resources which supports pagination as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String securityConnectorName);
-
- /**
- * Returns a list of Azure DevOps organizations onboarded to the connector.
- *
- * @param resourceGroupName The name of the resource group. 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 list of RP resources which supports pagination as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String securityConnectorName, Context context);
-
- /**
- * Returns a monitored Azure DevOps organization resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization 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 azure DevOps Organization resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String securityConnectorName,
- String orgName, Context context);
-
- /**
- * Returns a monitored Azure DevOps organization resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization 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 azure DevOps Organization resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AzureDevOpsOrgInner get(String resourceGroupName, String securityConnectorName, String orgName);
-
- /**
- * Creates or updates monitored Azure DevOps organization details.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param azureDevOpsOrg The Azure DevOps organization resource payload.
- * @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 {@link SyncPoller} for polling of azure DevOps Organization resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AzureDevOpsOrgInner> beginCreateOrUpdate(String resourceGroupName,
- String securityConnectorName, String orgName, AzureDevOpsOrgInner azureDevOpsOrg);
-
- /**
- * Creates or updates monitored Azure DevOps organization details.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param azureDevOpsOrg The Azure DevOps organization resource payload.
- * @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 {@link SyncPoller} for polling of azure DevOps Organization resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AzureDevOpsOrgInner> beginCreateOrUpdate(String resourceGroupName,
- String securityConnectorName, String orgName, AzureDevOpsOrgInner azureDevOpsOrg, Context context);
-
- /**
- * Creates or updates monitored Azure DevOps organization details.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param azureDevOpsOrg The Azure DevOps organization resource payload.
- * @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 azure DevOps Organization resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AzureDevOpsOrgInner createOrUpdate(String resourceGroupName, String securityConnectorName, String orgName,
- AzureDevOpsOrgInner azureDevOpsOrg);
-
- /**
- * Creates or updates monitored Azure DevOps organization details.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param azureDevOpsOrg The Azure DevOps organization resource payload.
- * @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 azure DevOps Organization resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AzureDevOpsOrgInner createOrUpdate(String resourceGroupName, String securityConnectorName, String orgName,
- AzureDevOpsOrgInner azureDevOpsOrg, Context context);
-
- /**
- * Updates monitored Azure DevOps organization details.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param azureDevOpsOrg The Azure DevOps organization resource payload.
- * @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 {@link SyncPoller} for polling of azure DevOps Organization resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AzureDevOpsOrgInner> beginUpdate(String resourceGroupName,
- String securityConnectorName, String orgName, AzureDevOpsOrgInner azureDevOpsOrg);
-
- /**
- * Updates monitored Azure DevOps organization details.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param azureDevOpsOrg The Azure DevOps organization resource payload.
- * @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 {@link SyncPoller} for polling of azure DevOps Organization resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AzureDevOpsOrgInner> beginUpdate(String resourceGroupName,
- String securityConnectorName, String orgName, AzureDevOpsOrgInner azureDevOpsOrg, Context context);
-
- /**
- * Updates monitored Azure DevOps organization details.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param azureDevOpsOrg The Azure DevOps organization resource payload.
- * @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 azure DevOps Organization resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AzureDevOpsOrgInner update(String resourceGroupName, String securityConnectorName, String orgName,
- AzureDevOpsOrgInner azureDevOpsOrg);
-
- /**
- * Updates monitored Azure DevOps organization details.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param azureDevOpsOrg The Azure DevOps organization resource payload.
- * @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 azure DevOps Organization resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AzureDevOpsOrgInner update(String resourceGroupName, String securityConnectorName, String orgName,
- AzureDevOpsOrgInner azureDevOpsOrg, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AzureDevOpsProjectsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AzureDevOpsProjectsClient.java
deleted file mode 100644
index 8f0c62b567356..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AzureDevOpsProjectsClient.java
+++ /dev/null
@@ -1,225 +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.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.security.fluent.models.AzureDevOpsProjectInner;
-
-/**
- * An instance of this class provides access to all the operations defined in AzureDevOpsProjectsClient.
- */
-public interface AzureDevOpsProjectsClient {
- /**
- * Returns a list of Azure DevOps projects onboarded to the connector.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization 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 list of RP resources which supports pagination as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String securityConnectorName, String orgName);
-
- /**
- * Returns a list of Azure DevOps projects onboarded to the connector.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization 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 list of RP resources which supports pagination as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String securityConnectorName, String orgName,
- Context context);
-
- /**
- * Returns a monitored Azure DevOps project resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param projectName The project 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 azure DevOps Project resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String securityConnectorName,
- String orgName, String projectName, Context context);
-
- /**
- * Returns a monitored Azure DevOps project resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param projectName The project 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 azure DevOps Project resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AzureDevOpsProjectInner get(String resourceGroupName, String securityConnectorName, String orgName,
- String projectName);
-
- /**
- * Creates or updates a monitored Azure DevOps project resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param projectName The project name.
- * @param azureDevOpsProject The Azure DevOps project resource payload.
- * @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 {@link SyncPoller} for polling of azure DevOps Project resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AzureDevOpsProjectInner> beginCreateOrUpdate(
- String resourceGroupName, String securityConnectorName, String orgName, String projectName,
- AzureDevOpsProjectInner azureDevOpsProject);
-
- /**
- * Creates or updates a monitored Azure DevOps project resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param projectName The project name.
- * @param azureDevOpsProject The Azure DevOps project resource payload.
- * @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 {@link SyncPoller} for polling of azure DevOps Project resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AzureDevOpsProjectInner> beginCreateOrUpdate(
- String resourceGroupName, String securityConnectorName, String orgName, String projectName,
- AzureDevOpsProjectInner azureDevOpsProject, Context context);
-
- /**
- * Creates or updates a monitored Azure DevOps project resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param projectName The project name.
- * @param azureDevOpsProject The Azure DevOps project resource payload.
- * @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 azure DevOps Project resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AzureDevOpsProjectInner createOrUpdate(String resourceGroupName, String securityConnectorName, String orgName,
- String projectName, AzureDevOpsProjectInner azureDevOpsProject);
-
- /**
- * Creates or updates a monitored Azure DevOps project resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param projectName The project name.
- * @param azureDevOpsProject The Azure DevOps project resource payload.
- * @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 azure DevOps Project resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AzureDevOpsProjectInner createOrUpdate(String resourceGroupName, String securityConnectorName, String orgName,
- String projectName, AzureDevOpsProjectInner azureDevOpsProject, Context context);
-
- /**
- * Updates a monitored Azure DevOps project resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param projectName The project name.
- * @param azureDevOpsProject The Azure DevOps project resource payload.
- * @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 {@link SyncPoller} for polling of azure DevOps Project resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AzureDevOpsProjectInner> beginUpdate(String resourceGroupName,
- String securityConnectorName, String orgName, String projectName, AzureDevOpsProjectInner azureDevOpsProject);
-
- /**
- * Updates a monitored Azure DevOps project resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param projectName The project name.
- * @param azureDevOpsProject The Azure DevOps project resource payload.
- * @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 {@link SyncPoller} for polling of azure DevOps Project resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AzureDevOpsProjectInner> beginUpdate(String resourceGroupName,
- String securityConnectorName, String orgName, String projectName, AzureDevOpsProjectInner azureDevOpsProject,
- Context context);
-
- /**
- * Updates a monitored Azure DevOps project resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param projectName The project name.
- * @param azureDevOpsProject The Azure DevOps project resource payload.
- * @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 azure DevOps Project resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AzureDevOpsProjectInner update(String resourceGroupName, String securityConnectorName, String orgName,
- String projectName, AzureDevOpsProjectInner azureDevOpsProject);
-
- /**
- * Updates a monitored Azure DevOps project resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param projectName The project name.
- * @param azureDevOpsProject The Azure DevOps project resource payload.
- * @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 azure DevOps Project resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AzureDevOpsProjectInner update(String resourceGroupName, String securityConnectorName, String orgName,
- String projectName, AzureDevOpsProjectInner azureDevOpsProject, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AzureDevOpsReposClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AzureDevOpsReposClient.java
deleted file mode 100644
index 0c8ef8061ae1e..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AzureDevOpsReposClient.java
+++ /dev/null
@@ -1,239 +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.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.security.fluent.models.AzureDevOpsRepositoryInner;
-
-/**
- * An instance of this class provides access to all the operations defined in AzureDevOpsReposClient.
- */
-public interface AzureDevOpsReposClient {
- /**
- * Returns a list of Azure DevOps repositories onboarded to the connector.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param projectName The project 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 list of RP resources which supports pagination as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String securityConnectorName,
- String orgName, String projectName);
-
- /**
- * Returns a list of Azure DevOps repositories onboarded to the connector.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param projectName The project 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 list of RP resources which supports pagination as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String securityConnectorName,
- String orgName, String projectName, Context context);
-
- /**
- * Returns a monitored Azure DevOps repository resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param projectName The project name.
- * @param repoName The repository 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 azure DevOps Repository resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String securityConnectorName,
- String orgName, String projectName, String repoName, Context context);
-
- /**
- * Returns a monitored Azure DevOps repository resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param projectName The project name.
- * @param repoName The repository 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 azure DevOps Repository resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AzureDevOpsRepositoryInner get(String resourceGroupName, String securityConnectorName, String orgName,
- String projectName, String repoName);
-
- /**
- * Creates or updates a monitored Azure DevOps repository resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param projectName The project name.
- * @param repoName The repository name.
- * @param azureDevOpsRepository The Azure DevOps repository resource payload.
- * @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 {@link SyncPoller} for polling of azure DevOps Repository resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AzureDevOpsRepositoryInner> beginCreateOrUpdate(
- String resourceGroupName, String securityConnectorName, String orgName, String projectName, String repoName,
- AzureDevOpsRepositoryInner azureDevOpsRepository);
-
- /**
- * Creates or updates a monitored Azure DevOps repository resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param projectName The project name.
- * @param repoName The repository name.
- * @param azureDevOpsRepository The Azure DevOps repository resource payload.
- * @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 {@link SyncPoller} for polling of azure DevOps Repository resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AzureDevOpsRepositoryInner> beginCreateOrUpdate(
- String resourceGroupName, String securityConnectorName, String orgName, String projectName, String repoName,
- AzureDevOpsRepositoryInner azureDevOpsRepository, Context context);
-
- /**
- * Creates or updates a monitored Azure DevOps repository resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param projectName The project name.
- * @param repoName The repository name.
- * @param azureDevOpsRepository The Azure DevOps repository resource payload.
- * @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 azure DevOps Repository resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AzureDevOpsRepositoryInner createOrUpdate(String resourceGroupName, String securityConnectorName, String orgName,
- String projectName, String repoName, AzureDevOpsRepositoryInner azureDevOpsRepository);
-
- /**
- * Creates or updates a monitored Azure DevOps repository resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param projectName The project name.
- * @param repoName The repository name.
- * @param azureDevOpsRepository The Azure DevOps repository resource payload.
- * @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 azure DevOps Repository resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AzureDevOpsRepositoryInner createOrUpdate(String resourceGroupName, String securityConnectorName, String orgName,
- String projectName, String repoName, AzureDevOpsRepositoryInner azureDevOpsRepository, Context context);
-
- /**
- * Updates a monitored Azure DevOps repository resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param projectName The project name.
- * @param repoName The repository name.
- * @param azureDevOpsRepository The Azure DevOps repository resource payload.
- * @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 {@link SyncPoller} for polling of azure DevOps Repository resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AzureDevOpsRepositoryInner> beginUpdate(String resourceGroupName,
- String securityConnectorName, String orgName, String projectName, String repoName,
- AzureDevOpsRepositoryInner azureDevOpsRepository);
-
- /**
- * Updates a monitored Azure DevOps repository resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param projectName The project name.
- * @param repoName The repository name.
- * @param azureDevOpsRepository The Azure DevOps repository resource payload.
- * @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 {@link SyncPoller} for polling of azure DevOps Repository resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AzureDevOpsRepositoryInner> beginUpdate(String resourceGroupName,
- String securityConnectorName, String orgName, String projectName, String repoName,
- AzureDevOpsRepositoryInner azureDevOpsRepository, Context context);
-
- /**
- * Updates a monitored Azure DevOps repository resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param projectName The project name.
- * @param repoName The repository name.
- * @param azureDevOpsRepository The Azure DevOps repository resource payload.
- * @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 azure DevOps Repository resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AzureDevOpsRepositoryInner update(String resourceGroupName, String securityConnectorName, String orgName,
- String projectName, String repoName, AzureDevOpsRepositoryInner azureDevOpsRepository);
-
- /**
- * Updates a monitored Azure DevOps repository resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param orgName The Azure DevOps organization name.
- * @param projectName The project name.
- * @param repoName The repository name.
- * @param azureDevOpsRepository The Azure DevOps repository resource payload.
- * @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 azure DevOps Repository resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AzureDevOpsRepositoryInner update(String resourceGroupName, String securityConnectorName, String orgName,
- String projectName, String repoName, AzureDevOpsRepositoryInner azureDevOpsRepository, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CompliancesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CompliancesClient.java
deleted file mode 100644
index a592b826901c0..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CompliancesClient.java
+++ /dev/null
@@ -1,73 +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.ComplianceInner;
-
-/**
- * An instance of this class provides access to all the operations defined in CompliancesClient.
- */
-public interface CompliancesClient {
- /**
- * The Compliance scores of the specific management group.
- *
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
- * @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 Compliance objects response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope);
-
- /**
- * The Compliance scores of the specific management group.
- *
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
- * @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 Compliance objects response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope, Context context);
-
- /**
- * Details of a specific Compliance.
- *
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
- * @param complianceName name of the Compliance.
- * @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 compliance of a scope along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String scope, String complianceName, Context context);
-
- /**
- * Details of a specific Compliance.
- *
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
- * @param complianceName name of the Compliance.
- * @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 compliance of a scope.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ComplianceInner get(String scope, String complianceName);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ConnectorsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ConnectorsClient.java
deleted file mode 100644
index 7f2e366138284..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ConnectorsClient.java
+++ /dev/null
@@ -1,120 +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.ConnectorSettingInner;
-
-/**
- * An instance of this class provides access to all the operations defined in ConnectorsClient.
- */
-public interface ConnectorsClient {
- /**
- * Cloud accounts connectors of a 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 for a subscription, list of all cloud account connectors and their settings as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Cloud accounts connectors of a 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 for a subscription, list of all cloud account connectors and their settings as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * Details of a specific cloud account connector.
- *
- * @param connectorName Name of the cloud account connector.
- * @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 connector setting along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String connectorName, Context context);
-
- /**
- * Details of a specific cloud account connector.
- *
- * @param connectorName Name of the cloud account connector.
- * @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 connector setting.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ConnectorSettingInner get(String connectorName);
-
- /**
- * Create a cloud account connector or update an existing one. Connect to your cloud account. For AWS, use either
- * account credentials or role-based authentication. For GCP, use account organization credentials.
- *
- * @param connectorName Name of the cloud account connector.
- * @param connectorSetting Settings for the cloud account connector.
- * @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 connector setting along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String connectorName,
- ConnectorSettingInner connectorSetting, Context context);
-
- /**
- * Create a cloud account connector or update an existing one. Connect to your cloud account. For AWS, use either
- * account credentials or role-based authentication. For GCP, use account organization credentials.
- *
- * @param connectorName Name of the cloud account connector.
- * @param connectorSetting Settings for the cloud account connector.
- * @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 connector setting.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ConnectorSettingInner createOrUpdate(String connectorName, ConnectorSettingInner connectorSetting);
-
- /**
- * Delete a cloud account connector from a subscription.
- *
- * @param connectorName Name of the cloud account connector.
- * @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 {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String connectorName, Context context);
-
- /**
- * Delete a cloud account connector from a subscription.
- *
- * @param connectorName Name of the cloud account connector.
- * @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 connectorName);
-}
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
deleted file mode 100644
index d274216083560..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomAssessmentAutomationsClient.java
+++ /dev/null
@@ -1,182 +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.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 custom assessment automation
- *
- * 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 along with
- * {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName,
- String customAssessmentAutomationName, Context context);
-
- /**
- * Gets a custom assessment automation
- *
- * 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);
-
- /**
- * Creates a custom assessment automation
- *
- * 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 along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(String resourceGroupName,
- String customAssessmentAutomationName, CustomAssessmentAutomationRequest customAssessmentAutomationBody,
- Context context);
-
- /**
- * Creates a custom assessment automation
- *
- * 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);
-
- /**
- * Deletes a custom assessment automation
- *
- * 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 {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String customAssessmentAutomationName, Context context);
-
- /**
- * Deletes a custom assessment automation
- *
- * 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);
-
- /**
- * List custom assessment automations in a subscription and a resource group
- *
- * 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 as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * List custom assessment automations in a subscription and a resource group
- *
- * 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 as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
-
- /**
- * List custom assessment automations in a subscription
- *
- * 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 as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * List custom assessment automations in a subscription
- *
- * 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 as paginated response with {@link PagedIterable}.
- */
- @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
deleted file mode 100644
index 74a13bec8c99f..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomEntityStoreAssignmentsClient.java
+++ /dev/null
@@ -1,182 +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.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 custom entity store assignment
- *
- * 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 along
- * with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName,
- String customEntityStoreAssignmentName, Context context);
-
- /**
- * Gets a custom entity store assignment
- *
- * 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);
-
- /**
- * Creates a custom entity store assignment
- *
- * 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 along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(String resourceGroupName,
- String customEntityStoreAssignmentName,
- CustomEntityStoreAssignmentRequest customEntityStoreAssignmentRequestBody, Context context);
-
- /**
- * Creates a custom entity store assignment
- *
- * 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);
-
- /**
- * Deleted a custom entity store assignment
- *
- * 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 {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String customEntityStoreAssignmentName,
- Context context);
-
- /**
- * Deleted a custom entity store assignment
- *
- * 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);
-
- /**
- * List custom entity store assignments in a subscription and a resource group
- *
- * 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 as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * List custom entity store assignments in a subscription and a resource group
- *
- * 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 as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
-
- /**
- * List custom entity store assignments in a subscription
- *
- * 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 as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * List custom entity store assignments in a subscription
- *
- * 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 as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DefenderForStoragesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DefenderForStoragesClient.java
deleted file mode 100644
index f092ddc308def..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DefenderForStoragesClient.java
+++ /dev/null
@@ -1,165 +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.DefenderForStorageSettingInner;
-import com.azure.resourcemanager.security.fluent.models.MalwareScanInner;
-import com.azure.resourcemanager.security.models.SettingName;
-
-/**
- * An instance of this class provides access to all the operations defined in DefenderForStoragesClient.
- */
-public interface DefenderForStoragesClient {
- /**
- * Gets the Defender for Storage settings for the specified storage account.
- *
- * @param resourceId The identifier of the resource.
- * @param settingName Defender for Storage setting 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 Defender for Storage settings for the specified storage account along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceId, SettingName settingName,
- Context context);
-
- /**
- * Gets the Defender for Storage settings for the specified storage account.
- *
- * @param resourceId The identifier of the resource.
- * @param settingName Defender for Storage setting 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 Defender for Storage settings for the specified storage account.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DefenderForStorageSettingInner get(String resourceId, SettingName settingName);
-
- /**
- * Creates or updates the Defender for Storage settings on a specified storage account.
- *
- * @param resourceId The identifier of the resource.
- * @param settingName Defender for Storage setting name.
- * @param defenderForStorageSetting Defender for Storage 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 Defender for Storage resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(String resourceId, SettingName settingName,
- DefenderForStorageSettingInner defenderForStorageSetting, Context context);
-
- /**
- * Creates or updates the Defender for Storage settings on a specified storage account.
- *
- * @param resourceId The identifier of the resource.
- * @param settingName Defender for Storage setting name.
- * @param defenderForStorageSetting Defender for Storage Settings.
- * @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 Defender for Storage resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DefenderForStorageSettingInner create(String resourceId, SettingName settingName,
- DefenderForStorageSettingInner defenderForStorageSetting);
-
- /**
- * Initiate a Defender for Storage malware scan for the specified storage account.
- *
- * @param resourceId The identifier of the resource.
- * @param settingName Defender for Storage setting 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 describes the state of a malware scan operation along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response startMalwareScanWithResponse(String resourceId, SettingName settingName,
- Context context);
-
- /**
- * Initiate a Defender for Storage malware scan for the specified storage account.
- *
- * @param resourceId The identifier of the resource.
- * @param settingName Defender for Storage setting 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 describes the state of a malware scan operation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- MalwareScanInner startMalwareScan(String resourceId, SettingName settingName);
-
- /**
- * Cancels a Defender for Storage malware scan for the specified storage account.
- *
- * @param resourceId The identifier of the resource.
- * @param settingName Defender for Storage setting name.
- * @param scanId The identifier of the scan. Can be either 'latest' or a 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 describes the state of a malware scan operation along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response cancelMalwareScanWithResponse(String resourceId, SettingName settingName, String scanId,
- Context context);
-
- /**
- * Cancels a Defender for Storage malware scan for the specified storage account.
- *
- * @param resourceId The identifier of the resource.
- * @param settingName Defender for Storage setting name.
- * @param scanId The identifier of the scan. Can be either 'latest' or a 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 describes the state of a malware scan operation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- MalwareScanInner cancelMalwareScan(String resourceId, SettingName settingName, String scanId);
-
- /**
- * Gets the Defender for Storage malware scan for the specified storage resource.
- *
- * @param resourceId The identifier of the resource.
- * @param settingName Defender for Storage setting name.
- * @param scanId The identifier of the scan. Can be either 'latest' or a 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 Defender for Storage malware scan for the specified storage resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getMalwareScanWithResponse(String resourceId, SettingName settingName, String scanId,
- Context context);
-
- /**
- * Gets the Defender for Storage malware scan for the specified storage resource.
- *
- * @param resourceId The identifier of the resource.
- * @param settingName Defender for Storage setting name.
- * @param scanId The identifier of the scan. Can be either 'latest' or a 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 the Defender for Storage malware scan for the specified storage resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- MalwareScanInner getMalwareScan(String resourceId, SettingName settingName, String scanId);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevOpsConfigurationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevOpsConfigurationsClient.java
deleted file mode 100644
index 072a55b3132f0..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevOpsConfigurationsClient.java
+++ /dev/null
@@ -1,253 +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.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.security.fluent.models.DevOpsConfigurationInner;
-
-/**
- * An instance of this class provides access to all the operations defined in DevOpsConfigurationsClient.
- */
-public interface DevOpsConfigurationsClient {
- /**
- * List DevOps Configurations.
- *
- * @param resourceGroupName The name of the resource group. 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 list of RP resources which supports pagination as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String securityConnectorName);
-
- /**
- * List DevOps Configurations.
- *
- * @param resourceGroupName The name of the resource group. 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 list of RP resources which supports pagination as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String securityConnectorName,
- Context context);
-
- /**
- * Gets a DevOps Configuration.
- *
- * @param resourceGroupName The name of the resource group. 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 a DevOps Configuration along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String securityConnectorName,
- Context context);
-
- /**
- * Gets a DevOps Configuration.
- *
- * @param resourceGroupName The name of the resource group. 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 a DevOps Configuration.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DevOpsConfigurationInner get(String resourceGroupName, String securityConnectorName);
-
- /**
- * Creates or updates a DevOps Configuration.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param devOpsConfiguration The DevOps configuration resource payload.
- * @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 {@link SyncPoller} for polling of devOps Configuration resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DevOpsConfigurationInner> beginCreateOrUpdate(
- String resourceGroupName, String securityConnectorName, DevOpsConfigurationInner devOpsConfiguration);
-
- /**
- * Creates or updates a DevOps Configuration.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param devOpsConfiguration The DevOps configuration resource payload.
- * @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 {@link SyncPoller} for polling of devOps Configuration resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DevOpsConfigurationInner> beginCreateOrUpdate(
- String resourceGroupName, String securityConnectorName, DevOpsConfigurationInner devOpsConfiguration,
- Context context);
-
- /**
- * Creates or updates a DevOps Configuration.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param devOpsConfiguration The DevOps configuration resource payload.
- * @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 devOps Configuration resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DevOpsConfigurationInner createOrUpdate(String resourceGroupName, String securityConnectorName,
- DevOpsConfigurationInner devOpsConfiguration);
-
- /**
- * Creates or updates a DevOps Configuration.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param devOpsConfiguration The DevOps configuration resource payload.
- * @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 devOps Configuration resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DevOpsConfigurationInner createOrUpdate(String resourceGroupName, String securityConnectorName,
- DevOpsConfigurationInner devOpsConfiguration, Context context);
-
- /**
- * Updates a DevOps Configuration.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param devOpsConfiguration The DevOps configuration resource payload.
- * @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 {@link SyncPoller} for polling of devOps Configuration resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DevOpsConfigurationInner> beginUpdate(String resourceGroupName,
- String securityConnectorName, DevOpsConfigurationInner devOpsConfiguration);
-
- /**
- * Updates a DevOps Configuration.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param devOpsConfiguration The DevOps configuration resource payload.
- * @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 {@link SyncPoller} for polling of devOps Configuration resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DevOpsConfigurationInner> beginUpdate(String resourceGroupName,
- String securityConnectorName, DevOpsConfigurationInner devOpsConfiguration, Context context);
-
- /**
- * Updates a DevOps Configuration.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param devOpsConfiguration The DevOps configuration resource payload.
- * @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 devOps Configuration resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DevOpsConfigurationInner update(String resourceGroupName, String securityConnectorName,
- DevOpsConfigurationInner devOpsConfiguration);
-
- /**
- * Updates a DevOps Configuration.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param devOpsConfiguration The DevOps configuration resource payload.
- * @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 devOps Configuration resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DevOpsConfigurationInner update(String resourceGroupName, String securityConnectorName,
- DevOpsConfigurationInner devOpsConfiguration, Context context);
-
- /**
- * Deletes a DevOps Connector.
- *
- * @param resourceGroupName The name of the resource group. 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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String securityConnectorName);
-
- /**
- * Deletes a DevOps Connector.
- *
- * @param resourceGroupName The name of the resource group. 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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String securityConnectorName,
- Context context);
-
- /**
- * Deletes a DevOps Connector.
- *
- * @param resourceGroupName The name of the resource group. 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 DevOps Connector.
- *
- * @param resourceGroupName The name of the resource group. 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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String securityConnectorName, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevOpsOperationResultsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevOpsOperationResultsClient.java
deleted file mode 100644
index 104278955f2d8..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevOpsOperationResultsClient.java
+++ /dev/null
@@ -1,46 +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.OperationStatusResultInner;
-
-/**
- * An instance of this class provides access to all the operations defined in DevOpsOperationResultsClient.
- */
-public interface DevOpsOperationResultsClient {
- /**
- * Get devops long running operation result.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param operationResultId The operation result Id.
- * @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 devops long running operation result along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String securityConnectorName,
- String operationResultId, Context context);
-
- /**
- * Get devops long running operation result.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param operationResultId The operation result Id.
- * @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 devops long running operation result.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner get(String resourceGroupName, String securityConnectorName, String operationResultId);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevOpsPoliciesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevOpsPoliciesClient.java
deleted file mode 100644
index e395c3b7cfbaf..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevOpsPoliciesClient.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.DevOpsPolicyInner;
-
-/**
- * An instance of this class provides access to all the operations defined in DevOpsPoliciesClient.
- */
-public interface DevOpsPoliciesClient {
- /**
- * Returns a list of DevOps Policies.
- *
- * @param resourceGroupName The name of the resource group. 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 list of RP resources which supports pagination as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String securityConnectorName);
-
- /**
- * Returns a list of DevOps Policies.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param devOpsPolicyType Optional filter for listing the policies.
- * @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 RP resources which supports pagination as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String securityConnectorName,
- String devOpsPolicyType, Context context);
-
- /**
- * Returns a DevOps Policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param policyName The policy 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 devOps Policy Resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String securityConnectorName,
- String policyName, Context context);
-
- /**
- * Returns a DevOps Policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param policyName The policy 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 devOps Policy Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DevOpsPolicyInner get(String resourceGroupName, String securityConnectorName, String policyName);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevOpsPolicyAssignmentsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevOpsPolicyAssignmentsClient.java
deleted file mode 100644
index 2c9701b130637..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevOpsPolicyAssignmentsClient.java
+++ /dev/null
@@ -1,273 +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.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.security.fluent.models.DevOpsPolicyAssignmentInner;
-
-/**
- * An instance of this class provides access to all the operations defined in DevOpsPolicyAssignmentsClient.
- */
-public interface DevOpsPolicyAssignmentsClient {
- /**
- * Returns a list of DevOps Policy Assignments.
- *
- * @param resourceGroupName The name of the resource group. 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 list of RP resources which supports pagination as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String securityConnectorName);
-
- /**
- * Returns a list of DevOps Policy Assignments.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param devOpsPolicyType Optional filter for listing the policies.
- * @param resourceId Optional filter for listing the assignments of a specific 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 list of RP resources which supports pagination as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String securityConnectorName,
- String devOpsPolicyType, String resourceId, Context context);
-
- /**
- * Returns a DevOps Policy Assignment Resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param policyAssignmentId The policy assignment Id.
- * @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 devOps Policy assignment resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String securityConnectorName,
- String policyAssignmentId, Context context);
-
- /**
- * Returns a DevOps Policy Assignment Resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param policyAssignmentId The policy assignment Id.
- * @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 devOps Policy assignment resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DevOpsPolicyAssignmentInner get(String resourceGroupName, String securityConnectorName, String policyAssignmentId);
-
- /**
- * Creates or updates a DevOps Policy Assignment Resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param policyAssignmentId The policy assignment Id.
- * @param devOpsPolicyAssignment The DevOps Policy Assignment.
- * @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 {@link SyncPoller} for polling of devOps Policy assignment resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DevOpsPolicyAssignmentInner> beginCreateOrUpdate(
- String resourceGroupName, String securityConnectorName, String policyAssignmentId,
- DevOpsPolicyAssignmentInner devOpsPolicyAssignment);
-
- /**
- * Creates or updates a DevOps Policy Assignment Resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param policyAssignmentId The policy assignment Id.
- * @param devOpsPolicyAssignment The DevOps Policy Assignment.
- * @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 {@link SyncPoller} for polling of devOps Policy assignment resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DevOpsPolicyAssignmentInner> beginCreateOrUpdate(
- String resourceGroupName, String securityConnectorName, String policyAssignmentId,
- DevOpsPolicyAssignmentInner devOpsPolicyAssignment, Context context);
-
- /**
- * Creates or updates a DevOps Policy Assignment Resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param policyAssignmentId The policy assignment Id.
- * @param devOpsPolicyAssignment The DevOps Policy Assignment.
- * @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 devOps Policy assignment resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DevOpsPolicyAssignmentInner createOrUpdate(String resourceGroupName, String securityConnectorName,
- String policyAssignmentId, DevOpsPolicyAssignmentInner devOpsPolicyAssignment);
-
- /**
- * Creates or updates a DevOps Policy Assignment Resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param policyAssignmentId The policy assignment Id.
- * @param devOpsPolicyAssignment The DevOps Policy Assignment.
- * @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 devOps Policy assignment resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DevOpsPolicyAssignmentInner createOrUpdate(String resourceGroupName, String securityConnectorName,
- String policyAssignmentId, DevOpsPolicyAssignmentInner devOpsPolicyAssignment, Context context);
-
- /**
- * Updates a DevOps Policy Assignment Resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param policyAssignmentId The policy assignment Id.
- * @param devOpsPolicyAssignment The DevOps Policy Assignment.
- * @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 {@link SyncPoller} for polling of devOps Policy assignment resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DevOpsPolicyAssignmentInner> beginUpdate(
- String resourceGroupName, String securityConnectorName, String policyAssignmentId,
- DevOpsPolicyAssignmentInner devOpsPolicyAssignment);
-
- /**
- * Updates a DevOps Policy Assignment Resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param policyAssignmentId The policy assignment Id.
- * @param devOpsPolicyAssignment The DevOps Policy Assignment.
- * @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 {@link SyncPoller} for polling of devOps Policy assignment resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DevOpsPolicyAssignmentInner> beginUpdate(
- String resourceGroupName, String securityConnectorName, String policyAssignmentId,
- DevOpsPolicyAssignmentInner devOpsPolicyAssignment, Context context);
-
- /**
- * Updates a DevOps Policy Assignment Resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param policyAssignmentId The policy assignment Id.
- * @param devOpsPolicyAssignment The DevOps Policy Assignment.
- * @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 devOps Policy assignment resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DevOpsPolicyAssignmentInner update(String resourceGroupName, String securityConnectorName,
- String policyAssignmentId, DevOpsPolicyAssignmentInner devOpsPolicyAssignment);
-
- /**
- * Updates a DevOps Policy Assignment Resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param policyAssignmentId The policy assignment Id.
- * @param devOpsPolicyAssignment The DevOps Policy Assignment.
- * @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 devOps Policy assignment resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DevOpsPolicyAssignmentInner update(String resourceGroupName, String securityConnectorName,
- String policyAssignmentId, DevOpsPolicyAssignmentInner devOpsPolicyAssignment, Context context);
-
- /**
- * Deletes a DevOps Policy Assignment Resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param policyAssignmentId The policy assignment Id.
- * @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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String securityConnectorName,
- String policyAssignmentId);
-
- /**
- * Deletes a DevOps Policy Assignment Resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param policyAssignmentId The policy assignment Id.
- * @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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String securityConnectorName,
- String policyAssignmentId, Context context);
-
- /**
- * Deletes a DevOps Policy Assignment Resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param policyAssignmentId The policy assignment Id.
- * @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, String policyAssignmentId);
-
- /**
- * Deletes a DevOps Policy Assignment Resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param policyAssignmentId The policy assignment Id.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String securityConnectorName, String policyAssignmentId, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitHubOwnersClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitHubOwnersClient.java
deleted file mode 100644
index 7a4c2cb6a4a40..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitHubOwnersClient.java
+++ /dev/null
@@ -1,103 +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.GitHubOwnerInner;
-import com.azure.resourcemanager.security.fluent.models.GitHubOwnerListResponseInner;
-
-/**
- * An instance of this class provides access to all the operations defined in GitHubOwnersClient.
- */
-public interface GitHubOwnersClient {
- /**
- * Returns a list of all GitHub owners accessible by the user token consumed by the connector.
- *
- * @param resourceGroupName The name of the resource group. 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 list of RP resources which supports pagination along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listAvailableWithResponse(String resourceGroupName,
- String securityConnectorName, Context context);
-
- /**
- * Returns a list of all GitHub owners accessible by the user token consumed by the connector.
- *
- * @param resourceGroupName The name of the resource group. 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 list of RP resources which supports pagination.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- GitHubOwnerListResponseInner listAvailable(String resourceGroupName, String securityConnectorName);
-
- /**
- * Returns a list of GitHub owners onboarded to the connector.
- *
- * @param resourceGroupName The name of the resource group. 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 list of RP resources which supports pagination as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String securityConnectorName);
-
- /**
- * Returns a list of GitHub owners onboarded to the connector.
- *
- * @param resourceGroupName The name of the resource group. 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 list of RP resources which supports pagination as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String securityConnectorName, Context context);
-
- /**
- * Returns a monitored GitHub owner.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param ownerName The GitHub owner 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 gitHub Owner resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String securityConnectorName, String ownerName,
- Context context);
-
- /**
- * Returns a monitored GitHub owner.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param ownerName The GitHub owner 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 gitHub Owner resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- GitHubOwnerInner get(String resourceGroupName, String securityConnectorName, String ownerName);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitHubReposClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitHubReposClient.java
deleted file mode 100644
index fc4eb380b972a..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitHubReposClient.java
+++ /dev/null
@@ -1,80 +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.GitHubRepositoryInner;
-
-/**
- * An instance of this class provides access to all the operations defined in GitHubReposClient.
- */
-public interface GitHubReposClient {
- /**
- * Returns a list of GitHub repositories onboarded to the connector.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param ownerName The GitHub owner 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 list of RP resources which supports pagination as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String securityConnectorName, String ownerName);
-
- /**
- * Returns a list of GitHub repositories onboarded to the connector.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param ownerName The GitHub owner 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 list of RP resources which supports pagination as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String securityConnectorName, String ownerName,
- Context context);
-
- /**
- * Returns a monitored GitHub repository.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param ownerName The GitHub owner name.
- * @param repoName The repository 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 gitHub Repository resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String securityConnectorName,
- String ownerName, String repoName, Context context);
-
- /**
- * Returns a monitored GitHub repository.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param ownerName The GitHub owner name.
- * @param repoName The repository 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 gitHub Repository resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- GitHubRepositoryInner get(String resourceGroupName, String securityConnectorName, String ownerName,
- String repoName);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitLabGroupsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitLabGroupsClient.java
deleted file mode 100644
index a20ab3e0215d0..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitLabGroupsClient.java
+++ /dev/null
@@ -1,103 +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.GitLabGroupInner;
-import com.azure.resourcemanager.security.fluent.models.GitLabGroupListResponseInner;
-
-/**
- * An instance of this class provides access to all the operations defined in GitLabGroupsClient.
- */
-public interface GitLabGroupsClient {
- /**
- * Returns a list of all GitLab groups accessible by the user token consumed by the connector.
- *
- * @param resourceGroupName The name of the resource group. 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 list of RP resources which supports pagination along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listAvailableWithResponse(String resourceGroupName,
- String securityConnectorName, Context context);
-
- /**
- * Returns a list of all GitLab groups accessible by the user token consumed by the connector.
- *
- * @param resourceGroupName The name of the resource group. 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 list of RP resources which supports pagination.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- GitLabGroupListResponseInner listAvailable(String resourceGroupName, String securityConnectorName);
-
- /**
- * Returns a list of GitLab groups onboarded to the connector.
- *
- * @param resourceGroupName The name of the resource group. 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 list of RP resources which supports pagination as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String securityConnectorName);
-
- /**
- * Returns a list of GitLab groups onboarded to the connector.
- *
- * @param resourceGroupName The name of the resource group. 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 list of RP resources which supports pagination as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String securityConnectorName, Context context);
-
- /**
- * Returns a monitored GitLab Group resource for a given fully-qualified name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param groupFQName The GitLab group fully-qualified 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 gitLab Group resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String securityConnectorName,
- String groupFQName, Context context);
-
- /**
- * Returns a monitored GitLab Group resource for a given fully-qualified name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param groupFQName The GitLab group fully-qualified 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 gitLab Group resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- GitLabGroupInner get(String resourceGroupName, String securityConnectorName, String groupFQName);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitLabProjectsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitLabProjectsClient.java
deleted file mode 100644
index 9faf6c688bccf..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitLabProjectsClient.java
+++ /dev/null
@@ -1,82 +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.GitLabProjectInner;
-
-/**
- * An instance of this class provides access to all the operations defined in GitLabProjectsClient.
- */
-public interface GitLabProjectsClient {
- /**
- * Gets a list of GitLab projects that are directly owned by given group and onboarded to the connector.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param groupFQName The GitLab group fully-qualified 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 a list of GitLab projects that are directly owned by given group and onboarded to the connector as
- * paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String securityConnectorName, String groupFQName);
-
- /**
- * Gets a list of GitLab projects that are directly owned by given group and onboarded to the connector.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param groupFQName The GitLab group fully-qualified 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 a list of GitLab projects that are directly owned by given group and onboarded to the connector as
- * paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String securityConnectorName, String groupFQName,
- Context context);
-
- /**
- * Returns a monitored GitLab Project resource for a given fully-qualified group name and project name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param groupFQName The GitLab group fully-qualified name.
- * @param projectName The project 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 gitLab Project resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String securityConnectorName,
- String groupFQName, String projectName, Context context);
-
- /**
- * Returns a monitored GitLab Project resource for a given fully-qualified group name and project name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param groupFQName The GitLab group fully-qualified name.
- * @param projectName The project 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 gitLab Project resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- GitLabProjectInner get(String resourceGroupName, String securityConnectorName, String groupFQName,
- String projectName);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitLabSubgroupsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitLabSubgroupsClient.java
deleted file mode 100644
index ffcc005c753ba..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitLabSubgroupsClient.java
+++ /dev/null
@@ -1,46 +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.GitLabGroupListResponseInner;
-
-/**
- * An instance of this class provides access to all the operations defined in GitLabSubgroupsClient.
- */
-public interface GitLabSubgroupsClient {
- /**
- * Gets nested subgroups of given GitLab Group which are onboarded to the connector.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param groupFQName The GitLab group fully-qualified 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 nested subgroups of given GitLab Group which are onboarded to the connector along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(String resourceGroupName, String securityConnectorName,
- String groupFQName, Context context);
-
- /**
- * Gets nested subgroups of given GitLab Group which are onboarded to the connector.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param securityConnectorName The security connector name.
- * @param groupFQName The GitLab group fully-qualified 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 nested subgroups of given GitLab Group which are onboarded to the connector.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- GitLabGroupListResponseInner list(String resourceGroupName, String securityConnectorName, String groupFQName);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceAssignmentsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceAssignmentsClient.java
deleted file mode 100644
index bb00ad61eea32..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceAssignmentsClient.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.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.GovernanceAssignmentInner;
-
-/**
- * An instance of this class provides access to all the operations defined in GovernanceAssignmentsClient.
- */
-public interface GovernanceAssignmentsClient {
- /**
- * Get governance assignments on all of your resources inside a scope.
- *
- * @param scope The scope of the Governance assignments. Valid scopes are: subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- * @param assessmentName The Assessment Key - A unique key for the assessment 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 governance assignments on all of your resources inside a scope as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope, String assessmentName);
-
- /**
- * Get governance assignments on all of your resources inside a scope.
- *
- * @param scope The scope of the Governance assignments. Valid scopes are: subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- * @param assessmentName The Assessment Key - A unique key for the assessment 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 governance assignments on all of your resources inside a scope as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope, String assessmentName, Context context);
-
- /**
- * Get a specific governanceAssignment for the requested scope by AssignmentKey.
- *
- * @param scope The scope of the Governance assignments. Valid scopes are: subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- * @param assessmentName The Assessment Key - A unique key for the assessment type.
- * @param assignmentKey The governance assignment key - the assessment key of the required governance assignment.
- * @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 specific governanceAssignment for the requested scope by AssignmentKey along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String scope, String assessmentName, String assignmentKey,
- Context context);
-
- /**
- * Get a specific governanceAssignment for the requested scope by AssignmentKey.
- *
- * @param scope The scope of the Governance assignments. Valid scopes are: subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- * @param assessmentName The Assessment Key - A unique key for the assessment type.
- * @param assignmentKey The governance assignment key - the assessment key of the required governance assignment.
- * @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 specific governanceAssignment for the requested scope by AssignmentKey.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- GovernanceAssignmentInner get(String scope, String assessmentName, String assignmentKey);
-
- /**
- * Creates or updates a governance assignment on the given subscription.
- *
- * @param scope The scope of the Governance assignments. Valid scopes are: subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- * @param assessmentName The Assessment Key - A unique key for the assessment type.
- * @param assignmentKey The governance assignment key - the assessment key of the required governance assignment.
- * @param governanceAssignment Governance assignment over a subscription scope.
- * @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 governance assignment over a given scope along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String scope, String assessmentName,
- String assignmentKey, GovernanceAssignmentInner governanceAssignment, Context context);
-
- /**
- * Creates or updates a governance assignment on the given subscription.
- *
- * @param scope The scope of the Governance assignments. Valid scopes are: subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- * @param assessmentName The Assessment Key - A unique key for the assessment type.
- * @param assignmentKey The governance assignment key - the assessment key of the required governance assignment.
- * @param governanceAssignment Governance assignment over a subscription scope.
- * @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 governance assignment over a given scope.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- GovernanceAssignmentInner createOrUpdate(String scope, String assessmentName, String assignmentKey,
- GovernanceAssignmentInner governanceAssignment);
-
- /**
- * Delete a GovernanceAssignment over a given scope.
- *
- * @param scope The scope of the Governance assignments. Valid scopes are: subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- * @param assessmentName The Assessment Key - A unique key for the assessment type.
- * @param assignmentKey The governance assignment key - the assessment key of the required governance assignment.
- * @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 {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String scope, String assessmentName, String assignmentKey, Context context);
-
- /**
- * Delete a GovernanceAssignment over a given scope.
- *
- * @param scope The scope of the Governance assignments. Valid scopes are: subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- * @param assessmentName The Assessment Key - A unique key for the assessment type.
- * @param assignmentKey The governance assignment key - the assessment key of the required governance assignment.
- * @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 assessmentName, String assignmentKey);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceRulesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceRulesClient.java
deleted file mode 100644
index a75e3e9290b69..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceRulesClient.java
+++ /dev/null
@@ -1,289 +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.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.security.fluent.models.GovernanceRuleInner;
-import com.azure.resourcemanager.security.fluent.models.OperationResultAutoGeneratedInner;
-import com.azure.resourcemanager.security.models.ExecuteGovernanceRuleParams;
-import com.azure.resourcemanager.security.models.GovernanceRulesOperationResultsResponse;
-
-/**
- * An instance of this class provides access to all the operations defined in GovernanceRulesClient.
- */
-public interface GovernanceRulesClient {
- /**
- * Get a list of all relevant governance rules over a scope.
- *
- * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
- * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- * @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 all relevant governance rules over a scope as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope);
-
- /**
- * Get a list of all relevant governance rules over a scope.
- *
- * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
- * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- * @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 all relevant governance rules over a scope as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope, Context context);
-
- /**
- * Get a specific governance rule for the requested scope by ruleId.
- *
- * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
- * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- * @param ruleId The governance rule key - unique key for the standard governance rule (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 specific governance rule for the requested scope by ruleId along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String scope, String ruleId, Context context);
-
- /**
- * Get a specific governance rule for the requested scope by ruleId.
- *
- * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
- * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- * @param ruleId The governance rule key - unique key for the standard governance rule (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 specific governance rule for the requested scope by ruleId.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- GovernanceRuleInner get(String scope, String ruleId);
-
- /**
- * Creates or updates a governance rule over a given scope.
- *
- * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
- * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- * @param ruleId The governance rule key - unique key for the standard governance rule (GUID).
- * @param governanceRule Governance rule over a given scope.
- * @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 governance rule over a given scope along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String scope, String ruleId,
- GovernanceRuleInner governanceRule, Context context);
-
- /**
- * Creates or updates a governance rule over a given scope.
- *
- * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
- * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- * @param ruleId The governance rule key - unique key for the standard governance rule (GUID).
- * @param governanceRule Governance rule over a given scope.
- * @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 governance rule over a given scope.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- GovernanceRuleInner createOrUpdate(String scope, String ruleId, GovernanceRuleInner governanceRule);
-
- /**
- * Delete a Governance rule over a given scope.
- *
- * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
- * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- * @param ruleId The governance rule key - unique key for the standard governance rule (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 the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String scope, String ruleId);
-
- /**
- * Delete a Governance rule over a given scope.
- *
- * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
- * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- * @param ruleId The governance rule key - unique key for the standard governance rule (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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String scope, String ruleId, Context context);
-
- /**
- * Delete a Governance rule over a given scope.
- *
- * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
- * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- * @param ruleId The governance rule key - unique key for the standard governance rule (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 scope, String ruleId);
-
- /**
- * Delete a Governance rule over a given scope.
- *
- * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
- * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- * @param ruleId The governance rule key - unique key for the standard governance rule (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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String scope, String ruleId, Context context);
-
- /**
- * Execute a governance rule.
- *
- * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
- * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- * @param ruleId The governance rule key - unique key for the standard governance rule (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 the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginExecute(String scope, String ruleId);
-
- /**
- * Execute a governance rule.
- *
- * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
- * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- * @param ruleId The governance rule key - unique key for the standard governance rule (GUID).
- * @param executeGovernanceRuleParams Execute governance rule over a given scope.
- * @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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginExecute(String scope, String ruleId,
- ExecuteGovernanceRuleParams executeGovernanceRuleParams, Context context);
-
- /**
- * Execute a governance rule.
- *
- * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
- * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- * @param ruleId The governance rule key - unique key for the standard governance rule (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 execute(String scope, String ruleId);
-
- /**
- * Execute a governance rule.
- *
- * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
- * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- * @param ruleId The governance rule key - unique key for the standard governance rule (GUID).
- * @param executeGovernanceRuleParams Execute governance rule over a given scope.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void execute(String scope, String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams, Context context);
-
- /**
- * Get governance rules long run operation result for the requested scope by ruleId and operationId.
- *
- * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
- * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- * @param ruleId The governance rule key - unique key for the standard governance rule (GUID).
- * @param operationId The governance rule long running operation unique key.
- * @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 governance rules long run operation result for the requested scope by ruleId and operationId.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- GovernanceRulesOperationResultsResponse operationResultsWithResponse(String scope, String ruleId,
- String operationId, Context context);
-
- /**
- * Get governance rules long run operation result for the requested scope by ruleId and operationId.
- *
- * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
- * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- * @param ruleId The governance rule key - unique key for the standard governance rule (GUID).
- * @param operationId The governance rule long running operation unique key.
- * @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 governance rules long run operation result for the requested scope by ruleId and operationId.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- OperationResultAutoGeneratedInner operationResults(String scope, String ruleId, String operationId);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/HealthReportsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/HealthReportsClient.java
deleted file mode 100644
index 2db32bbb22aa4..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/HealthReportsClient.java
+++ /dev/null
@@ -1,73 +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.HealthReportInner;
-
-/**
- * An instance of this class provides access to all the operations defined in HealthReportsClient.
- */
-public interface HealthReportsClient {
- /**
- * Get a list of all health reports inside a scope. Valid scopes are: subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- *
- * @param scope The scope at which the operation is performed.
- * @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 all health reports inside a scope as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope);
-
- /**
- * Get a list of all health reports inside a scope. Valid scopes are: subscription (format:
- * 'subscriptions/{subscriptionId}'), or security connector (format:
- * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
- *
- * @param scope The scope at which the operation is performed.
- * @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 all health reports inside a scope as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope, Context context);
-
- /**
- * Get health report of resource.
- *
- * @param resourceId The identifier of the resource.
- * @param healthReportName The health report Key - Unique key for the health report 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 health report of resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceId, String healthReportName, Context context);
-
- /**
- * Get health report of resource.
- *
- * @param resourceId The identifier of the resource.
- * @param healthReportName The health report Key - Unique key for the health report 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 health report of resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- HealthReportInner get(String resourceId, String healthReportName);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/InformationProtectionPoliciesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/InformationProtectionPoliciesClient.java
deleted file mode 100644
index 4004e84aa1033..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/InformationProtectionPoliciesClient.java
+++ /dev/null
@@ -1,110 +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.InformationProtectionPolicyInner;
-import com.azure.resourcemanager.security.models.InformationProtectionPolicyName;
-
-/**
- * An instance of this class provides access to all the operations defined in InformationProtectionPoliciesClient.
- */
-public interface InformationProtectionPoliciesClient {
- /**
- * Details of the information protection policy.
- *
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
- * @param informationProtectionPolicyName Name of the information protection policy.
- * @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 protection policy along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String scope,
- InformationProtectionPolicyName informationProtectionPolicyName, Context context);
-
- /**
- * Details of the information protection policy.
- *
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
- * @param informationProtectionPolicyName Name of the information protection policy.
- * @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 protection policy.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- InformationProtectionPolicyInner get(String scope, InformationProtectionPolicyName informationProtectionPolicyName);
-
- /**
- * Details of the information protection policy.
- *
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
- * @param informationProtectionPolicyName Name of the information protection policy.
- * @param informationProtectionPolicy Information protection policy.
- * @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 protection policy along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String scope,
- InformationProtectionPolicyName informationProtectionPolicyName,
- InformationProtectionPolicyInner informationProtectionPolicy, Context context);
-
- /**
- * Details of the information protection policy.
- *
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
- * @param informationProtectionPolicyName Name of the information protection policy.
- * @param informationProtectionPolicy Information protection policy.
- * @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 protection policy.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- InformationProtectionPolicyInner createOrUpdate(String scope,
- InformationProtectionPolicyName informationProtectionPolicyName,
- InformationProtectionPolicyInner informationProtectionPolicy);
-
- /**
- * Information protection policies of a specific management group.
- *
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
- * @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 protection policies response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope);
-
- /**
- * Information protection policies of a specific management group.
- *
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
- * @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 protection policies response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/LocationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/LocationsClient.java
deleted file mode 100644
index 3addbc8dafd4c..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/LocationsClient.java
+++ /dev/null
@@ -1,70 +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.AscLocationInner;
-
-/**
- * An instance of this class provides access to all the operations defined in LocationsClient.
- */
-public interface LocationsClient {
- /**
- * The location of the responsible ASC of the specific subscription (home region). For each subscription there is
- * only one responsible location. The location in the response should be used to read or write other resources in
- * ASC according to their ID.
- *
- * @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 locations where ASC saves your data as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * The location of the responsible ASC of the specific subscription (home region). For each subscription there is
- * only one responsible location. The location in the response should be used to read or write other resources in
- * ASC according to their ID.
- *
- * @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 locations where ASC saves your data as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * Details of a specific location.
- *
- * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
- * locations.
- * @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 ASC location of the subscription is in the "name" field along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String ascLocation, Context context);
-
- /**
- * Details of a specific location.
- *
- * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
- * locations.
- * @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 ASC location of the subscription is in the "name" field.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AscLocationInner get(String ascLocation);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/MdeOnboardingsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/MdeOnboardingsClient.java
deleted file mode 100644
index 1326b7d829a95..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/MdeOnboardingsClient.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.MdeOnboardingDataInner;
-import com.azure.resourcemanager.security.fluent.models.MdeOnboardingDataListInner;
-
-/**
- * An instance of this class provides access to all the operations defined in MdeOnboardingsClient.
- */
-public interface MdeOnboardingsClient {
- /**
- * 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 all MDE onboarding data resources along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(Context context);
-
- /**
- * 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 all MDE onboarding data resources.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- MdeOnboardingDataListInner list();
-
- /**
- * The default 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 the resource of the configuration or data needed to onboard the machine to MDE along with
- * {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(Context context);
-
- /**
- * The default 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 the resource of the configuration or data needed to onboard the machine to MDE.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- MdeOnboardingDataInner get();
-}
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
deleted file mode 100644
index 3ce1a1869f471..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/OperationsClient.java
+++ /dev/null
@@ -1,40 +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.OperationInner;
-
-/**
- * An instance of this class provides access to all the operations defined in OperationsClient.
- */
-public interface OperationsClient {
- /**
- * Exposes all available operations for discovery purposes.
- *
- * @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 REST API operations supported by an Azure Resource Provider as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Exposes all available operations for discovery purposes.
- *
- * @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 REST API operations supported by an Azure Resource Provider as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceAssessmentsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceAssessmentsClient.java
deleted file mode 100644
index 36f7fb66f1aee..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceAssessmentsClient.java
+++ /dev/null
@@ -1,78 +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.RegulatoryComplianceAssessmentInner;
-
-/**
- * An instance of this class provides access to all the operations defined in RegulatoryComplianceAssessmentsClient.
- */
-public interface RegulatoryComplianceAssessmentsClient {
- /**
- * Details and state of assessments mapped to selected regulatory compliance control.
- *
- * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object.
- * @param regulatoryComplianceControlName Name of the regulatory compliance control object.
- * @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 regulatory compliance assessment response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String regulatoryComplianceStandardName,
- String regulatoryComplianceControlName);
-
- /**
- * Details and state of assessments mapped to selected regulatory compliance control.
- *
- * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object.
- * @param regulatoryComplianceControlName Name of the regulatory compliance control object.
- * @param filter OData filter. Optional.
- * @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 regulatory compliance assessment response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String regulatoryComplianceStandardName,
- String regulatoryComplianceControlName, String filter, Context context);
-
- /**
- * Supported regulatory compliance details and state for selected assessment.
- *
- * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object.
- * @param regulatoryComplianceControlName Name of the regulatory compliance control object.
- * @param regulatoryComplianceAssessmentName Name of the regulatory compliance assessment object.
- * @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 regulatory compliance assessment details and state along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String regulatoryComplianceStandardName,
- String regulatoryComplianceControlName, String regulatoryComplianceAssessmentName, Context context);
-
- /**
- * Supported regulatory compliance details and state for selected assessment.
- *
- * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object.
- * @param regulatoryComplianceControlName Name of the regulatory compliance control object.
- * @param regulatoryComplianceAssessmentName Name of the regulatory compliance assessment object.
- * @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 regulatory compliance assessment details and state.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- RegulatoryComplianceAssessmentInner get(String regulatoryComplianceStandardName,
- String regulatoryComplianceControlName, String regulatoryComplianceAssessmentName);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceControlsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceControlsClient.java
deleted file mode 100644
index d5da21d079244..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceControlsClient.java
+++ /dev/null
@@ -1,73 +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.RegulatoryComplianceControlInner;
-
-/**
- * An instance of this class provides access to all the operations defined in RegulatoryComplianceControlsClient.
- */
-public interface RegulatoryComplianceControlsClient {
- /**
- * All supported regulatory compliance controls details and state for selected standard.
- *
- * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object.
- * @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 regulatory compliance controls response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String regulatoryComplianceStandardName);
-
- /**
- * All supported regulatory compliance controls details and state for selected standard.
- *
- * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object.
- * @param filter OData filter. Optional.
- * @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 regulatory compliance controls response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String regulatoryComplianceStandardName, String filter,
- Context context);
-
- /**
- * Selected regulatory compliance control details and state.
- *
- * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object.
- * @param regulatoryComplianceControlName Name of the regulatory compliance control object.
- * @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 regulatory compliance control details and state along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String regulatoryComplianceStandardName,
- String regulatoryComplianceControlName, Context context);
-
- /**
- * Selected regulatory compliance control details and state.
- *
- * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object.
- * @param regulatoryComplianceControlName Name of the regulatory compliance control object.
- * @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 regulatory compliance control details and state.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- RegulatoryComplianceControlInner get(String regulatoryComplianceStandardName,
- String regulatoryComplianceControlName);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceStandardsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceStandardsClient.java
deleted file mode 100644
index 598e1cdedbd42..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceStandardsClient.java
+++ /dev/null
@@ -1,66 +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.RegulatoryComplianceStandardInner;
-
-/**
- * An instance of this class provides access to all the operations defined in RegulatoryComplianceStandardsClient.
- */
-public interface RegulatoryComplianceStandardsClient {
- /**
- * Supported regulatory compliance standards details and state.
- *
- * @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 regulatory compliance standards response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Supported regulatory compliance standards details and state.
- *
- * @param filter OData filter. Optional.
- * @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 regulatory compliance standards response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String filter, Context context);
-
- /**
- * Supported regulatory compliance details state for selected standard.
- *
- * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object.
- * @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 regulatory compliance standard details and state along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String regulatoryComplianceStandardName,
- Context context);
-
- /**
- * Supported regulatory compliance details state for selected standard.
- *
- * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object.
- * @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 regulatory compliance standard details and state.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- RegulatoryComplianceStandardInner get(String regulatoryComplianceStandardName);
-}
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 5fd6a95031732..0b1eac75a8623 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
@@ -39,321 +39,6 @@ public interface SecurityCenter {
*/
Duration getDefaultPollInterval();
- /**
- * Gets the LocationsClient object to access its operations.
- *
- * @return the LocationsClient object.
- */
- LocationsClient getLocations();
-
- /**
- * Gets the OperationsClient object to access its operations.
- *
- * @return the OperationsClient object.
- */
- OperationsClient getOperations();
-
- /**
- * Gets the TasksClient object to access its operations.
- *
- * @return the TasksClient object.
- */
- TasksClient getTasks();
-
- /**
- * Gets the AutoProvisioningSettingsClient object to access its operations.
- *
- * @return the AutoProvisioningSettingsClient object.
- */
- AutoProvisioningSettingsClient getAutoProvisioningSettings();
-
- /**
- * Gets the CompliancesClient object to access its operations.
- *
- * @return the CompliancesClient object.
- */
- CompliancesClient getCompliances();
-
- /**
- * Gets the InformationProtectionPoliciesClient object to access its operations.
- *
- * @return the InformationProtectionPoliciesClient object.
- */
- InformationProtectionPoliciesClient getInformationProtectionPolicies();
-
- /**
- * Gets the WorkspaceSettingsClient object to access its operations.
- *
- * @return the WorkspaceSettingsClient object.
- */
- WorkspaceSettingsClient getWorkspaceSettings();
-
- /**
- * Gets the AlertsSuppressionRulesClient object to access its operations.
- *
- * @return the AlertsSuppressionRulesClient object.
- */
- AlertsSuppressionRulesClient getAlertsSuppressionRules();
-
- /**
- * Gets the RegulatoryComplianceStandardsClient object to access its operations.
- *
- * @return the RegulatoryComplianceStandardsClient object.
- */
- RegulatoryComplianceStandardsClient getRegulatoryComplianceStandards();
-
- /**
- * Gets the RegulatoryComplianceControlsClient object to access its operations.
- *
- * @return the RegulatoryComplianceControlsClient object.
- */
- RegulatoryComplianceControlsClient getRegulatoryComplianceControls();
-
- /**
- * Gets the RegulatoryComplianceAssessmentsClient object to access its operations.
- *
- * @return the RegulatoryComplianceAssessmentsClient object.
- */
- RegulatoryComplianceAssessmentsClient getRegulatoryComplianceAssessments();
-
- /**
- * Gets the SubAssessmentsClient object to access its operations.
- *
- * @return the SubAssessmentsClient object.
- */
- SubAssessmentsClient getSubAssessments();
-
- /**
- * Gets the ConnectorsClient object to access its operations.
- *
- * @return the ConnectorsClient object.
- */
- ConnectorsClient getConnectors();
-
- /**
- * Gets the SoftwareInventoriesClient object to access its operations.
- *
- * @return the SoftwareInventoriesClient object.
- */
- SoftwareInventoriesClient getSoftwareInventories();
-
- /**
- * 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 MdeOnboardingsClient object to access its operations.
- *
- * @return the MdeOnboardingsClient object.
- */
- MdeOnboardingsClient getMdeOnboardings();
-
- /**
- * Gets the GovernanceAssignmentsClient object to access its operations.
- *
- * @return the GovernanceAssignmentsClient object.
- */
- GovernanceAssignmentsClient getGovernanceAssignments();
-
- /**
- * Gets the GovernanceRulesClient object to access its operations.
- *
- * @return the GovernanceRulesClient object.
- */
- GovernanceRulesClient getGovernanceRules();
-
- /**
- * Gets the ApplicationsClient object to access its operations.
- *
- * @return the ApplicationsClient object.
- */
- ApplicationsClient getApplications();
-
- /**
- * Gets the ApplicationOperationsClient object to access its operations.
- *
- * @return the ApplicationOperationsClient object.
- */
- ApplicationOperationsClient getApplicationOperations();
-
- /**
- * Gets the SecurityConnectorApplicationsClient object to access its operations.
- *
- * @return the SecurityConnectorApplicationsClient object.
- */
- SecurityConnectorApplicationsClient getSecurityConnectorApplications();
-
- /**
- * Gets the SecurityConnectorApplicationOperationsClient object to access its operations.
- *
- * @return the SecurityConnectorApplicationOperationsClient object.
- */
- SecurityConnectorApplicationOperationsClient getSecurityConnectorApplicationOperations();
-
- /**
- * Gets the DefenderForStoragesClient object to access its operations.
- *
- * @return the DefenderForStoragesClient object.
- */
- DefenderForStoragesClient getDefenderForStorages();
-
- /**
- * Gets the SecurityOperatorsClient object to access its operations.
- *
- * @return the SecurityOperatorsClient object.
- */
- SecurityOperatorsClient getSecurityOperators();
-
- /**
- * Gets the SqlVulnerabilityAssessmentBaselineRulesClient object to access its operations.
- *
- * @return the SqlVulnerabilityAssessmentBaselineRulesClient object.
- */
- SqlVulnerabilityAssessmentBaselineRulesClient getSqlVulnerabilityAssessmentBaselineRules();
-
- /**
- * Gets the SqlVulnerabilityAssessmentScansClient object to access its operations.
- *
- * @return the SqlVulnerabilityAssessmentScansClient object.
- */
- SqlVulnerabilityAssessmentScansClient getSqlVulnerabilityAssessmentScans();
-
- /**
- * Gets the SqlVulnerabilityAssessmentScanResultsClient object to access its operations.
- *
- * @return the SqlVulnerabilityAssessmentScanResultsClient object.
- */
- SqlVulnerabilityAssessmentScanResultsClient getSqlVulnerabilityAssessmentScanResults();
-
- /**
- * Gets the SensitivitySettingsClient object to access its operations.
- *
- * @return the SensitivitySettingsClient object.
- */
- SensitivitySettingsClient getSensitivitySettings();
-
- /**
- * Gets the HealthReportsClient object to access its operations.
- *
- * @return the HealthReportsClient object.
- */
- HealthReportsClient getHealthReports();
-
- /**
- * Gets the AutomationsClient object to access its operations.
- *
- * @return the AutomationsClient object.
- */
- AutomationsClient getAutomations();
-
- /**
- * Gets the SecurityContactsClient object to access its operations.
- *
- * @return the SecurityContactsClient object.
- */
- SecurityContactsClient getSecurityContacts();
-
- /**
- * Gets the SecurityConnectorsClient object to access its operations.
- *
- * @return the SecurityConnectorsClient object.
- */
- SecurityConnectorsClient getSecurityConnectors();
-
- /**
- * Gets the AzureDevOpsOrgsClient object to access its operations.
- *
- * @return the AzureDevOpsOrgsClient object.
- */
- AzureDevOpsOrgsClient getAzureDevOpsOrgs();
-
- /**
- * Gets the AzureDevOpsProjectsClient object to access its operations.
- *
- * @return the AzureDevOpsProjectsClient object.
- */
- AzureDevOpsProjectsClient getAzureDevOpsProjects();
-
- /**
- * Gets the AzureDevOpsReposClient object to access its operations.
- *
- * @return the AzureDevOpsReposClient object.
- */
- AzureDevOpsReposClient getAzureDevOpsRepos();
-
- /**
- * Gets the DevOpsConfigurationsClient object to access its operations.
- *
- * @return the DevOpsConfigurationsClient object.
- */
- DevOpsConfigurationsClient getDevOpsConfigurations();
-
- /**
- * Gets the DevOpsPoliciesClient object to access its operations.
- *
- * @return the DevOpsPoliciesClient object.
- */
- DevOpsPoliciesClient getDevOpsPolicies();
-
- /**
- * Gets the DevOpsPolicyAssignmentsClient object to access its operations.
- *
- * @return the DevOpsPolicyAssignmentsClient object.
- */
- DevOpsPolicyAssignmentsClient getDevOpsPolicyAssignments();
-
- /**
- * Gets the GitHubOwnersClient object to access its operations.
- *
- * @return the GitHubOwnersClient object.
- */
- GitHubOwnersClient getGitHubOwners();
-
- /**
- * Gets the GitHubReposClient object to access its operations.
- *
- * @return the GitHubReposClient object.
- */
- GitHubReposClient getGitHubRepos();
-
- /**
- * Gets the GitLabGroupsClient object to access its operations.
- *
- * @return the GitLabGroupsClient object.
- */
- GitLabGroupsClient getGitLabGroups();
-
- /**
- * Gets the GitLabSubgroupsClient object to access its operations.
- *
- * @return the GitLabSubgroupsClient object.
- */
- GitLabSubgroupsClient getGitLabSubgroups();
-
- /**
- * Gets the GitLabProjectsClient object to access its operations.
- *
- * @return the GitLabProjectsClient object.
- */
- GitLabProjectsClient getGitLabProjects();
-
- /**
- * Gets the DevOpsOperationResultsClient object to access its operations.
- *
- * @return the DevOpsOperationResultsClient object.
- */
- DevOpsOperationResultsClient getDevOpsOperationResults();
-
/**
* Gets the ComplianceResultsClient object to access its operations.
*
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorApplicationOperationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorApplicationOperationsClient.java
deleted file mode 100644
index 8a5151b952815..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorApplicationOperationsClient.java
+++ /dev/null
@@ -1,115 +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.ApplicationInner;
-
-/**
- * An instance of this class provides access to all the operations defined in
- * SecurityConnectorApplicationOperationsClient.
- */
-public interface SecurityConnectorApplicationOperationsClient {
- /**
- * Get a specific application for the requested scope by applicationId.
- *
- * @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 applicationId The security Application key - unique key for the standard application.
- * @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 specific application for the requested scope by applicationId along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String securityConnectorName,
- String applicationId, Context context);
-
- /**
- * Get a specific application for the requested scope by applicationId.
- *
- * @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 applicationId The security Application key - unique key for the standard application.
- * @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 specific application for the requested scope by applicationId.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInner get(String resourceGroupName, String securityConnectorName, String applicationId);
-
- /**
- * Creates or update a security Application on the given 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 applicationId The security Application key - unique key for the standard application.
- * @param application Application over a subscription scope.
- * @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 security Application over a given scope along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String securityConnectorName,
- String applicationId, ApplicationInner application, Context context);
-
- /**
- * Creates or update a security Application on the given 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 applicationId The security Application key - unique key for the standard application.
- * @param application Application over a subscription scope.
- * @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 Application over a given scope.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInner createOrUpdate(String resourceGroupName, String securityConnectorName, String applicationId,
- ApplicationInner application);
-
- /**
- * Delete an Application over a given scope.
- *
- * @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 applicationId The security Application key - unique key for the standard application.
- * @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 {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String securityConnectorName, String applicationId,
- Context context);
-
- /**
- * Delete an Application over a given scope.
- *
- * @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 applicationId The security Application key - unique key for the standard application.
- * @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, String applicationId);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorApplicationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorApplicationsClient.java
deleted file mode 100644
index fd9ab063f4d8c..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorApplicationsClient.java
+++ /dev/null
@@ -1,47 +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.ApplicationInner;
-
-/**
- * An instance of this class provides access to all the operations defined in SecurityConnectorApplicationsClient.
- */
-public interface SecurityConnectorApplicationsClient {
- /**
- * Get a list of all relevant applications over a security connector level scope.
- *
- * @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 a list of all relevant applications over a security connector level scope as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String securityConnectorName);
-
- /**
- * Get a list of all relevant applications over a security connector level scope.
- *
- * @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 a list of all relevant applications over a security connector level scope as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String securityConnectorName, Context context);
-}
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
deleted file mode 100644
index c213bebdc82b5..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorsClient.java
+++ /dev/null
@@ -1,196 +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.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 as paginated response with {@link PagedIterable}.
- */
- @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 as paginated response with {@link PagedIterable}.
- */
- @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 as paginated response with {@link PagedIterable}.
- */
- @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 as paginated response with {@link PagedIterable}.
- */
- @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.
- * @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 along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName,
- String securityConnectorName, 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);
-
- /**
- * 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 along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String securityConnectorName,
- SecurityConnectorInner securityConnector, 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);
-
- /**
- * 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 along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(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);
-
- /**
- * 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 {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String securityConnectorName, 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);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityContactsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityContactsClient.java
deleted file mode 100644
index ed6a348f7243b..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityContactsClient.java
+++ /dev/null
@@ -1,118 +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.SecurityContactInner;
-import com.azure.resourcemanager.security.models.SecurityContactName;
-
-/**
- * An instance of this class provides access to all the operations defined in SecurityContactsClient.
- */
-public interface SecurityContactsClient {
- /**
- * List all security contact configurations for the 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 contacts response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * List all security contact configurations for the 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 contacts response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * Get Default Security contact configurations for the subscription.
- *
- * @param securityContactName Name of the security contact object.
- * @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 default Security contact configurations for the subscription along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(SecurityContactName securityContactName, Context context);
-
- /**
- * Get Default Security contact configurations for the subscription.
- *
- * @param securityContactName Name of the security contact object.
- * @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 default Security contact configurations for the subscription.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SecurityContactInner get(SecurityContactName securityContactName);
-
- /**
- * Create security contact configurations for the subscription.
- *
- * @param securityContactName Name of the security contact object.
- * @param securityContact Security contact object.
- * @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 contact details and configurations for notifications coming from Microsoft Defender for Cloud along with
- * {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(SecurityContactName securityContactName,
- SecurityContactInner securityContact, Context context);
-
- /**
- * Create security contact configurations for the subscription.
- *
- * @param securityContactName Name of the security contact object.
- * @param securityContact Security contact object.
- * @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 contact details and configurations for notifications coming from Microsoft Defender for Cloud.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SecurityContactInner create(SecurityContactName securityContactName, SecurityContactInner securityContact);
-
- /**
- * Delete security contact configurations for the subscription.
- *
- * @param securityContactName Name of the security contact object.
- * @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 {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(SecurityContactName securityContactName, Context context);
-
- /**
- * Delete security contact configurations for the subscription.
- *
- * @param securityContactName Name of the security contact object.
- * @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(SecurityContactName securityContactName);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityOperatorsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityOperatorsClient.java
deleted file mode 100644
index 1971f46dd42ef..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityOperatorsClient.java
+++ /dev/null
@@ -1,123 +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.SecurityOperatorInner;
-import com.azure.resourcemanager.security.fluent.models.SecurityOperatorListInner;
-
-/**
- * An instance of this class provides access to all the operations defined in SecurityOperatorsClient.
- */
-public interface SecurityOperatorsClient {
- /**
- * Lists Microsoft Defender for Cloud securityOperators in the subscription.
- *
- * @param pricingName name of the pricing configuration.
- * @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 SecurityOperator response along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(String pricingName, Context context);
-
- /**
- * Lists Microsoft Defender for Cloud securityOperators in the subscription.
- *
- * @param pricingName name of the pricing configuration.
- * @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 SecurityOperator response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SecurityOperatorListInner list(String pricingName);
-
- /**
- * Get a specific security operator for the requested scope.
- *
- * @param pricingName name of the pricing configuration.
- * @param securityOperatorName name of the securityOperator.
- * @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 specific security operator for the requested scope along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String pricingName, String securityOperatorName, Context context);
-
- /**
- * Get a specific security operator for the requested scope.
- *
- * @param pricingName name of the pricing configuration.
- * @param securityOperatorName name of the securityOperator.
- * @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 specific security operator for the requested scope.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SecurityOperatorInner get(String pricingName, String securityOperatorName);
-
- /**
- * Creates Microsoft Defender for Cloud security operator on the given scope.
- *
- * @param pricingName name of the pricing configuration.
- * @param securityOperatorName name of the securityOperator.
- * @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 security operator under a given subscription and pricing along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String pricingName, String securityOperatorName,
- Context context);
-
- /**
- * Creates Microsoft Defender for Cloud security operator on the given scope.
- *
- * @param pricingName name of the pricing configuration.
- * @param securityOperatorName name of the securityOperator.
- * @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 operator under a given subscription and pricing.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SecurityOperatorInner createOrUpdate(String pricingName, String securityOperatorName);
-
- /**
- * Delete Microsoft Defender for Cloud securityOperator in the subscription.
- *
- * @param pricingName name of the pricing configuration.
- * @param securityOperatorName name of the securityOperator.
- * @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 {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String pricingName, String securityOperatorName, Context context);
-
- /**
- * Delete Microsoft Defender for Cloud securityOperator in the subscription.
- *
- * @param pricingName name of the pricing configuration.
- * @param securityOperatorName name of the securityOperator.
- * @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 pricingName, String securityOperatorName);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SensitivitySettingsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SensitivitySettingsClient.java
deleted file mode 100644
index 3a777e018198c..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SensitivitySettingsClient.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.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.GetSensitivitySettingsListResponseInner;
-import com.azure.resourcemanager.security.fluent.models.GetSensitivitySettingsResponseInner;
-import com.azure.resourcemanager.security.models.UpdateSensitivitySettingsRequest;
-
-/**
- * An instance of this class provides access to all the operations defined in SensitivitySettingsClient.
- */
-public interface SensitivitySettingsClient {
- /**
- * Create or update data sensitivity settings for sensitive data discovery.
- *
- * @param sensitivitySettings The data sensitivity settings to update.
- * @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 data sensitivity settings for sensitive data discovery along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response
- createOrUpdateWithResponse(UpdateSensitivitySettingsRequest sensitivitySettings, Context context);
-
- /**
- * Create or update data sensitivity settings for sensitive data discovery.
- *
- * @param sensitivitySettings The data sensitivity settings to update.
- * @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 data sensitivity settings for sensitive data discovery.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- GetSensitivitySettingsResponseInner createOrUpdate(UpdateSensitivitySettingsRequest sensitivitySettings);
-
- /**
- * Gets data sensitivity settings for sensitive data discovery.
- *
- * @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 data sensitivity settings for sensitive data discovery along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(Context context);
-
- /**
- * Gets data sensitivity settings for sensitive data discovery.
- *
- * @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 data sensitivity settings for sensitive data discovery.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- GetSensitivitySettingsResponseInner get();
-
- /**
- * Gets a list with a single sensitivity settings 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 a list with a single sensitivity settings resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(Context context);
-
- /**
- * Gets a list with a single sensitivity settings resource.
- *
- * @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 with a single sensitivity settings resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- GetSensitivitySettingsListResponseInner list();
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SettingsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SettingsClient.java
index 18ef6bb2b741e..f1bb9a7bd7409 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SettingsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SettingsClient.java
@@ -10,7 +10,7 @@
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.security.fluent.models.SettingInner;
-import com.azure.resourcemanager.security.models.SettingNameAutoGenerated;
+import com.azure.resourcemanager.security.models.SettingName;
/**
* An instance of this class provides access to all the operations defined in SettingsClient.
@@ -49,7 +49,7 @@ public interface SettingsClient {
* @return the kind of the security setting along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(SettingNameAutoGenerated settingName, Context context);
+ Response getWithResponse(SettingName settingName, Context context);
/**
* Settings of different configurations in Microsoft Defender for Cloud.
@@ -61,7 +61,7 @@ public interface SettingsClient {
* @return the kind of the security setting.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SettingInner get(SettingNameAutoGenerated settingName);
+ SettingInner get(SettingName settingName);
/**
* updating settings about different configurations in Microsoft Defender for Cloud.
@@ -75,8 +75,7 @@ public interface SettingsClient {
* @return the kind of the security setting along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(SettingNameAutoGenerated settingName, SettingInner setting,
- Context context);
+ Response updateWithResponse(SettingName settingName, SettingInner setting, Context context);
/**
* updating settings about different configurations in Microsoft Defender for Cloud.
@@ -89,5 +88,5 @@ Response updateWithResponse(SettingNameAutoGenerated settingName,
* @return the kind of the security setting.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SettingInner update(SettingNameAutoGenerated settingName, SettingInner setting);
+ SettingInner update(SettingName settingName, SettingInner setting);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SoftwareInventoriesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SoftwareInventoriesClient.java
deleted file mode 100644
index 44c87aa6b3438..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SoftwareInventoriesClient.java
+++ /dev/null
@@ -1,113 +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.SoftwareInner;
-
-/**
- * An instance of this class provides access to all the operations defined in SoftwareInventoriesClient.
- */
-public interface SoftwareInventoriesClient {
- /**
- * Gets the software inventory of the virtual machine.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param resourceNamespace The namespace of the resource.
- * @param resourceType The type of the resource.
- * @param resourceName Name 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 the software inventory of the virtual machine as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByExtendedResource(String resourceGroupName, String resourceNamespace,
- String resourceType, String resourceName);
-
- /**
- * Gets the software inventory of the virtual machine.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param resourceNamespace The namespace of the resource.
- * @param resourceType The type of the resource.
- * @param resourceName Name of the 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 software inventory of the virtual machine as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByExtendedResource(String resourceGroupName, String resourceNamespace,
- String resourceType, String resourceName, Context context);
-
- /**
- * Gets the software inventory of all virtual machines in the subscriptions.
- *
- * @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 software inventory of all virtual machines in the subscriptions as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Gets the software inventory of all virtual machines in the subscriptions.
- *
- * @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 software inventory of all virtual machines in the subscriptions as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * Gets a single software data of the virtual machine.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param resourceNamespace The namespace of the resource.
- * @param resourceType The type of the resource.
- * @param resourceName Name of the resource.
- * @param softwareName Name of the installed software.
- * @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 software data of the virtual machine along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String resourceNamespace, String resourceType,
- String resourceName, String softwareName, Context context);
-
- /**
- * Gets a single software data of the virtual machine.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param resourceNamespace The namespace of the resource.
- * @param resourceType The type of the resource.
- * @param resourceName Name of the resource.
- * @param softwareName Name of the installed software.
- * @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 software data of the virtual machine.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SoftwareInner get(String resourceGroupName, String resourceNamespace, String resourceType, String resourceName,
- String softwareName);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentBaselineRulesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentBaselineRulesClient.java
deleted file mode 100644
index 4ddb2758ac869..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentBaselineRulesClient.java
+++ /dev/null
@@ -1,164 +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.RuleResultsInner;
-import com.azure.resourcemanager.security.fluent.models.RulesResultsInner;
-import com.azure.resourcemanager.security.models.RuleResultsInput;
-import com.azure.resourcemanager.security.models.RulesResultsInput;
-
-/**
- * An instance of this class provides access to all the operations defined in
- * SqlVulnerabilityAssessmentBaselineRulesClient.
- */
-public interface SqlVulnerabilityAssessmentBaselineRulesClient {
- /**
- * Creates a Baseline for a rule in a database. Will overwrite any previously existing results.
- *
- * @param ruleId The rule Id.
- * @param workspaceId The workspace Id.
- * @param resourceId The identifier of the resource.
- * @param body The baseline results for this rule.
- * @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 rule results along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String ruleId, String workspaceId, String resourceId,
- RuleResultsInput body, Context context);
-
- /**
- * Creates a Baseline for a rule in a database. Will overwrite any previously existing results.
- *
- * @param ruleId The rule Id.
- * @param workspaceId The workspace Id.
- * @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 rule results.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- RuleResultsInner createOrUpdate(String ruleId, String workspaceId, String resourceId);
-
- /**
- * Gets the results for a given rule in the Baseline.
- *
- * @param ruleId The rule Id.
- * @param workspaceId The workspace Id.
- * @param resourceId The identifier of the 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 results for a given rule in the Baseline along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String ruleId, String workspaceId, String resourceId, Context context);
-
- /**
- * Gets the results for a given rule in the Baseline.
- *
- * @param ruleId The rule Id.
- * @param workspaceId The workspace Id.
- * @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 the results for a given rule in the Baseline.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- RuleResultsInner get(String ruleId, String workspaceId, String resourceId);
-
- /**
- * Deletes a rule from the Baseline of a given database.
- *
- * @param ruleId The rule Id.
- * @param workspaceId The workspace Id.
- * @param resourceId The identifier of the 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 {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String ruleId, String workspaceId, String resourceId, Context context);
-
- /**
- * Deletes a rule from the Baseline of a given database.
- *
- * @param ruleId The rule Id.
- * @param workspaceId The workspace Id.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String ruleId, String workspaceId, String resourceId);
-
- /**
- * Gets the results for all rules in the Baseline.
- *
- * @param workspaceId The workspace Id.
- * @param resourceId The identifier of the 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 results for all rules in the Baseline along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(String workspaceId, String resourceId, Context context);
-
- /**
- * Gets the results for all rules in the Baseline.
- *
- * @param workspaceId The workspace Id.
- * @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 the results for all rules in the Baseline.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- RulesResultsInner list(String workspaceId, String resourceId);
-
- /**
- * Add a list of baseline rules. Will overwrite any previously existing results (for all rules).
- *
- * @param workspaceId The workspace Id.
- * @param resourceId The identifier of the resource.
- * @param body The baseline rules.
- * @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 rules results along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response addWithResponse(String workspaceId, String resourceId, RulesResultsInput body,
- Context context);
-
- /**
- * Add a list of baseline rules. Will overwrite any previously existing results (for all rules).
- *
- * @param workspaceId The workspace Id.
- * @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 a list of rules results.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- RulesResultsInner add(String workspaceId, String resourceId);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentScanResultsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentScanResultsClient.java
deleted file mode 100644
index c669c0462cd7b..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentScanResultsClient.java
+++ /dev/null
@@ -1,79 +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.ScanResultInner;
-import com.azure.resourcemanager.security.fluent.models.ScanResultsInner;
-
-/**
- * An instance of this class provides access to all the operations defined in
- * SqlVulnerabilityAssessmentScanResultsClient.
- */
-public interface SqlVulnerabilityAssessmentScanResultsClient {
- /**
- * Gets the scan results of a single rule in a scan record.
- *
- * @param scanId The scan Id. Type 'latest' to get the scan results for the latest scan.
- * @param scanResultId The rule Id of the results.
- * @param workspaceId The workspace Id.
- * @param resourceId The identifier of the 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 scan results of a single rule in a scan record along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String scanId, String scanResultId, String workspaceId, String resourceId,
- Context context);
-
- /**
- * Gets the scan results of a single rule in a scan record.
- *
- * @param scanId The scan Id. Type 'latest' to get the scan results for the latest scan.
- * @param scanResultId The rule Id of the results.
- * @param workspaceId The workspace Id.
- * @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 the scan results of a single rule in a scan record.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ScanResultInner get(String scanId, String scanResultId, String workspaceId, String resourceId);
-
- /**
- * Gets a list of scan results for a single scan record.
- *
- * @param scanId The scan Id. Type 'latest' to get the scan results for the latest scan.
- * @param workspaceId The workspace Id.
- * @param resourceId The identifier of the 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 a list of scan results for a single scan record along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(String scanId, String workspaceId, String resourceId, Context context);
-
- /**
- * Gets a list of scan results for a single scan record.
- *
- * @param scanId The scan Id. Type 'latest' to get the scan results for the latest scan.
- * @param workspaceId The workspace Id.
- * @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 a list of scan results for a single scan record.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ScanResultsInner list(String scanId, String workspaceId, String resourceId);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentScansClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentScansClient.java
deleted file mode 100644
index d87cdc9a55830..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentScansClient.java
+++ /dev/null
@@ -1,73 +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.ScanInner;
-import com.azure.resourcemanager.security.fluent.models.ScansInner;
-
-/**
- * An instance of this class provides access to all the operations defined in SqlVulnerabilityAssessmentScansClient.
- */
-public interface SqlVulnerabilityAssessmentScansClient {
- /**
- * Gets the scan details of a single scan record.
- *
- * @param scanId The scan Id. Type 'latest' to get the scan record for the latest scan.
- * @param workspaceId The workspace Id.
- * @param resourceId The identifier of the 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 scan details of a single scan record along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String scanId, String workspaceId, String resourceId, Context context);
-
- /**
- * Gets the scan details of a single scan record.
- *
- * @param scanId The scan Id. Type 'latest' to get the scan record for the latest scan.
- * @param workspaceId The workspace Id.
- * @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 the scan details of a single scan record.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ScanInner get(String scanId, String workspaceId, String resourceId);
-
- /**
- * Gets a list of scan records.
- *
- * @param workspaceId The workspace Id.
- * @param resourceId The identifier of the 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 a list of scan records along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(String workspaceId, String resourceId, Context context);
-
- /**
- * Gets a list of scan records.
- *
- * @param workspaceId The workspace Id.
- * @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 a list of scan records.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ScansInner list(String workspaceId, String resourceId);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SubAssessmentsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SubAssessmentsClient.java
deleted file mode 100644
index 4c3cc7e17d9d7..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SubAssessmentsClient.java
+++ /dev/null
@@ -1,109 +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.SecuritySubAssessmentInner;
-
-/**
- * An instance of this class provides access to all the operations defined in SubAssessmentsClient.
- */
-public interface SubAssessmentsClient {
- /**
- * Get security sub-assessments on all your scanned resources inside a subscription scope.
- *
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
- * @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 sub-assessments on all your scanned resources inside a subscription scope as paginated response
- * with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listAll(String scope);
-
- /**
- * Get security sub-assessments on all your scanned resources inside a subscription scope.
- *
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
- * @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 security sub-assessments on all your scanned resources inside a subscription scope as paginated response
- * with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listAll(String scope, Context context);
-
- /**
- * Get security sub-assessments on all your scanned resources inside a scope.
- *
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
- * @param assessmentName The Assessment Key - Unique key for the assessment 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 security sub-assessments on all your scanned resources inside a scope as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope, String assessmentName);
-
- /**
- * Get security sub-assessments on all your scanned resources inside a scope.
- *
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
- * @param assessmentName The Assessment Key - Unique key for the assessment 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 security sub-assessments on all your scanned resources inside a scope as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope, String assessmentName, Context context);
-
- /**
- * Get a security sub-assessment on your scanned resource.
- *
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
- * @param assessmentName The Assessment Key - Unique key for the assessment type.
- * @param subAssessmentName The Sub-Assessment Key - Unique key for the sub-assessment 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 a security sub-assessment on your scanned resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String scope, String assessmentName, String subAssessmentName,
- Context context);
-
- /**
- * Get a security sub-assessment on your scanned resource.
- *
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
- * @param assessmentName The Assessment Key - Unique key for the assessment type.
- * @param subAssessmentName The Sub-Assessment Key - Unique key for the sub-assessment 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 a security sub-assessment on your scanned resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SecuritySubAssessmentInner get(String scope, String assessmentName, String subAssessmentName);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/TasksClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/TasksClient.java
deleted file mode 100644
index 5e45193f7e01e..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/TasksClient.java
+++ /dev/null
@@ -1,234 +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.SecurityTaskInner;
-import com.azure.resourcemanager.security.models.TaskUpdateActionType;
-
-/**
- * An instance of this class provides access to all the operations defined in TasksClient.
- */
-public interface TasksClient {
- /**
- * Recommended tasks that will help improve the security of the subscription proactively.
- *
- * @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 task recommendations as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Recommended tasks that will help improve the security of the subscription proactively.
- *
- * @param filter OData filter. Optional.
- * @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 task recommendations as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String filter, Context context);
-
- /**
- * Recommended tasks that will help improve the security of the subscription proactively.
- *
- * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
- * locations.
- * @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 task recommendations as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByHomeRegion(String ascLocation);
-
- /**
- * Recommended tasks that will help improve the security of the subscription proactively.
- *
- * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
- * locations.
- * @param filter OData filter. Optional.
- * @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 task recommendations as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByHomeRegion(String ascLocation, String filter, Context context);
-
- /**
- * Recommended tasks that will help improve the security of the subscription proactively.
- *
- * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
- * locations.
- * @param taskName Name of the task object, will be a 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 security task that we recommend to do in order to strengthen security along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getSubscriptionLevelTaskWithResponse(String ascLocation, String taskName,
- Context context);
-
- /**
- * Recommended tasks that will help improve the security of the subscription proactively.
- *
- * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
- * locations.
- * @param taskName Name of the task object, will be a 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 security task that we recommend to do in order to strengthen security.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SecurityTaskInner getSubscriptionLevelTask(String ascLocation, String taskName);
-
- /**
- * Recommended tasks that will help improve the security of the subscription proactively.
- *
- * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
- * locations.
- * @param taskName Name of the task object, will be a GUID.
- * @param taskUpdateActionType Type of the action to do on the task.
- * @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 {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateSubscriptionLevelTaskStateWithResponse(String ascLocation, String taskName,
- TaskUpdateActionType taskUpdateActionType, Context context);
-
- /**
- * Recommended tasks that will help improve the security of the subscription proactively.
- *
- * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
- * locations.
- * @param taskName Name of the task object, will be a GUID.
- * @param taskUpdateActionType Type of the action to do on the task.
- * @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 updateSubscriptionLevelTaskState(String ascLocation, String taskName,
- TaskUpdateActionType taskUpdateActionType);
-
- /**
- * Recommended tasks that will help improve the security of the subscription proactively.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
- * locations.
- * @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 task recommendations as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, String ascLocation);
-
- /**
- * Recommended tasks that will help improve the security of the subscription proactively.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
- * locations.
- * @param filter OData filter. Optional.
- * @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 task recommendations as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, String ascLocation, String filter,
- Context context);
-
- /**
- * Recommended tasks that will help improve the security of the subscription proactively.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
- * locations.
- * @param taskName Name of the task object, will be a 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 security task that we recommend to do in order to strengthen security along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getResourceGroupLevelTaskWithResponse(String resourceGroupName, String ascLocation,
- String taskName, Context context);
-
- /**
- * Recommended tasks that will help improve the security of the subscription proactively.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
- * locations.
- * @param taskName Name of the task object, will be a 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 security task that we recommend to do in order to strengthen security.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SecurityTaskInner getResourceGroupLevelTask(String resourceGroupName, String ascLocation, String taskName);
-
- /**
- * Recommended tasks that will help improve the security of the subscription proactively.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
- * locations.
- * @param taskName Name of the task object, will be a GUID.
- * @param taskUpdateActionType Type of the action to do on the task.
- * @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 {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateResourceGroupLevelTaskStateWithResponse(String resourceGroupName, String ascLocation,
- String taskName, TaskUpdateActionType taskUpdateActionType, Context context);
-
- /**
- * Recommended tasks that will help improve the security of the subscription proactively.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
- * locations.
- * @param taskName Name of the task object, will be a GUID.
- * @param taskUpdateActionType Type of the action to do on the task.
- * @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 updateResourceGroupLevelTaskState(String resourceGroupName, String ascLocation, String taskName,
- TaskUpdateActionType taskUpdateActionType);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/WorkspaceSettingsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/WorkspaceSettingsClient.java
deleted file mode 100644
index 246993e8efde6..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/WorkspaceSettingsClient.java
+++ /dev/null
@@ -1,148 +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.WorkspaceSettingInner;
-
-/**
- * An instance of this class provides access to all the operations defined in WorkspaceSettingsClient.
- */
-public interface WorkspaceSettingsClient {
- /**
- * Settings about where we should store your security data and logs. If the result is empty, it means that no
- * custom-workspace configuration was set.
- *
- * @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 workspace settings response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Settings about where we should store your security data and logs. If the result is empty, it means that no
- * custom-workspace configuration was set.
- *
- * @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 workspace settings response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * Settings about where we should store your security data and logs. If the result is empty, it means that no
- * custom-workspace configuration was set.
- *
- * @param workspaceSettingName Name of the security setting.
- * @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 configures where to store the OMS agent data for workspaces under a scope along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String workspaceSettingName, Context context);
-
- /**
- * Settings about where we should store your security data and logs. If the result is empty, it means that no
- * custom-workspace configuration was set.
- *
- * @param workspaceSettingName Name of the security setting.
- * @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 configures where to store the OMS agent data for workspaces under a scope.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkspaceSettingInner get(String workspaceSettingName);
-
- /**
- * creating settings about where we should store your security data and logs.
- *
- * @param workspaceSettingName Name of the security setting.
- * @param workspaceSetting Security data setting object.
- * @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 configures where to store the OMS agent data for workspaces under a scope along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(String workspaceSettingName,
- WorkspaceSettingInner workspaceSetting, Context context);
-
- /**
- * creating settings about where we should store your security data and logs.
- *
- * @param workspaceSettingName Name of the security setting.
- * @param workspaceSetting Security data setting object.
- * @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 configures where to store the OMS agent data for workspaces under a scope.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkspaceSettingInner create(String workspaceSettingName, WorkspaceSettingInner workspaceSetting);
-
- /**
- * Settings about where we should store your security data and logs.
- *
- * @param workspaceSettingName Name of the security setting.
- * @param workspaceSetting Security data setting object.
- * @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 configures where to store the OMS agent data for workspaces under a scope along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String workspaceSettingName,
- WorkspaceSettingInner workspaceSetting, Context context);
-
- /**
- * Settings about where we should store your security data and logs.
- *
- * @param workspaceSettingName Name of the security setting.
- * @param workspaceSetting Security data setting object.
- * @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 configures where to store the OMS agent data for workspaces under a scope.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkspaceSettingInner update(String workspaceSettingName, WorkspaceSettingInner workspaceSetting);
-
- /**
- * Deletes the custom workspace settings for this subscription. new VMs will report to the default workspace.
- *
- * @param workspaceSettingName Name of the security setting.
- * @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 {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String workspaceSettingName, Context context);
-
- /**
- * Deletes the custom workspace settings for this subscription. new VMs will report to the default workspace.
- *
- * @param workspaceSettingName Name of the security setting.
- * @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 workspaceSettingName);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertsSuppressionRuleInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertsSuppressionRuleInner.java
deleted file mode 100644
index b82361145a2d1..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertsSuppressionRuleInner.java
+++ /dev/null
@@ -1,290 +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.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.ProxyResource;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.security.models.RuleState;
-import com.azure.resourcemanager.security.models.SuppressionAlertsScope;
-import java.io.IOException;
-import java.time.OffsetDateTime;
-
-/**
- * Describes the suppression rule.
- */
-@Fluent
-public final class AlertsSuppressionRuleInner extends ProxyResource {
- /*
- * describes AlertsSuppressionRule properties
- */
- private AlertsSuppressionRuleProperties innerProperties;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /**
- * Creates an instance of AlertsSuppressionRuleInner class.
- */
- public AlertsSuppressionRuleInner() {
- }
-
- /**
- * Get the innerProperties property: describes AlertsSuppressionRule properties.
- *
- * @return the innerProperties value.
- */
- private AlertsSuppressionRuleProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * Get the alertType property: Type of the alert to automatically suppress. For all alert types, use '*'.
- *
- * @return the alertType value.
- */
- public String alertType() {
- return this.innerProperties() == null ? null : this.innerProperties().alertType();
- }
-
- /**
- * Set the alertType property: Type of the alert to automatically suppress. For all alert types, use '*'.
- *
- * @param alertType the alertType value to set.
- * @return the AlertsSuppressionRuleInner object itself.
- */
- public AlertsSuppressionRuleInner withAlertType(String alertType) {
- if (this.innerProperties() == null) {
- this.innerProperties = new AlertsSuppressionRuleProperties();
- }
- this.innerProperties().withAlertType(alertType);
- return this;
- }
-
- /**
- * Get the lastModifiedUtc property: The last time this rule was modified.
- *
- * @return the lastModifiedUtc value.
- */
- public OffsetDateTime lastModifiedUtc() {
- return this.innerProperties() == null ? null : this.innerProperties().lastModifiedUtc();
- }
-
- /**
- * Get the expirationDateUtc property: Expiration date of the rule, if value is not provided or provided as null
- * there will no expiration at all.
- *
- * @return the expirationDateUtc value.
- */
- public OffsetDateTime expirationDateUtc() {
- return this.innerProperties() == null ? null : this.innerProperties().expirationDateUtc();
- }
-
- /**
- * Set the expirationDateUtc property: Expiration date of the rule, if value is not provided or provided as null
- * there will no expiration at all.
- *
- * @param expirationDateUtc the expirationDateUtc value to set.
- * @return the AlertsSuppressionRuleInner object itself.
- */
- public AlertsSuppressionRuleInner withExpirationDateUtc(OffsetDateTime expirationDateUtc) {
- if (this.innerProperties() == null) {
- this.innerProperties = new AlertsSuppressionRuleProperties();
- }
- this.innerProperties().withExpirationDateUtc(expirationDateUtc);
- return this;
- }
-
- /**
- * Get the reason property: The reason for dismissing the alert.
- *
- * @return the reason value.
- */
- public String reason() {
- return this.innerProperties() == null ? null : this.innerProperties().reason();
- }
-
- /**
- * Set the reason property: The reason for dismissing the alert.
- *
- * @param reason the reason value to set.
- * @return the AlertsSuppressionRuleInner object itself.
- */
- public AlertsSuppressionRuleInner withReason(String reason) {
- if (this.innerProperties() == null) {
- this.innerProperties = new AlertsSuppressionRuleProperties();
- }
- this.innerProperties().withReason(reason);
- return this;
- }
-
- /**
- * Get the state property: Possible states of the rule.
- *
- * @return the state value.
- */
- public RuleState state() {
- return this.innerProperties() == null ? null : this.innerProperties().state();
- }
-
- /**
- * Set the state property: Possible states of the rule.
- *
- * @param state the state value to set.
- * @return the AlertsSuppressionRuleInner object itself.
- */
- public AlertsSuppressionRuleInner withState(RuleState state) {
- if (this.innerProperties() == null) {
- this.innerProperties = new AlertsSuppressionRuleProperties();
- }
- this.innerProperties().withState(state);
- return this;
- }
-
- /**
- * Get the comment property: Any comment regarding the rule.
- *
- * @return the comment value.
- */
- public String comment() {
- return this.innerProperties() == null ? null : this.innerProperties().comment();
- }
-
- /**
- * Set the comment property: Any comment regarding the rule.
- *
- * @param comment the comment value to set.
- * @return the AlertsSuppressionRuleInner object itself.
- */
- public AlertsSuppressionRuleInner withComment(String comment) {
- if (this.innerProperties() == null) {
- this.innerProperties = new AlertsSuppressionRuleProperties();
- }
- this.innerProperties().withComment(comment);
- return this;
- }
-
- /**
- * Get the suppressionAlertsScope property: The suppression conditions.
- *
- * @return the suppressionAlertsScope value.
- */
- public SuppressionAlertsScope suppressionAlertsScope() {
- return this.innerProperties() == null ? null : this.innerProperties().suppressionAlertsScope();
- }
-
- /**
- * Set the suppressionAlertsScope property: The suppression conditions.
- *
- * @param suppressionAlertsScope the suppressionAlertsScope value to set.
- * @return the AlertsSuppressionRuleInner object itself.
- */
- public AlertsSuppressionRuleInner withSuppressionAlertsScope(SuppressionAlertsScope suppressionAlertsScope) {
- if (this.innerProperties() == null) {
- this.innerProperties = new AlertsSuppressionRuleProperties();
- }
- this.innerProperties().withSuppressionAlertsScope(suppressionAlertsScope);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.innerProperties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of AlertsSuppressionRuleInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of AlertsSuppressionRuleInner if the JsonReader was pointing to an instance of it, or null if
- * it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the AlertsSuppressionRuleInner.
- */
- public static AlertsSuppressionRuleInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- AlertsSuppressionRuleInner deserializedAlertsSuppressionRuleInner = new AlertsSuppressionRuleInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedAlertsSuppressionRuleInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedAlertsSuppressionRuleInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedAlertsSuppressionRuleInner.type = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedAlertsSuppressionRuleInner.innerProperties
- = AlertsSuppressionRuleProperties.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedAlertsSuppressionRuleInner;
- });
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertsSuppressionRuleProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertsSuppressionRuleProperties.java
deleted file mode 100644
index b7d82f67d8ea8..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertsSuppressionRuleProperties.java
+++ /dev/null
@@ -1,285 +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.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.CoreUtils;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.security.models.RuleState;
-import com.azure.resourcemanager.security.models.SuppressionAlertsScope;
-import java.io.IOException;
-import java.time.OffsetDateTime;
-import java.time.format.DateTimeFormatter;
-
-/**
- * describes AlertsSuppressionRule properties.
- */
-@Fluent
-public final class AlertsSuppressionRuleProperties implements JsonSerializable {
- /*
- * Type of the alert to automatically suppress. For all alert types, use '*'
- */
- private String alertType;
-
- /*
- * The last time this rule was modified
- */
- private OffsetDateTime lastModifiedUtc;
-
- /*
- * Expiration date of the rule, if value is not provided or provided as null there will no expiration at all
- */
- private OffsetDateTime expirationDateUtc;
-
- /*
- * The reason for dismissing the alert
- */
- private String reason;
-
- /*
- * Possible states of the rule
- */
- private RuleState state;
-
- /*
- * Any comment regarding the rule
- */
- private String comment;
-
- /*
- * The suppression conditions
- */
- private SuppressionAlertsScope suppressionAlertsScope;
-
- /**
- * Creates an instance of AlertsSuppressionRuleProperties class.
- */
- public AlertsSuppressionRuleProperties() {
- }
-
- /**
- * Get the alertType property: Type of the alert to automatically suppress. For all alert types, use '*'.
- *
- * @return the alertType value.
- */
- public String alertType() {
- return this.alertType;
- }
-
- /**
- * Set the alertType property: Type of the alert to automatically suppress. For all alert types, use '*'.
- *
- * @param alertType the alertType value to set.
- * @return the AlertsSuppressionRuleProperties object itself.
- */
- public AlertsSuppressionRuleProperties withAlertType(String alertType) {
- this.alertType = alertType;
- return this;
- }
-
- /**
- * Get the lastModifiedUtc property: The last time this rule was modified.
- *
- * @return the lastModifiedUtc value.
- */
- public OffsetDateTime lastModifiedUtc() {
- return this.lastModifiedUtc;
- }
-
- /**
- * Get the expirationDateUtc property: Expiration date of the rule, if value is not provided or provided as null
- * there will no expiration at all.
- *
- * @return the expirationDateUtc value.
- */
- public OffsetDateTime expirationDateUtc() {
- return this.expirationDateUtc;
- }
-
- /**
- * Set the expirationDateUtc property: Expiration date of the rule, if value is not provided or provided as null
- * there will no expiration at all.
- *
- * @param expirationDateUtc the expirationDateUtc value to set.
- * @return the AlertsSuppressionRuleProperties object itself.
- */
- public AlertsSuppressionRuleProperties withExpirationDateUtc(OffsetDateTime expirationDateUtc) {
- this.expirationDateUtc = expirationDateUtc;
- return this;
- }
-
- /**
- * Get the reason property: The reason for dismissing the alert.
- *
- * @return the reason value.
- */
- public String reason() {
- return this.reason;
- }
-
- /**
- * Set the reason property: The reason for dismissing the alert.
- *
- * @param reason the reason value to set.
- * @return the AlertsSuppressionRuleProperties object itself.
- */
- public AlertsSuppressionRuleProperties withReason(String reason) {
- this.reason = reason;
- return this;
- }
-
- /**
- * Get the state property: Possible states of the rule.
- *
- * @return the state value.
- */
- public RuleState state() {
- return this.state;
- }
-
- /**
- * Set the state property: Possible states of the rule.
- *
- * @param state the state value to set.
- * @return the AlertsSuppressionRuleProperties object itself.
- */
- public AlertsSuppressionRuleProperties withState(RuleState state) {
- this.state = state;
- return this;
- }
-
- /**
- * Get the comment property: Any comment regarding the rule.
- *
- * @return the comment value.
- */
- public String comment() {
- return this.comment;
- }
-
- /**
- * Set the comment property: Any comment regarding the rule.
- *
- * @param comment the comment value to set.
- * @return the AlertsSuppressionRuleProperties object itself.
- */
- public AlertsSuppressionRuleProperties withComment(String comment) {
- this.comment = comment;
- return this;
- }
-
- /**
- * Get the suppressionAlertsScope property: The suppression conditions.
- *
- * @return the suppressionAlertsScope value.
- */
- public SuppressionAlertsScope suppressionAlertsScope() {
- return this.suppressionAlertsScope;
- }
-
- /**
- * Set the suppressionAlertsScope property: The suppression conditions.
- *
- * @param suppressionAlertsScope the suppressionAlertsScope value to set.
- * @return the AlertsSuppressionRuleProperties object itself.
- */
- public AlertsSuppressionRuleProperties withSuppressionAlertsScope(SuppressionAlertsScope suppressionAlertsScope) {
- this.suppressionAlertsScope = suppressionAlertsScope;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (alertType() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property alertType in model AlertsSuppressionRuleProperties"));
- }
- if (reason() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property reason in model AlertsSuppressionRuleProperties"));
- }
- if (state() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property state in model AlertsSuppressionRuleProperties"));
- }
- if (suppressionAlertsScope() != null) {
- suppressionAlertsScope().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(AlertsSuppressionRuleProperties.class);
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("alertType", this.alertType);
- jsonWriter.writeStringField("reason", this.reason);
- jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString());
- jsonWriter.writeStringField("expirationDateUtc",
- this.expirationDateUtc == null
- ? null
- : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.expirationDateUtc));
- jsonWriter.writeStringField("comment", this.comment);
- jsonWriter.writeJsonField("suppressionAlertsScope", this.suppressionAlertsScope);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of AlertsSuppressionRuleProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of AlertsSuppressionRuleProperties if the JsonReader was pointing to an instance of it, or
- * null if it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the AlertsSuppressionRuleProperties.
- */
- public static AlertsSuppressionRuleProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- AlertsSuppressionRuleProperties deserializedAlertsSuppressionRuleProperties
- = new AlertsSuppressionRuleProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("alertType".equals(fieldName)) {
- deserializedAlertsSuppressionRuleProperties.alertType = reader.getString();
- } else if ("reason".equals(fieldName)) {
- deserializedAlertsSuppressionRuleProperties.reason = reader.getString();
- } else if ("state".equals(fieldName)) {
- deserializedAlertsSuppressionRuleProperties.state = RuleState.fromString(reader.getString());
- } else if ("lastModifiedUtc".equals(fieldName)) {
- deserializedAlertsSuppressionRuleProperties.lastModifiedUtc = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
- } else if ("expirationDateUtc".equals(fieldName)) {
- deserializedAlertsSuppressionRuleProperties.expirationDateUtc = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
- } else if ("comment".equals(fieldName)) {
- deserializedAlertsSuppressionRuleProperties.comment = reader.getString();
- } else if ("suppressionAlertsScope".equals(fieldName)) {
- deserializedAlertsSuppressionRuleProperties.suppressionAlertsScope
- = SuppressionAlertsScope.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedAlertsSuppressionRuleProperties;
- });
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ApplicationInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ApplicationInner.java
deleted file mode 100644
index 15d33f5044d47..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ApplicationInner.java
+++ /dev/null
@@ -1,231 +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.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.ProxyResource;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.security.models.ApplicationSourceResourceType;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * Security Application over a given scope.
- */
-@Fluent
-public final class ApplicationInner extends ProxyResource {
- /*
- * Properties of a security application
- */
- private ApplicationProperties innerProperties;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /**
- * Creates an instance of ApplicationInner class.
- */
- public ApplicationInner() {
- }
-
- /**
- * Get the innerProperties property: Properties of a security application.
- *
- * @return the innerProperties value.
- */
- private ApplicationProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * Get the displayName property: display name of the application.
- *
- * @return the displayName value.
- */
- public String displayName() {
- return this.innerProperties() == null ? null : this.innerProperties().displayName();
- }
-
- /**
- * Set the displayName property: display name of the application.
- *
- * @param displayName the displayName value to set.
- * @return the ApplicationInner object itself.
- */
- public ApplicationInner withDisplayName(String displayName) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ApplicationProperties();
- }
- this.innerProperties().withDisplayName(displayName);
- return this;
- }
-
- /**
- * Get the description property: description of the application.
- *
- * @return the description value.
- */
- public String description() {
- return this.innerProperties() == null ? null : this.innerProperties().description();
- }
-
- /**
- * Set the description property: description of the application.
- *
- * @param description the description value to set.
- * @return the ApplicationInner object itself.
- */
- public ApplicationInner withDescription(String description) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ApplicationProperties();
- }
- this.innerProperties().withDescription(description);
- return this;
- }
-
- /**
- * Get the sourceResourceType property: The application source, what it affects, e.g. Assessments.
- *
- * @return the sourceResourceType value.
- */
- public ApplicationSourceResourceType sourceResourceType() {
- return this.innerProperties() == null ? null : this.innerProperties().sourceResourceType();
- }
-
- /**
- * Set the sourceResourceType property: The application source, what it affects, e.g. Assessments.
- *
- * @param sourceResourceType the sourceResourceType value to set.
- * @return the ApplicationInner object itself.
- */
- public ApplicationInner withSourceResourceType(ApplicationSourceResourceType sourceResourceType) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ApplicationProperties();
- }
- this.innerProperties().withSourceResourceType(sourceResourceType);
- return this;
- }
-
- /**
- * Get the conditionSets property: The application conditionSets - see examples.
- *
- * @return the conditionSets value.
- */
- public List