diff --git a/sdk/clientcore/annotation-processor/pom.xml b/sdk/clientcore/annotation-processor/pom.xml
index 34d779ca6321..9ecda36fc602 100644
--- a/sdk/clientcore/annotation-processor/pom.xml
+++ b/sdk/clientcore/annotation-processor/pom.xml
@@ -113,7 +113,7 @@
io.clientcorecore
- 1.0.0-beta.9
+ 1.0.0-beta.8
diff --git a/sdk/security/azure-resourcemanager-security/CHANGELOG.md b/sdk/security/azure-resourcemanager-security/CHANGELOG.md
index 356ec381b7c0..231dec8a7456 100644
--- a/sdk/security/azure-resourcemanager-security/CHANGELOG.md
+++ b/sdk/security/azure-resourcemanager-security/CHANGELOG.md
@@ -1,14 +1,933 @@
# Release History
-## 1.1.0-beta.1 (Unreleased)
+## 1.0.0-beta.1 (2025-04-07)
-### Features Added
+- 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).
### Breaking Changes
-### Bugs Fixed
+#### `models.Extension` was modified
-### Other Changes
+* `models.OperationStatus operationStatus()` -> `models.OperationStatusAutoGenerated operationStatus()`
+
+#### `models.Settings` was modified
+
+* `updateWithResponse(models.SettingName,fluent.models.SettingInner,com.azure.core.util.Context)` was removed
+* `get(models.SettingName)` was removed
+* `update(models.SettingName,fluent.models.SettingInner)` was removed
+* `getWithResponse(models.SettingName,com.azure.core.util.Context)` was removed
+
+#### `models.OperationStatus` was modified
+
+* `withCode(models.Code)` was removed
+* `models.Code code()` -> `java.lang.String code()`
+
+### Features Added
+
+* `models.AdditionalData` was added
+
+* `models.GovernanceAssignment$Definition` was added
+
+* `models.AgentlessEnablement` was added
+
+* `models.AutomationList` was added
+
+* `models.RegulatoryComplianceAssessments` was added
+
+* `models.DefenderForContainersGcpOfferingVmScanners` was added
+
+* `models.OnboardingState` was added
+
+* `models.NotificationsSourceAlert` was added
+
+* `models.GcpOrganizationalDataOrganization` was added
+
+* `models.SecurityConnector` was added
+
+* `models.AlertsSuppressionRule` was added
+
+* `models.SecurityConnector$Update` was added
+
+* `models.SensitivityLabel` was added
+
+* `models.ConnectorSetting` was added
+
+* `models.Automation` was added
+
+* `models.CustomAssessmentAutomationsListResult` was added
+
+* `models.RegulatoryComplianceControl` was added
+
+* `models.SecurityConnectorsList` was added
+
+* `models.AutomationTriggeringRule` was added
+
+* `models.RuleResultsProperties` was added
+
+* `models.ExecuteGovernanceRuleParams` was added
+
+* `models.CustomAssessmentAutomation$Definition` was added
+
+* `models.DevOpsProvisioningState` was added
+
+* `models.ArcAutoProvisioning` was added
+
+* `models.AzureDevOpsRepository$UpdateStages` was added
+
+* `models.AuthenticationDetailsProperties` was added
+
+* `models.SecurityConnectors` was added
+
+* `models.Baseline` was added
+
+* `models.RulesResults` was added
+
+* `models.CustomEntityStoreAssignmentRequest` was added
+
+* `models.AzureDevOpsProject$UpdateStages` was added
+
+* `models.DefenderForStorageSetting$Definition` was added
+
+* `models.AutoProvisioningSettingList` was added
+
+* `models.Compliance` was added
+
+* `models.AzureDevOpsRepository$Definition` was added
+
+* `models.DefenderForServersGcpOffering` was added
+
+* `models.SecurityConnector$UpdateStages` was added
+
+* `models.GcpProjectEnvironmentData` was added
+
+* `models.AutoProvisioningSetting$Definition` was added
+
+* `models.DefenderForContainersAwsOfferingMdcContainersImageAssessment` was added
+
+* `models.DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S` was added
+
+* `models.ResourceIdentityType` was added
+
+* `models.ActionableRemediationState` was added
+
+* `models.AwsOrganizationalDataMaster` was added
+
+* `models.GcpOrganizationalDataMember` was added
+
+* `models.GitHubRepositoryProperties` was added
+
+* `models.PermissionProperty` was added
+
+* `models.HybridComputeSettingsProperties` was added
+
+* `models.AuthenticationProvisioningState` was added
+
+* `models.WorkspaceSetting$UpdateStages` was added
+
+* `models.DefenderForServersAwsOfferingSubPlan` was added
+
+* `models.GovernanceRulesOperationResultsHeaders` was added
+
+* `models.SubAssessments` was added
+
+* `models.ScanSummary` was added
+
+* `models.ConnectorSetting$DefinitionStages` was added
+
+* `models.Scan` was added
+
+* `models.SecurityTaskList` was added
+
+* `models.SupportedCloudEnum` was added
+
+* `models.SensitivitySettings` was added
+
+* `models.DefenderFoDatabasesAwsOfferingDatabasesDspm` was added
+
+* `models.GovernanceAssignments` was added
+
+* `models.DockerHubEnvironmentData` was added
+
+* `models.CspmMonitorDockerHubOffering` was added
+
+* `models.InformationProtectionPolicy$UpdateStages` was added
+
+* `models.Automations` was added
+
+* `models.GovernanceRuleSourceResourceType` was added
+
+* `models.OperationResultAutoGenerated` was added
+
+* `models.DefenderForServersGcpOfferingMdeAutoProvisioning` was added
+
+* `models.RuleState` was added
+
+* `models.SecurityContactRole` was added
+
+* `models.Operation` was added
+
+* `models.Automation$DefinitionStages` was added
+
+* `models.AzureDevOpsProject$Update` was added
+
+* `models.CustomAssessmentAutomationRequest` was added
+
+* `models.GitlabScopeEnvironmentData` was added
+
+* `models.DefenderCspmGcpOfferingMdcContainersImageAssessment` was added
+
+* `models.SubAssessmentStatus` was added
+
+* `models.ArcAutoProvisioningAws` was added
+
+* `models.AwsOrganizationalDataMember` was added
+
+* `models.SecurityContactList` was added
+
+* `models.AzureDevOpsProjects` was added
+
+* `models.DevOpsConfigurationProperties` was added
+
+* `models.AzureDevOpsOrgProperties` was added
+
+* `models.ScanningMode` was added
+
+* `models.ArcAutoProvisioningConfiguration` was added
+
+* `models.AzureDevOpsScopeEnvironmentData` was added
+
+* `models.GitLabProject` was added
+
+* `models.BenchmarkReference` was added
+
+* `models.DefenderFoDatabasesAwsOfferingRds` was added
+
+* `models.ScanTriggerType` was added
+
+* `models.NotificationsSourceAttackPath` was added
+
+* `models.VmScannersGcp` was added
+
+* `models.AutomationValidationStatus` was added
+
+* `models.Cve` was added
+
+* `models.OperationDisplay` was added
+
+* `models.ActionType` was added
+
+* `models.CustomAssessmentAutomations` was added
+
+* `models.GovernanceRule$Update` was added
+
+* `models.ConnectorSetting$UpdateStages` was added
+
+* `models.OperationResult` was added
+
+* `models.GovernanceAssignment$Update` was added
+
+* `models.Type` was added
+
+* `models.SecurityConnectorApplications` was added
+
+* `models.GitLabProjects` was added
+
+* `models.RuleResults$UpdateStages` was added
+
+* `models.TaskUpdateActionType` was added
+
+* `models.InventoryListKind` was added
+
+* `models.GitHubOwnerProperties` was added
+
+* `models.Automation$Definition` was added
+
+* `models.Label` was added
+
+* `models.MdeOnboardingData` was added
+
+* `models.DefenderForStorageSetting$DefinitionStages` was added
+
+* `models.VaRule` was added
+
+* `models.AlertsSuppressionRulesList` was added
+
+* `models.MalwareScanProperties` was added
+
+* `models.DefenderCspmGcpOfferingVmScanners` was added
+
+* `models.Application$UpdateStages` was added
+
+* `models.SecuritySubAssessmentList` was added
+
+* `models.GovernanceRuleType` was added
+
+* `models.AutomationActionWorkspace` was added
+
+* `models.StatusName` was added
+
+* `models.OnUploadProperties` was added
+
+* `models.CspmMonitorJFrogOffering` was added
+
+* `models.InformationType` was added
+
+* `models.InventoryKind` was added
+
+* `models.AzureDevOpsRepository$DefinitionStages` was added
+
+* `models.AutoProvision` was added
+
+* `models.ConnectorSetting$Update` was added
+
+* `models.PropertyType` was added
+
+* `models.Authentication` was added
+
+* `models.AgentlessConfiguration` was added
+
+* `models.CspmMonitorAzureDevOpsOffering` was added
+
+* `models.SecurityOperators` was added
+
+* `models.ScanResultProperties` was added
+
+* `models.AzureDevOpsOrgListResponse` was added
+
+* `models.HealthReport` was added
+
+* `models.AnnotateDefaultBranchState` was added
+
+* `models.ActionableRemediation` was added
+
+* `models.WorkspaceSetting$DefinitionStages` was added
+
+* `models.MdeOnboardings` was added
+
+* `models.RuleSeverity` was added
+
+* `models.AutoProvisioningSettings` was added
+
+* `models.OperationStatusResult` was added
+
+* `models.AutoProvisioningSetting$DefinitionStages` was added
+
+* `models.EnvironmentData` was added
+
+* `models.DefenderForServersAwsOffering` was added
+
+* `models.DefenderForServersAwsOfferingVaAutoProvisioning` was added
+
+* `models.MalwareScan` was added
+
+* `models.CspmMonitorGithubOffering` was added
+
+* `models.GitLabSubgroups` was added
+
+* `models.DefenderCspmJFrogOfferingMdcContainersImageAssessment` was added
+
+* `models.GetSensitivitySettingsListResponse` was added
+
+* `models.ProxyServerProperties` was added
+
+* `models.AzureDevOpsRepository$Update` was added
+
+* `models.CspmMonitorAwsOfferingNativeCloudConnection` was added
+
+* `models.OperationListResult` was added
+
+* `models.AzureDevOpsRepos` was added
+
+* `models.GitLabGroup` was added
+
+* `models.GovernanceRule$UpdateStages` was added
+
+* `models.ContainerRegistryVulnerabilityProperties` was added
+
+* `models.AwAssumeRoleAuthenticationDetailsProperties` was added
+
+* `models.AzureDevOpsRepositoryListResponse` was added
+
+* `models.Tags` was added
+
+* `models.Locations` was added
+
+* `models.Scans` was added
+
+* `models.AutomationSource` was added
+
+* `models.Rank` was added
+
+* `models.EnvironmentType` was added
+
+* `models.GovernanceAssignment` was added
+
+* `models.AutomationAction` was added
+
+* `models.GitHubRepository` was added
+
+* `models.DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning` was added
+
+* `models.RuleResults$Update` was added
+
+* `models.SecurityOperatorList` was added
+
+* `models.HealthReports` was added
+
+* `models.SecurityContacts` was added
+
+* `models.AutomationScope` was added
+
+* `models.Issue` was added
+
+* `models.GovernanceRule$Definition` was added
+
+* `models.VmScannersBaseConfiguration` was added
+
+* `models.InformationProtectionPolicy` was added
+
+* `models.OfferingType` was added
+
+* `models.AutomationActionEventHub` was added
+
+* `models.SecurityContactName` was added
+
+* `models.DefenderForServersGcpOfferingArcAutoProvisioning` was added
+
+* `models.DefenderCspmAwsOfferingDatabasesDspm` was added
+
+* `models.Applications` was added
+
+* `models.InformationProtectionPolicy$Update` was added
+
+* `models.DefenderForServersGcpOfferingSubPlan` was added
+
+* `models.VendorReference` was added
+
+* `models.DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S` was added
+
+* `models.GitHubOwners` was added
+
+* `models.SourceType` was added
+
+* `models.DevOpsOperationResults` was added
+
+* `models.AzureTrackedResourceLocation` was added
+
+* `models.ScanState` was added
+
+* `models.DefenderForServersGcpOfferingVmScanners` was added
+
+* `models.GovernanceAssignment$UpdateStages` was added
+
+* `models.DefenderForStorageSettingProperties` was added
+
+* `models.InformationProtectionPolicy$DefinitionStages` was added
+
+* `models.SqlServerVulnerabilityProperties` was added
+
+* `models.RegulatoryComplianceStandards` was added
+
+* `models.DevOpsConfigurationListResponse` was added
+
+* `models.AuthenticationType` was added
+
+* `models.AlertsSuppressionRules` was added
+
+* `models.Automation$UpdateStages` was added
+
+* `models.AwsOrganizationalData` was added
+
+* `models.AwsEnvironmentData` was added
+
+* `models.MalwareScanningProperties` was added
+
+* `models.GovernanceAssignmentsList` was added
+
+* `models.GetSensitivitySettingsResponseProperties` was added
+
+* `models.GitLabProjectListResponse` was added
+
+* `models.ServicePrincipalProperties` was added
+
+* `models.GitLabGroupProperties` was added
+
+* `models.ComplianceList` was added
+
+* `models.ResourceDetailsAutoGenerated` was added
+
+* `models.DefenderForStorages` was added
+
+* `models.SecurityContactPropertiesNotificationsByRole` was added
+
+* `models.GitHubOwner` was added
+
+* `models.DefenderForContainersJFrogOffering` was added
+
+* `models.MipIntegrationStatus` was added
+
+* `models.AzureDevOpsProject` was added
+
+* `models.SecurityContact$DefinitionStages` was added
+
+* `models.AzureDevOpsOrg$Definition` was added
+
+* `models.QueryCheck` was added
+
+* `models.GovernanceRule` was added
+
+* `models.DefenderForDatabasesGcpOfferingArcAutoProvisioning` was added
+
+* `models.DefenderForServersGcpOfferingVaAutoProvisioning` was added
+
+* `models.DefenderForContainersGcpOfferingMdcContainersImageAssessment` was added
+
+* `models.AutomationRuleSet` was added
+
+* `models.RegulatoryComplianceAssessment` was added
+
+* `models.GcpOrganizationalData` was added
+
+* `models.ConnectorSettingList` was added
+
+* `models.MinimalSeverity` was added
+
+* `models.SqlVulnerabilityAssessmentBaselineRules` was added
+
+* `models.CustomAssessmentAutomation$DefinitionStages` was added
+
+* `models.AzureDevOpsProject$Definition` was added
+
+* `models.DefenderFoDatabasesAwsOfferingArcAutoProvisioning` was added
+
+* `models.Application$Definition` was added
+
+* `models.RuleResults$Definition` was added
+
+* `models.WorkspaceSetting$Definition` was added
+
+* `models.WorkspaceSetting` was added
+
+* `models.GitLabGroupListResponse` was added
+
+* `models.AutomationUpdateModel` was added
+
+* `models.RuleResultsInput` was added
+
+* `models.CloudOffering` was added
+
+* `models.CustomEntityStoreAssignment$DefinitionStages` was added
+
+* `models.DefenderCspmAwsOfferingVmScanners` was added
+
+* `models.VmScannersBase` was added
+
+* `models.InformationProtectionPolicies` was added
+
+* `models.SubPlan` was added
+
+* `models.ComplianceSegment` was added
+
+* `models.DefenderCspmAwsOfferingCiemOidc` was added
+
+* `models.SensitiveDataDiscoveryProperties` was added
+
+* `models.UpdateSensitivitySettingsRequest` was added
+
+* `models.InformationProtectionPolicyList` was added
+
+* `models.ConnectorSetting$Definition` was added
+
+* `models.Cvss` was added
+
+* `models.SecurityConnector$Definition` was added
+
+* `models.JFrogEnvironmentData` was added
+
+* `models.DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection` was added
+
+* `models.DevOpsConfigurations` was added
+
+* `models.AssessedResourceType` was added
+
+* `models.DefenderCspmAwsOfferingCiem` was added
+
+* `models.DefenderForContainersGcpOfferingNativeCloudConnection` was added
+
+* `models.BaselineAdjustedResult` was added
+
+* `models.AzureDevOpsOrg$UpdateStages` was added
+
+* `models.RegulatoryComplianceControlList` was added
+
+* `models.Tasks` was added
+
+* `models.Application$Update` was added
+
+* `models.CspmMonitorGcpOfferingNativeCloudConnection` was added
+
+* `models.DefenderForContainersAwsOfferingCloudWatchToKinesis` was added
+
+* `models.GithubScopeEnvironmentData` was added
+
+* `models.DefenderForServersAwsOfferingVmScanners` was added
+
+* `models.AzureDevOpsOrg` was added
+
+* `models.DefenderCspmGcpOfferingDataSensitivityDiscovery` was added
+
+* `models.WorkspaceSettingList` was added
+
+* `models.WorkspaceSettings` was added
+
+* `models.RulesResultsInput` was added
+
+* `models.AzureDevOpsRepositoryProperties` was added
+
+* `models.Authorization` was added
+
+* `models.DefenderFoDatabasesAwsOffering` was added
+
+* `models.AzureDevOpsProjectListResponse` was added
+
+* `models.AutomationActionLogicApp` was added
+
+* `models.ScanResults` was added
+
+* `models.DefenderForServersGcpOfferingVaAutoProvisioningConfiguration` was added
+
+* `models.GitHubRepositoryListResponse` was added
+
+* `models.RuleResults$DefinitionStages` was added
+
+* `models.GovernanceRuleOwnerSource` was added
+
+* `models.CspmMonitorGcpOffering` was added
+
+* `models.DefenderForContainersAwsOfferingKubernetesService` was added
+
+* `models.ArcAutoProvisioningGcp` was added
+
+* `models.SuppressionAlertsScope` was added
+
+* `models.GovernanceAssignmentAdditionalData` was added
+
+* `models.AzureDevOpsRepository` was added
+
+* `models.RuleResults` was added
+
+* `models.GitHubRepos` was added
+
+* `models.VmScannersAws` was added
+
+* `models.CategoryConfiguration` was added
+
+* `models.CustomEntityStoreAssignment$Definition` was added
+
+* `models.DefenderCspmAwsOfferingCiemDiscovery` was added
+
+* `models.Identity` was added
+
+* `models.SettingNameAutoGenerated` was added
+
+* `models.CspmMonitorAwsOffering` was added
+
+* `models.GovernanceRuleMetadata` was added
+
+* `models.TrackedResource` was added
+
+* `models.SecurityConnector$DefinitionStages` was added
+
+* `models.CloudName` was added
+
+* `models.InventoryList` was added
+
+* `models.Origin` was added
+
+* `models.RegulatoryComplianceControls` was added
+
+* `models.ScanResult` was added
+
+* `models.Software` was added
+
+* `models.DefenderForDatabasesGcpOffering` was added
+
+* `models.RuleCategory` was added
+
+* `models.RegulatoryComplianceStandard` was added
+
+* `models.Remediation` was added
+
+* `models.BuiltInInfoType` was added
+
+* `models.GovernanceRuleList` was added
+
+* `models.GovernanceAssignment$DefinitionStages` was added
+
+* `models.StatusAutoGenerated` was added
+
+* `models.Automation$Update` was added
+
+* `models.GitLabProjectProperties` was added
+
+* `models.HealthReportsList` was added
+
+* `models.CustomEntityStoreAssignments` was added
+
+* `models.Application$DefinitionStages` was added
+
+* `models.DefenderForContainersAwsOfferingKubernetesDataCollection` was added
+
+* `models.DefenderForStorageSetting` was added
+
+* `models.SecurityTaskParameters` was added
+
+* `models.ApplicationsList` was added
+
+* `models.OrganizationMembershipType` was added
+
+* `models.SecurityContact$Definition` was added
+
+* `models.RuleType` was added
+
+* `models.GitLabGroups` was added
+
+* `models.OperationStatusAutoGenerated` was added
+
+* `models.DefenderCspmGcpOfferingCiemDiscovery` was added
+
+* `models.GovernanceRule$DefinitionStages` was added
+
+* `models.CustomEntityStoreAssignmentsListResult` was added
+
+* `models.ScanProperties` was added
+
+* `models.DefenderForContainersAwsOffering` was added
+
+* `models.Application` was added
+
+* `models.SqlVulnerabilityAssessmentScanResults` was added
+
+* `models.CustomAssessmentAutomation` was added
+
+* `models.AscLocationList` was added
+
+* `models.GovernanceRuleOwnerSourceType` was added
+
+* `models.DefenderForServersGcpOfferingDefenderForServers` was added
+
+* `models.RemediationEta` was added
+
+* `models.ApplicationOperations` was added
+
+* `models.InfoType` was added
+
+* `models.SecurityOperator` was added
+
+* `models.Operations` was added
+
+* `models.WorkspaceSetting$Update` was added
+
+* `models.DefenderCspmAwsOfferingDataSensitivityDiscovery` was added
+
+* `models.InformationProtectionKeyword` was added
+
+* `models.SoftwareInventories` was added
+
+* `models.EventSource` was added
+
+* `models.InformationProtectionPolicyName` was added
+
+* `models.DevOpsCapability` was added
+
+* `models.Compliances` was added
+
+* `models.AutoDiscovery` was added
+
+* `models.SubAssessmentStatusCode` was added
+
+* `models.AccessTokenAuthentication` was added
+
+* `models.GcpProjectDetails` was added
+
+* `models.ScopeElement` was added
+
+* `models.EndOfSupportStatus` was added
+
+* `models.GitHubOwnerListResponse` was added
+
+* `models.Connectors` was added
+
+* `models.DefenderForServersAwsOfferingDefenderForServers` was added
+
+* `models.DefenderForContainersAwsOfferingKinesisToS3` was added
+
+* `models.RuleStatus` was added
+
+* `models.InheritFromParentState` was added
+
+* `models.GetSensitivitySettingsResponse` was added
+
+* `models.MinimalRiskLevel` was added
+
+* `models.SecurityConnectorApplicationOperations` was added
+
+* `models.AzureDevOpsOrg$Update` was added
+
+* `models.RegulatoryComplianceStandardList` was added
+
+* `models.SecurityTask` was added
+
+* `models.ApplicationSourceResourceType` was added
+
+* `models.AutoProvisioningSetting` was added
+
+* `models.GetSensitivitySettingsResponsePropertiesMipInformation` was added
+
+* `models.TargetBranchConfiguration` was added
+
+* `models.DefenderForContainersGcpOffering` was added
+
+* `models.Operator` was added
+
+* `models.AwsCredsAuthenticationDetailsProperties` was added
+
+* `models.AzureDevOpsProjectProperties` was added
+
+* `models.DefenderCspmAwsOfferingMdcContainersAgentlessDiscoveryK8S` was added
+
+* `models.DefenderCspmAwsOffering` was added
+
+* `models.InformationProtectionPolicy$Definition` was added
+
+* `models.GcpCredentialsDetailsProperties` was added
+
+* `models.DefenderForServersAwsOfferingMdeAutoProvisioning` was added
+
+* `models.HealthDataClassification` was added
+
+* `models.DefenderCspmAwsOfferingMdcContainersImageAssessment` was added
+
+* `models.GovernanceRules` was added
+
+* `models.MdeOnboardingDataList` was added
+
+* `models.DefenderCspmDockerHubOffering` was added
+
+* `models.AzureDevOpsOrg$DefinitionStages` was added
+
+* `models.RegulatoryComplianceAssessmentList` was added
+
+* `models.SqlVulnerabilityAssessmentScans` was added
+
+* `models.ServerVulnerabilityProperties` was added
+
+* `models.HybridComputeProvisioningState` was added
+
+* `models.GovernanceEmailNotification` was added
+
+* `models.DevOpsConfiguration` was added
+
+* `models.CspmMonitorGitLabOffering` was added
+
+* `models.GovernanceRuleEmailNotification` was added
+
+* `models.DefenderForContainersDockerHubOffering` was added
+
+* `models.CustomEntityStoreAssignment` was added
+
+* `models.DefenderCspmGcpOffering` was added
+
+* `models.SecuritySubAssessment` was added
+
+* `models.BlobsScanSummary` was added
+
+* `models.DefenderForServersAwsOfferingArcAutoProvisioning` was added
+
+* `models.DefenderForServersAwsOfferingVaAutoProvisioningConfiguration` was added
+
+* `models.AzureDevOpsProject$DefinitionStages` was added
+
+* `models.GovernanceRulesOperationResultsResponse` was added
+
+* `models.AzureDevOpsOrgs` was added
+
+* `models.DefenderForContainersAwsOfferingVmScanners` was added
+
+* `models.SecurityContact` was added
+
+* `models.Etag` was added
+
+* `models.SoftwaresList` was added
+
+* `models.DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S` was added
+
+* `models.NotificationsSource` was added
+
+* `models.EnvironmentDetails` was added
+
+* `models.DefenderCspmJFrogOffering` was added
+
+* `models.State` was added
+
+* `models.AscLocation` was added
+
+#### `SecurityManager` was modified
+
+* `customAssessmentAutomations()` was added
+* `securityContacts()` was added
+* `regulatoryComplianceControls()` was added
+* `gitLabSubgroups()` was added
+* `compliances()` was added
+* `mdeOnboardings()` was added
+* `gitHubOwners()` was added
+* `operations()` was added
+* `subAssessments()` was added
+* `softwareInventories()` was added
+* `governanceAssignments()` was added
+* `gitHubRepos()` was added
+* `alertsSuppressionRules()` was added
+* `gitLabGroups()` was added
+* `sqlVulnerabilityAssessmentScans()` was added
+* `governanceRules()` was added
+* `workspaceSettings()` was added
+* `customEntityStoreAssignments()` was added
+* `regulatoryComplianceAssessments()` was added
+* `applicationOperations()` was added
+* `sensitivitySettings()` was added
+* `locations()` was added
+* `autoProvisioningSettings()` was added
+* `azureDevOpsOrgs()` was added
+* `regulatoryComplianceStandards()` was added
+* `devOpsConfigurations()` was added
+* `tasks()` was added
+* `azureDevOpsProjects()` was added
+* `gitLabProjects()` was added
+* `connectors()` was added
+* `informationProtectionPolicies()` was added
+* `sqlVulnerabilityAssessmentScanResults()` was added
+* `securityConnectorApplicationOperations()` was added
+* `securityConnectorApplications()` was added
+* `devOpsOperationResults()` was added
+* `azureDevOpsRepos()` was added
+* `automations()` was added
+* `sqlVulnerabilityAssessmentBaselineRules()` was added
+* `healthReports()` was added
+* `applications()` was added
+* `securityOperators()` was added
+* `securityConnectors()` was added
+* `defenderForStorages()` was added
+
+#### `models.Settings` was modified
+
+* `getWithResponse(models.SettingNameAutoGenerated,com.azure.core.util.Context)` was added
+* `get(models.SettingNameAutoGenerated)` was added
+* `updateWithResponse(models.SettingNameAutoGenerated,fluent.models.SettingInner,com.azure.core.util.Context)` was added
+* `update(models.SettingNameAutoGenerated,fluent.models.SettingInner)` was added
+
+#### `models.OperationStatus` was modified
+
+* `withCode(java.lang.String)` was added
## 1.0.0 (2024-12-26)
diff --git a/sdk/security/azure-resourcemanager-security/README.md b/sdk/security/azure-resourcemanager-security/README.md
index 071b03b0d824..99a557bacb18 100644
--- a/sdk/security/azure-resourcemanager-security/README.md
+++ b/sdk/security/azure-resourcemanager-security/README.md
@@ -52,7 +52,7 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
```java
-AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
@@ -60,7 +60,7 @@ SecurityManager manager = SecurityManager
.authenticate(credential, profile);
```
-The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.
See [Authentication][authenticate] for more options.
@@ -100,5 +100,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
-
-
diff --git a/sdk/security/azure-resourcemanager-security/SAMPLE.md b/sdk/security/azure-resourcemanager-security/SAMPLE.md
index a0765d25ba82..c8447b21533b 100644
--- a/sdk/security/azure-resourcemanager-security/SAMPLE.md
+++ b/sdk/security/azure-resourcemanager-security/SAMPLE.md
@@ -24,6 +24,13 @@
- [UpdateSubscriptionLevelStateToInProgress](#alerts_updatesubscriptionlevelstatetoinprogress)
- [UpdateSubscriptionLevelStateToResolve](#alerts_updatesubscriptionlevelstatetoresolve)
+## AlertsSuppressionRules
+
+- [Delete](#alertssuppressionrules_delete)
+- [Get](#alertssuppressionrules_get)
+- [List](#alertssuppressionrules_list)
+- [Update](#alertssuppressionrules_update)
+
## AllowedConnections
- [Get](#allowedconnections_get)
@@ -39,6 +46,16 @@
- [OffboardAzureApiManagementApi](#apicollections_offboardazureapimanagementapi)
- [OnboardAzureApiManagementApi](#apicollections_onboardazureapimanagementapi)
+## ApplicationOperation
+
+- [CreateOrUpdate](#applicationoperation_createorupdate)
+- [Delete](#applicationoperation_delete)
+- [Get](#applicationoperation_get)
+
+## Applications
+
+- [List](#applications_list)
+
## Assessments
- [CreateOrUpdate](#assessments_createorupdate)
@@ -55,11 +72,77 @@
- [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)
@@ -67,6 +150,26 @@
- [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)
+
## DeviceSecurityGroups
- [CreateOrUpdate](#devicesecuritygroups_createorupdate)
@@ -86,6 +189,59 @@
- [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)
@@ -122,6 +278,20 @@
- [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)
@@ -129,6 +299,21 @@
- [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)
@@ -144,6 +329,39 @@
- [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)
@@ -161,6 +379,12 @@
- [Get](#securitystandards_get)
- [List](#securitystandards_list)
+## SensitivitySettings
+
+- [CreateOrUpdate](#sensitivitysettings_createorupdate)
+- [Get](#sensitivitysettings_get)
+- [List](#sensitivitysettings_list)
+
## ServerVulnerabilityAssessment
- [CreateOrUpdate](#servervulnerabilityassessment_createorupdate)
@@ -181,6 +405,30 @@
- [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)
@@ -188,11 +436,35 @@
- [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
@@ -623,6 +895,152 @@ 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
@@ -849,6 +1267,117 @@ 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
@@ -1147,2556 +1676,7013 @@ public final class AssessmentsMetadataListBySubscriptionSamples {
}
```
-### ComplianceResults_Get
+### AutoProvisioningSettings_Create
```java
+import com.azure.resourcemanager.security.models.AutoProvision;
+
/**
- * Samples for ComplianceResults Get.
+ * Samples for AutoProvisioningSettings Create.
*/
-public final class ComplianceResultsGetSamples {
+public final class AutoProvisioningSettingsCreateSamples {
/*
* 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/preview/2017-08-01-preview/examples/
+ * AutoProvisioningSettings/CreateAutoProvisioningSettingsSubscription_example.json
*/
/**
- * Sample code: Get compliance results on subscription.
+ * Sample code: Create auto provisioning settings for subscription.
*
* @param manager Entry point to SecurityManager.
*/
- public static void getComplianceResultsOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.complianceResults()
- .getWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "DesignateMoreThanOneOwner",
- com.azure.core.util.Context.NONE);
+ public static void
+ createAutoProvisioningSettingsForSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.autoProvisioningSettings().define("default").withAutoProvision(AutoProvision.ON).create();
}
}
```
-### ComplianceResults_List
+### AutoProvisioningSettings_Get
```java
/**
- * Samples for ComplianceResults List.
+ * Samples for AutoProvisioningSettings Get.
*/
-public final class ComplianceResultsListSamples {
+public final class AutoProvisioningSettingsGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2017-08-01/examples/ComplianceResults/
- * ListComplianceResults_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/
+ * AutoProvisioningSettings/GetAutoProvisioningSettingSubscription_example.json
*/
/**
- * Sample code: Get compliance results on subscription.
+ * Sample code: Get an auto provisioning setting for 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);
+ public static void
+ getAnAutoProvisioningSettingForSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.autoProvisioningSettings().getWithResponse("default", com.azure.core.util.Context.NONE);
}
}
```
-### CustomRecommendations_CreateOrUpdate
+### AutoProvisioningSettings_List
```java
-import com.azure.resourcemanager.security.models.RecommendationSupportedClouds;
-import com.azure.resourcemanager.security.models.SecurityIssue;
-import com.azure.resourcemanager.security.models.SeverityEnum;
+/**
+ * Samples for AutoProvisioningSettings List.
+ */
+public final class AutoProvisioningSettingsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/
+ * AutoProvisioningSettings/GetAutoProvisioningSettingsSubscription_example.json
+ */
+ /**
+ * Sample code: Get auto provisioning settings for subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void
+ getAutoProvisioningSettingsForSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.autoProvisioningSettings().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Automations_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.security.models.AutomationActionLogicApp;
+import com.azure.resourcemanager.security.models.AutomationRuleSet;
+import com.azure.resourcemanager.security.models.AutomationScope;
+import com.azure.resourcemanager.security.models.AutomationSource;
+import com.azure.resourcemanager.security.models.AutomationTriggeringRule;
+import com.azure.resourcemanager.security.models.EventSource;
+import com.azure.resourcemanager.security.models.Operator;
+import com.azure.resourcemanager.security.models.PropertyType;
import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
/**
- * Samples for CustomRecommendations CreateOrUpdate.
+ * Samples for Automations CreateOrUpdate.
*/
-public final class CustomRecommendationsCreateOrUpdateSamples {
+public final class AutomationsCreateOrUpdateSamples {
/*
* 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/preview/2023-12-01-preview/examples/Automations/
+ * PutAutomationAllAssessments_example.json
*/
/**
- * Sample code: Create or update custom recommendation over security connector scope.
+ * Sample code: Create or update a security automation for all assessments (including all severities).
*
* @param manager Entry point to SecurityManager.
*/
- public static void createOrUpdateCustomRecommendationOverSecurityConnectorScope(
+ public static void createOrUpdateASecurityAutomationForAllAssessmentsIncludingAllSeverities(
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...")
+ manager.automations()
+ .define("exampleAutomation")
+ .withRegion("Central US")
+ .withExistingResourceGroup("exampleResourceGroup")
+ .withTags(mapOf())
+ .withDescription(
+ "An example of a security automation that triggers one LogicApp resource (myTest1) on any security assessment")
+ .withIsEnabled(true)
+ .withScopes(Arrays.asList(new AutomationScope().withDescription(
+ "A description that helps to identify this scope - for example: security assessments that relate to the resource group myResourceGroup within the subscription a5caac9c-5c04-49af-b3d0-e204f40345d5")
+ .withScopePath("/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/myResourceGroup")))
+ .withSources(Arrays.asList(new AutomationSource().withEventSource(EventSource.ASSESSMENTS)))
+ .withActions(Arrays.asList(new AutomationActionLogicApp().withLogicAppResourceId(
+ "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1")
+ .withUri("https://exampleTriggerUri1.com")))
.create();
}
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * PutBySubscriptionCustomRecommendation_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2023-12-01-preview/examples/Automations/
+ * PutDisableAutomation_example.json
*/
/**
- * Sample code: Create or update custom recommendation over subscription scope.
+ * Sample code: Disable or enable a security automation.
*
* @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...")
+ public static void disableOrEnableASecurityAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.automations()
+ .define("exampleAutomation")
+ .withRegion("Central US")
+ .withExistingResourceGroup("exampleResourceGroup")
+ .withTags(mapOf())
+ .withDescription(
+ "An example of a security automation that triggers one LogicApp resource (myTest1) on any security assessment of type customAssessment")
+ .withIsEnabled(false)
+ .withScopes(Arrays.asList(new AutomationScope().withDescription(
+ "A description that helps to identify this scope - for example: security assessments that relate to the resource group myResourceGroup within the subscription a5caac9c-5c04-49af-b3d0-e204f40345d5")
+ .withScopePath("/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/myResourceGroup")))
+ .withSources(Arrays.asList(new AutomationSource().withEventSource(EventSource.ASSESSMENTS)
+ .withRuleSets(Arrays.asList(new AutomationRuleSet()
+ .withRules(Arrays.asList(new AutomationTriggeringRule().withPropertyJPath("$.Entity.AssessmentType")
+ .withPropertyType(PropertyType.STRING)
+ .withExpectedValue("customAssessment")
+ .withOperator(Operator.EQUALS)))))))
+ .withActions(Arrays.asList(new AutomationActionLogicApp().withLogicAppResourceId(
+ "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1")
+ .withUri("https://exampleTriggerUri1.com")))
.create();
}
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * PutByManagementGroupCustomRecommendation_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2023-12-01-preview/examples/Automations/
+ * PutAutomationHighSeverityAssessments_example.json
*/
/**
- * Sample code: Create or update custom recommendation over management group scope.
+ * Sample code: Create or update a security automation for all high severity assessments.
*
* @param manager Entry point to SecurityManager.
*/
- public static void createOrUpdateCustomRecommendationOverManagementGroupScope(
+ public static void createOrUpdateASecurityAutomationForAllHighSeverityAssessments(
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...")
+ manager.automations()
+ .define("exampleAutomation")
+ .withRegion("Central US")
+ .withExistingResourceGroup("exampleResourceGroup")
+ .withTags(mapOf())
+ .withDescription(
+ "An example of a security automation that triggers one LogicApp resource (myTest1) on any high severity security assessment")
+ .withIsEnabled(true)
+ .withScopes(Arrays.asList(new AutomationScope().withDescription(
+ "A description that helps to identify this scope - for example: security assessments that relate to the resource group myResourceGroup within the subscription a5caac9c-5c04-49af-b3d0-e204f40345d5")
+ .withScopePath("/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/myResourceGroup")))
+ .withSources(Arrays.asList(new AutomationSource().withEventSource(EventSource.ASSESSMENTS)
+ .withRuleSets(Arrays.asList(new AutomationRuleSet().withRules(
+ Arrays.asList(new AutomationTriggeringRule().withPropertyJPath("properties.metadata.severity")
+ .withPropertyType(PropertyType.STRING)
+ .withExpectedValue("High")
+ .withOperator(Operator.EQUALS)))))))
+ .withActions(Arrays.asList(new AutomationActionLogicApp().withLogicAppResourceId(
+ "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1")
+ .withUri("https://exampleTriggerUri1.com")))
.create();
}
+
+ // 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;
+ }
}
```
-### CustomRecommendations_Delete
+### Automations_Delete
```java
/**
- * Samples for CustomRecommendations Delete.
+ * Samples for Automations Delete.
*/
-public final class CustomRecommendationsDeleteSamples {
+public final class AutomationsDeleteSamples {
/*
* 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/preview/2023-12-01-preview/examples/Automations/
+ * DeleteAutomation_example.json
*/
/**
- * Sample code: Delete a custom recommendation over security connector scope.
+ * Sample code: Delete a security automation.
*
* @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 deleteASecurityAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.automations()
+ .deleteByResourceGroupWithResponse("myRg", "myAutomationName", 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/stable/2024-08-01/examples/CustomRecommendations/
- * DeleteBySubscriptionCustomRecommendation_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2023-12-01-preview/examples/Automations/
+ * GetAutomationResourceGroup_example.json
*/
/**
- * Sample code: Delete a custom recommendation over subscription scope.
+ * Sample code: Retrieve a security automation.
*
* @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 retrieveASecurityAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.automations()
+ .getByResourceGroupWithResponse("exampleResourceGroup", "exampleAutomation",
+ 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/stable/2024-08-01/examples/CustomRecommendations/
- * DeleteByManagementGroupCustomRecommendation_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2023-12-01-preview/examples/Automations/
+ * GetAutomationsSubscription_example.json
*/
/**
- * Sample code: Delete a custom recommendation over management group scope.
+ * Sample code: List all security automations of a specified subscription.
*
* @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
+ listAllSecurityAutomationsOfASpecifiedSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.automations().list(com.azure.core.util.Context.NONE);
}
}
```
-### CustomRecommendations_Get
+### Automations_ListByResourceGroup
```java
/**
- * Samples for CustomRecommendations Get.
+ * Samples for Automations ListByResourceGroup.
*/
-public final class CustomRecommendationsGetSamples {
+public final class AutomationsListByResourceGroupSamples {
/*
* 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/preview/2023-12-01-preview/examples/Automations/
+ * GetAutomationsResourceGroup_example.json
*/
/**
- * Sample code: Get a custom recommendation over management group scope.
+ * Sample code: List all security automations of a specified resource group.
*
* @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);
+ public static void listAllSecurityAutomationsOfASpecifiedResourceGroup(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.automations().listByResourceGroup("exampleResourceGroup", 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/stable/2024-08-01/examples/CustomRecommendations/
- * GetBySecurityConnectorCustomRecommendation_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2023-12-01-preview/examples/Automations/
+ * PatchAutomation_example.json
*/
/**
- * Sample code: Get a custom recommendation over security connector scope.
+ * Sample code: Update a security automation.
*
* @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);
+ 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;
}
+}
+```
+
+### 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/stable/2024-08-01/examples/CustomRecommendations/
- * GetBySubscriptionCustomRecommendation_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2023-12-01-preview/examples/Automations/
+ * ValidateAutomation_example.json
*/
/**
- * Sample code: Get a custom recommendation over subscription scope.
+ * Sample code: Validate the security automation model before create or update.
*
* @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 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;
}
}
```
-### CustomRecommendations_List
+### AzureDevOpsOrgs_CreateOrUpdate
```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 CustomRecommendations List.
+ * Samples for AzureDevOpsOrgs CreateOrUpdate.
*/
-public final class CustomRecommendationsListSamples {
+public final class AzureDevOpsOrgsCreateOrUpdateSamples {
/*
* 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/2025-03-01/examples/SecurityConnectorsDevOps/
+ * CreateOrUpdateAzureDevOpsOrgs_example.json
*/
/**
- * Sample code: List custom recommendations by management group scope.
+ * Sample code: CreateOrUpdate_AzureDevOpsOrgs.
*
* @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);
+ 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();
}
+}
+```
+
+### AzureDevOpsOrgs_Get
+```java
+/**
+ * Samples for AzureDevOpsOrgs Get.
+ */
+public final class AzureDevOpsOrgsGetSamples {
/*
* 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/2025-03-01/examples/SecurityConnectorsDevOps/
+ * GetAzureDevOpsOrgs_example.json
*/
/**
- * Sample code: List custom recommendations by subscription scope.
+ * Sample code: Get_AzureDevOpsOrgs.
*
* @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);
+ public static void getAzureDevOpsOrgs(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.azureDevOpsOrgs()
+ .getWithResponse("myRg", "mySecurityConnectorName", "myAzDevOpsOrg", 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/stable/2024-08-01/examples/CustomRecommendations/
- * ListBySecurityConnectorCustomRecommendations_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2025-03-01/examples/SecurityConnectorsDevOps/
+ * ListAzureDevOpsOrgs_example.json
*/
/**
- * Sample code: List custom recommendations by security connector scope.
+ * Sample code: List_AzureDevOpsOrgs.
*
* @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",
- com.azure.core.util.Context.NONE);
+ public static void listAzureDevOpsOrgs(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.azureDevOpsOrgs().list("myRg", "mySecurityConnectorName", com.azure.core.util.Context.NONE);
}
}
```
-### DeviceSecurityGroups_CreateOrUpdate
+### AzureDevOpsOrgs_ListAvailable
```java
-import com.azure.resourcemanager.security.models.ActiveConnectionsNotInAllowedRange;
-import java.time.Duration;
-import java.util.Arrays;
-
/**
- * Samples for DeviceSecurityGroups CreateOrUpdate.
+ * Samples for AzureDevOpsOrgs ListAvailable.
*/
-public final class DeviceSecurityGroupsCreateOrUpdateSamples {
+public final class AzureDevOpsOrgsListAvailableSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/DeviceSecurityGroups/
- * PutDeviceSecurityGroups_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2025-03-01/examples/SecurityConnectorsDevOps/
+ * ListAvailableAzureDevOpsOrgs_example.json
*/
/**
- * Sample code: Create or update a device security group for the specified IoT hub resource.
+ * Sample code: ListAvailable_AzureDevOpsOrgs.
*
* @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();
+ public static void listAvailableAzureDevOpsOrgs(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.azureDevOpsOrgs()
+ .listAvailableWithResponse("myRg", "mySecurityConnectorName", com.azure.core.util.Context.NONE);
}
}
```
-### DeviceSecurityGroups_Delete
+### AzureDevOpsOrgs_Update
```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 DeviceSecurityGroups Delete.
+ * Samples for AzureDevOpsOrgs Update.
*/
-public final class DeviceSecurityGroupsDeleteSamples {
+public final class AzureDevOpsOrgsUpdateSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/DeviceSecurityGroups/
- * DeleteDeviceSecurityGroups_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2025-03-01/examples/SecurityConnectorsDevOps/
+ * UpdateAzureDevOpsOrgs_example.json
*/
/**
- * Sample code: Delete a device security group for the specified IoT Hub resource.
+ * Sample code: Update_AzureDevOpsOrgs.
*
* @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);
+ 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();
}
}
```
-### DeviceSecurityGroups_Get
+### AzureDevOpsProjects_CreateOrUpdate
```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 DeviceSecurityGroups Get.
+ * Samples for AzureDevOpsProjects CreateOrUpdate.
*/
-public final class DeviceSecurityGroupsGetSamples {
+public final class AzureDevOpsProjectsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/DeviceSecurityGroups/
- * GetDeviceSecurityGroups_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2025-03-01/examples/SecurityConnectorsDevOps/
+ * CreateOrUpdateAzureDevOpsProjects_example.json
*/
/**
- * Sample code: Get a device security group for the specified IoT Hub resource.
+ * Sample code: CreateOrUpdate_AzureDevOpsProjects.
*
* @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);
+ 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();
}
}
```
-### DeviceSecurityGroups_List
+### AzureDevOpsProjects_Get
```java
/**
- * Samples for DeviceSecurityGroups List.
+ * Samples for AzureDevOpsProjects Get.
*/
-public final class DeviceSecurityGroupsListSamples {
+public final class AzureDevOpsProjectsGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/DeviceSecurityGroups/
- * ListDeviceSecurityGroups_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2025-03-01/examples/SecurityConnectorsDevOps/
+ * GetAzureDevOpsProjects_example.json
*/
/**
- * Sample code: List all device security groups for the specified IoT Hub resource.
+ * Sample code: Get_AzureDevOpsProjects.
*
* @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",
+ public static void getAzureDevOpsProjects(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.azureDevOpsProjects()
+ .getWithResponse("myRg", "mySecurityConnectorName", "myAzDevOpsOrg", "myAzDevOpsProject",
com.azure.core.util.Context.NONE);
}
}
```
-### DiscoveredSecuritySolutions_Get
+### AzureDevOpsProjects_List
```java
/**
- * Samples for DiscoveredSecuritySolutions Get.
+ * Samples for AzureDevOpsProjects List.
*/
-public final class DiscoveredSecuritySolutionsGetSamples {
+public final class AzureDevOpsProjectsListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/DiscoveredSecuritySolutions
- * /GetDiscoveredSecuritySolutionResourceGroupLocation_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2025-03-01/examples/SecurityConnectorsDevOps/
+ * ListAzureDevOpsProjects_example.json
*/
/**
- * Sample code: Get discovered security solution from a security data location.
+ * Sample code: List_AzureDevOpsProjects.
*
* @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);
+ public static void listAzureDevOpsProjects(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.azureDevOpsProjects()
+ .list("myRg", "mySecurityConnectorName", "myAzDevOpsOrg", com.azure.core.util.Context.NONE);
}
}
```
-### DiscoveredSecuritySolutions_List
+### AzureDevOpsProjects_Update
```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 DiscoveredSecuritySolutions List.
+ * Samples for AzureDevOpsProjects Update.
*/
-public final class DiscoveredSecuritySolutionsListSamples {
+public final class AzureDevOpsProjectsUpdateSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/DiscoveredSecuritySolutions
- * /GetDiscoveredSecuritySolutionsSubscription_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2025-03-01/examples/SecurityConnectorsDevOps/
+ * UpdateAzureDevOpsProjects_example.json
*/
/**
- * Sample code: Get discovered security solutions.
+ * Sample code: Update_AzureDevOpsProjects.
*
* @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);
+ 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();
}
}
```
-### DiscoveredSecuritySolutions_ListByHomeRegion
+### AzureDevOpsRepos_CreateOrUpdate
```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 DiscoveredSecuritySolutions ListByHomeRegion.
+ * Samples for AzureDevOpsRepos CreateOrUpdate.
*/
-public final class DiscoveredSecuritySolutionsListByHomeRegionSamples {
+public final class AzureDevOpsReposCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/DiscoveredSecuritySolutions
- * /GetDiscoveredSecuritySolutionsSubscriptionLocation_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2025-03-01/examples/SecurityConnectorsDevOps/
+ * CreateOrUpdateAzureDevOpsRepos_example.json
*/
/**
- * Sample code: Get discovered security solutions from a security data location.
+ * Sample code: CreateOrUpdate_AzureDevOpsRepos.
*
* @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);
+ 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();
}
}
```
-### ExternalSecuritySolutions_Get
+### AzureDevOpsRepos_Get
```java
/**
- * Samples for ExternalSecuritySolutions Get.
+ * Samples for AzureDevOpsRepos Get.
*/
-public final class ExternalSecuritySolutionsGetSamples {
+public final class AzureDevOpsReposGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/
- * GetExternalSecuritySolution_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2025-03-01/examples/SecurityConnectorsDevOps/
+ * GetAzureDevOpsRepos_example.json
*/
/**
- * Sample code: Get external security solution.
+ * Sample code: Get_AzureDevOpsRepos.
*
* @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);
+ public static void getAzureDevOpsRepos(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.azureDevOpsRepos()
+ .getWithResponse("myRg", "mySecurityConnectorName", "myAzDevOpsOrg", "myAzDevOpsProject", "myAzDevOpsRepo",
+ com.azure.core.util.Context.NONE);
}
}
```
-### ExternalSecuritySolutions_List
+### AzureDevOpsRepos_List
```java
/**
- * Samples for ExternalSecuritySolutions List.
+ * Samples for AzureDevOpsRepos List.
*/
-public final class ExternalSecuritySolutionsListSamples {
+public final class AzureDevOpsReposListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/
- * GetExternalSecuritySolutionsSubscription_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2025-03-01/examples/SecurityConnectorsDevOps/
+ * ListAzureDevOpsRepos_example.json
*/
/**
- * Sample code: Get external security solutions on a subscription.
+ * Sample code: List_AzureDevOpsRepos.
*
* @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);
+ public static void listAzureDevOpsRepos(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.azureDevOpsRepos()
+ .list("myRg", "mySecurityConnectorName", "myAzDevOpsOrg", "myAzDevOpsProject",
+ com.azure.core.util.Context.NONE);
}
}
```
-### ExternalSecuritySolutions_ListByHomeRegion
+### AzureDevOpsRepos_Update
```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 ExternalSecuritySolutions ListByHomeRegion.
+ * Samples for AzureDevOpsRepos Update.
*/
-public final class ExternalSecuritySolutionsListByHomeRegionSamples {
+public final class AzureDevOpsReposUpdateSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/
- * GetExternalSecuritySolutionsSubscriptionLocation_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2025-03-01/examples/SecurityConnectorsDevOps/
+ * UpdateAzureDevOpsRepos_example.json
*/
/**
- * Sample code: Get external security solutions on a subscription from security data location.
+ * Sample code: Update_AzureDevOpsRepos.
*
* @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);
+ 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();
}
}
```
-### IotSecuritySolution_CreateOrUpdate
+### ComplianceResults_Get
```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.
+ * Samples for ComplianceResults Get.
*/
-public final class IotSecuritySolutionCreateOrUpdateSamples {
+public final class ComplianceResultsGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/
- * CreateIoTSecuritySolution.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2017-08-01/examples/ComplianceResults/
+ * GetComplianceResults_example.json
*/
/**
- * Sample code: Create or update a IoT security solution.
+ * Sample code: Get compliance results on subscription.
*
* @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;
+ 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);
}
}
```
-### IotSecuritySolution_Delete
+### ComplianceResults_List
```java
/**
- * Samples for IotSecuritySolution Delete.
+ * Samples for ComplianceResults List.
*/
-public final class IotSecuritySolutionDeleteSamples {
+public final class ComplianceResultsListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/
- * DeleteIoTSecuritySolution.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2017-08-01/examples/ComplianceResults/
+ * ListComplianceResults_example.json
*/
/**
- * Sample code: Delete an IoT security solution.
+ * Sample code: Get compliance results on subscription.
*
* @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);
+ 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);
}
}
```
-### IotSecuritySolution_GetByResourceGroup
+### Compliances_Get
```java
/**
- * Samples for IotSecuritySolution GetByResourceGroup.
+ * Samples for Compliances Get.
*/
-public final class IotSecuritySolutionGetByResourceGroupSamples {
+public final class CompliancesGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/
- * GetIoTSecuritySolution.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/Compliances/
+ * GetCompliance_example.json
*/
/**
- * Sample code: Get a IoT security solution.
+ * Sample code: Get security compliance data for a day.
*
* @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);
+ 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);
}
}
```
-### IotSecuritySolution_List
+### Compliances_List
```java
/**
- * Samples for IotSecuritySolution List.
+ * Samples for Compliances 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);
- }
-
+public final class CompliancesListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/
- * GetIoTSecuritySolutionsListByIotHub.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/Compliances/
+ * GetCompliances_example.json
*/
/**
- * Sample code: List IoT Security solutions by IoT Hub.
+ * Sample code: Get security compliance data over time.
*
* @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);
+ 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);
}
}
```
-### IotSecuritySolution_ListByResourceGroup
+### Connectors_CreateOrUpdate
```java
+import com.azure.resourcemanager.security.models.AutoProvision;
+import com.azure.resourcemanager.security.models.AwAssumeRoleAuthenticationDetailsProperties;
+import com.azure.resourcemanager.security.models.AwsCredsAuthenticationDetailsProperties;
+import com.azure.resourcemanager.security.models.GcpCredentialsDetailsProperties;
+import com.azure.resourcemanager.security.models.HybridComputeSettingsProperties;
+import com.azure.resourcemanager.security.models.ProxyServerProperties;
+import com.azure.resourcemanager.security.models.ServicePrincipalProperties;
+
/**
- * Samples for IotSecuritySolution ListByResourceGroup.
+ * Samples for Connectors CreateOrUpdate.
*/
-public final class IotSecuritySolutionListByResourceGroupSamples {
+public final class ConnectorsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/
- * GetIoTSecuritySolutionsListByIotHubAndRg.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/Connectors/
+ * CreateUpdateGcpCredentialsConnectorSubscription_example.json
*/
/**
- * Sample code: List IoT Security solutions by resource group and IoT Hub.
+ * Sample code: gcpCredentials - Create a cloud account connector for a subscription.
*
* @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);
+ 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();
}
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/
- * GetIoTSecuritySolutionsListByRg.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/Connectors/
+ * CreateUpdateAwsCredConnectorSubscription_example.json
*/
/**
- * Sample code: List IoT Security solutions by resource group.
+ * Sample code: AwsCred - Create a cloud account connector for a subscription.
*
* @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);
+ 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();
}
-}
-```
-
-### 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
+ * specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/Connectors/
+ * CreateUpdateAwsAssumeRoleConnectorSubscription_example.json
*/
/**
- * Sample code: Use this method to update existing IoT Security solution.
+ * Sample code: AwsAssumeRole - Create a cloud account connector for a subscription.
*
* @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;
+ 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();
}
}
```
-### IotSecuritySolutionAnalytics_Get
+### Connectors_Delete
```java
/**
- * Samples for IotSecuritySolutionAnalytics Get.
+ * Samples for Connectors Delete.
*/
-public final class IotSecuritySolutionAnalyticsGetSamples {
+public final class ConnectorsDeleteSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/
- * IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAnalytics.json
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/Connectors/
+ * DeleteConnectorSubscription_example.json
*/
/**
- * Sample code: Get Security Solution Analytics.
+ * Sample code: Delete a cloud account connector from a subscription.
*
* @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);
+ public static void
+ deleteACloudAccountConnectorFromASubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.connectors().deleteWithResponse("aws_dev1", com.azure.core.util.Context.NONE);
}
}
```
-### IotSecuritySolutionAnalytics_List
+### Connectors_Get
```java
/**
- * Samples for IotSecuritySolutionAnalytics List.
+ * Samples for Connectors Get.
*/
-public final class IotSecuritySolutionAnalyticsListSamples {
+public final class ConnectorsGetSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/
- * IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAnalyticsList.json
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/Connectors/
+ * GetConnectorSubscription_example.json
*/
/**
- * Sample code: Get Security Solution Analytics.
+ * Sample code: Details of a specific cloud account connector.
*
* @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);
+ public static void
+ detailsOfASpecificCloudAccountConnector(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.connectors().getWithResponse("aws_dev1", com.azure.core.util.Context.NONE);
}
}
```
-### IotSecuritySolutionsAnalyticsAggregatedAlert_Dismiss
+### Connectors_List
```java
/**
- * Samples for IotSecuritySolutionsAnalyticsAggregatedAlert Dismiss.
+ * Samples for Connectors List.
*/
-public final class IotSecuritySolutionsAnalyticsAggregatedAlertDismissSamples {
+public final class ConnectorsListSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/
- * IoTSecuritySolutionsAnalytics/PostIoTSecuritySolutionsSecurityAggregatedAlertDismiss.json
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/Connectors/
+ * GetListConnectorSubscription_example.json
*/
/**
- * Sample code: Dismiss an aggregated IoT Security Solution Alert.
+ * Sample code: Get all cloud accounts connectors of a subscription.
*
* @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);
+ getAllCloudAccountsConnectorsOfASubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.connectors().list(com.azure.core.util.Context.NONE);
}
}
```
-### IotSecuritySolutionsAnalyticsAggregatedAlert_Get
+### CustomAssessmentAutomations_Create
```java
+import com.azure.resourcemanager.security.models.SeverityEnum;
+import com.azure.resourcemanager.security.models.SupportedCloudEnum;
+
/**
- * Samples for IotSecuritySolutionsAnalyticsAggregatedAlert Get.
+ * Samples for CustomAssessmentAutomations Create.
*/
-public final class IotSecuritySolutionsAnalyticsAggregatedAlertGetSamples {
+public final class CustomAssessmentAutomationsCreateSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/
- * IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAggregatedAlert.json
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/
+ * CustomAssessmentAutomations/customAssessmentAutomationCreate_example.json
*/
/**
- * Sample code: Get the aggregated security analytics alert of yours IoT Security solution. This aggregation is
- * performed by alert name.
+ * Sample code: Create a Custom Assessment Automation.
*
* @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);
+ 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();
}
}
```
-### IotSecuritySolutionsAnalyticsAggregatedAlert_List
+### CustomAssessmentAutomations_Delete
```java
/**
- * Samples for IotSecuritySolutionsAnalyticsAggregatedAlert List.
+ * Samples for CustomAssessmentAutomations Delete.
*/
-public final class IotSecuritySolutionsAnalyticsAggregatedAlertListSamples {
+public final class CustomAssessmentAutomationsDeleteSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/
- * IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAggregatedAlertList.json
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/
+ * CustomAssessmentAutomations/customAssessmentAutomationDelete_example.json
*/
/**
- * Sample code: Get the aggregated alert list of yours IoT Security solution.
+ * Sample code: Delete a Custom Assessment Automation.
*
* @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);
+ public static void deleteACustomAssessmentAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.customAssessmentAutomations()
+ .deleteByResourceGroupWithResponse("TestResourceGroup", "MyCustomAssessmentAutomation",
+ com.azure.core.util.Context.NONE);
}
}
```
-### IotSecuritySolutionsAnalyticsRecommendation_Get
+### CustomAssessmentAutomations_GetByResourceGroup
```java
/**
- * Samples for IotSecuritySolutionsAnalyticsRecommendation Get.
+ * Samples for CustomAssessmentAutomations GetByResourceGroup.
*/
-public final class IotSecuritySolutionsAnalyticsRecommendationGetSamples {
+public final class CustomAssessmentAutomationsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/
- * IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityRecommendation.json
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/
+ * CustomAssessmentAutomations/customAssessmentAutomationGet_example.json
*/
/**
- * Sample code: Get the aggregated security analytics recommendation of yours IoT Security solution.
+ * Sample code: Get a Custom Assessment Automation.
*
* @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);
+ public static void getACustomAssessmentAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.customAssessmentAutomations()
+ .getByResourceGroupWithResponse("TestResourceGroup", "MyCustomAssessmentAutomation",
+ com.azure.core.util.Context.NONE);
}
}
```
-### IotSecuritySolutionsAnalyticsRecommendation_List
+### CustomAssessmentAutomations_List
```java
/**
- * Samples for IotSecuritySolutionsAnalyticsRecommendation List.
+ * Samples for CustomAssessmentAutomations List.
*/
-public final class IotSecuritySolutionsAnalyticsRecommendationListSamples {
+public final class CustomAssessmentAutomationsListSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/
- * IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityRecommendationList.json
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/
+ * CustomAssessmentAutomations/customAssessmentAutomationListBySubscription_example.json
*/
/**
- * Sample code: Get the list of aggregated security analytics recommendations of yours IoT Security solution.
+ * Sample code: List Custom Assessment Automations in a subscription.
*
* @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);
+ public static void
+ listCustomAssessmentAutomationsInASubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.customAssessmentAutomations().list(com.azure.core.util.Context.NONE);
}
}
```
-### JitNetworkAccessPolicies_CreateOrUpdate
+### CustomAssessmentAutomations_ListByResourceGroup
```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.
+ * Samples for CustomAssessmentAutomations ListByResourceGroup.
*/
-public final class JitNetworkAccessPoliciesCreateOrUpdateSamples {
+public final class CustomAssessmentAutomationsListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/
- * CreateJitNetworkAccessPolicy_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/
+ * CustomAssessmentAutomations/customAssessmentAutomationListByResourceGroup_example.json
*/
/**
- * Sample code: Create JIT network access policy.
+ * Sample code: List Custom Assessment Automations in a subscription and a resource group.
*
* @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();
+ public static void listCustomAssessmentAutomationsInASubscriptionAndAResourceGroup(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.customAssessmentAutomations()
+ .listByResourceGroup("TestResourceGroup", com.azure.core.util.Context.NONE);
}
}
```
-### JitNetworkAccessPolicies_Delete
+### CustomEntityStoreAssignments_Create
```java
/**
- * Samples for JitNetworkAccessPolicies Delete.
+ * Samples for CustomEntityStoreAssignments Create.
*/
-public final class JitNetworkAccessPoliciesDeleteSamples {
+public final class CustomEntityStoreAssignmentsCreateSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/
- * DeleteJitNetworkAccessPolicy_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/
+ * CustomEntityStoreAssignments/customEntityStoreAssignmentCreate_example.json
*/
/**
- * Sample code: Delete a JIT network access policy.
+ * Sample code: Create a custom entity store assignment.
*
* @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);
+ 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();
}
}
```
-### JitNetworkAccessPolicies_Get
+### CustomEntityStoreAssignments_Delete
```java
/**
- * Samples for JitNetworkAccessPolicies Get.
+ * Samples for CustomEntityStoreAssignments Delete.
*/
-public final class JitNetworkAccessPoliciesGetSamples {
+public final class CustomEntityStoreAssignmentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/
- * GetJitNetworkAccessPolicy_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/
+ * CustomEntityStoreAssignments/customEntityStoreAssignmentDelete_example.json
*/
/**
- * Sample code: Get JIT network access policy.
+ * Sample code: Delete a custom entity store assignment.
*
* @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);
+ 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);
}
}
```
-### JitNetworkAccessPolicies_Initiate
+### CustomEntityStoreAssignments_GetByResourceGroup
```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.
+ * Samples for CustomEntityStoreAssignments GetByResourceGroup.
*/
-public final class JitNetworkAccessPoliciesInitiateSamples {
+public final class CustomEntityStoreAssignmentsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/
- * InitiateJitNetworkAccessPolicy_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/
+ * CustomEntityStoreAssignments/customEntityStoreAssignmentGet_example.json
*/
/**
- * Sample code: Initiate an action on a JIT network access policy.
+ * Sample code: Get a custom entity store assignment.
*
* @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);
+ 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);
}
}
```
-### JitNetworkAccessPolicies_List
+### CustomEntityStoreAssignments_List
```java
/**
- * Samples for JitNetworkAccessPolicies List.
+ * Samples for CustomEntityStoreAssignments List.
*/
-public final class JitNetworkAccessPoliciesListSamples {
+public final class CustomEntityStoreAssignmentsListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/
- * GetJitNetworkAccessPoliciesSubscription_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/
+ * CustomEntityStoreAssignments/customEntityStoreAssignmentListBySubscription_example.json
*/
/**
- * Sample code: Get JIT network access policies on a subscription.
+ * Sample code: List custom entity store assignments in 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);
+ listCustomEntityStoreAssignmentsInASubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.customEntityStoreAssignments().list(com.azure.core.util.Context.NONE);
}
}
```
-### JitNetworkAccessPolicies_ListByRegion
+### CustomEntityStoreAssignments_ListByResourceGroup
```java
/**
- * Samples for JitNetworkAccessPolicies ListByRegion.
+ * Samples for CustomEntityStoreAssignments ListByResourceGroup.
*/
-public final class JitNetworkAccessPoliciesListByRegionSamples {
+public final class CustomEntityStoreAssignmentsListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/
- * GetJitNetworkAccessPoliciesSubscriptionLocation_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/
+ * CustomEntityStoreAssignments/customEntityStoreAssignmentListByResourceGroup_example.json
*/
/**
- * Sample code: Get JIT network access policies on a subscription from a security data location.
+ * Sample code: List custom entity store assignments in a subscription and a resource group.
*
* @param manager Entry point to SecurityManager.
*/
- public static void getJITNetworkAccessPoliciesOnASubscriptionFromASecurityDataLocation(
+ public static void listCustomEntityStoreAssignmentsInASubscriptionAndAResourceGroup(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.jitNetworkAccessPolicies().listByRegion("westeurope", com.azure.core.util.Context.NONE);
+ manager.customEntityStoreAssignments()
+ .listByResourceGroup("TestResourceGroup", com.azure.core.util.Context.NONE);
}
}
```
-### JitNetworkAccessPolicies_ListByResourceGroup
+### CustomRecommendations_CreateOrUpdate
```java
+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;
+
/**
- * Samples for JitNetworkAccessPolicies ListByResourceGroup.
+ * Samples for CustomRecommendations CreateOrUpdate.
*/
-public final class JitNetworkAccessPoliciesListByResourceGroupSamples {
+public final class CustomRecommendationsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/
- * GetJitNetworkAccessPoliciesResourceGroup_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
+ * PutBySecurityConnectorCustomRecommendation_example.json
*/
/**
- * Sample code: Get JIT network access policies on a resource group.
+ * Sample code: Create or update custom recommendation over security connector scope.
*
* @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);
+ 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();
}
-}
-```
-
-### 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
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
+ * PutBySubscriptionCustomRecommendation_example.json
*/
/**
- * Sample code: Get JIT network access policies on a resource group from a security data location.
+ * Sample code: Create or update custom recommendation over subscription scope.
*
* @param manager Entry point to SecurityManager.
*/
- public static void getJITNetworkAccessPoliciesOnAResourceGroupFromASecurityDataLocation(
+ public static void createOrUpdateCustomRecommendationOverSubscriptionScope(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.jitNetworkAccessPolicies()
- .listByResourceGroupAndRegion("myRg1", "westeurope", com.azure.core.util.Context.NONE);
+ 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();
}
-}
-```
-
-### 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
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
+ * PutByManagementGroupCustomRecommendation_example.json
*/
/**
- * Sample code: Delete a pricing on resource.
+ * Sample code: Create or update custom recommendation over management group scope.
*
* @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);
+ public static void createOrUpdateCustomRecommendationOverManagementGroupScope(
+ 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();
}
}
```
-### Pricings_Get
+### CustomRecommendations_Delete
```java
/**
- * Samples for Pricings Get.
+ * Samples for CustomRecommendations Delete.
*/
-public final class PricingsGetSamples {
+public final class CustomRecommendationsDeleteSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
- * GetResourcePricingByNameVirtualMachines_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
+ * DeleteBySecurityConnectorCustomRecommendation_example.json
*/
/**
- * Sample code: Get pricings on resource - VirtualMachines plan.
+ * Sample code: Delete a custom recommendation over security connector scope.
*
* @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);
+ 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);
}
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
- * GetPricingByNameCloudPosture_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
+ * DeleteBySubscriptionCustomRecommendation_example.json
*/
/**
- * Sample code: Get pricings on subscription - CloudPosture plan.
+ * Sample code: Delete a custom recommendation over subscription scope.
*
* @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);
+ 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);
}
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
- * GetPricingByNameDns_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
+ * DeleteByManagementGroupCustomRecommendation_example.json
*/
/**
- * Sample code: Get pricings on subscription - Dns plan.
+ * Sample code: Delete a custom recommendation over management group scope.
*
* @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);
+ 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);
}
+}
+```
+### CustomRecommendations_Get
+
+```java
+/**
+ * Samples for CustomRecommendations Get.
+ */
+public final class CustomRecommendationsGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
- * GetPricingByNameContainers_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
+ * GetByManagementGroupCustomRecommendation_example.json
*/
/**
- * Sample code: Get pricings on subscription - Containers plan.
+ * Sample code: Get a custom recommendation over management group scope.
*
* @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);
+ 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);
}
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
- * GetPricingByNameStorageAccounts_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
+ * GetBySecurityConnectorCustomRecommendation_example.json
*/
/**
- * Sample code: Get pricings on subscription - StorageAccounts plan.
+ * Sample code: Get a custom recommendation over security connector scope.
*
* @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);
+ 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);
}
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
- * GetPricingByNameVirtualMachines_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
+ * GetBySubscriptionCustomRecommendation_example.json
*/
/**
- * Sample code: Get pricings on subscription - VirtualMachines plan.
+ * Sample code: Get a custom recommendation over subscription scope.
*
* @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);
+ 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);
}
}
```
-### Pricings_List
+### CustomRecommendations_List
```java
/**
- * Samples for Pricings List.
+ * Samples for CustomRecommendations List.
*/
-public final class PricingsListSamples {
+public final class CustomRecommendationsListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
- * ListPricingsWithPlanFilter_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
+ * ListByManagementGroupCustomRecommendations_example.json
*/
/**
- * Sample code: Get pricings on subscription with plans filter.
+ * Sample code: List custom recommendations by management group scope.
*
* @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);
+ listCustomRecommendationsByManagementGroupScope(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.customRecommendations()
+ .list("providers/Microsoft.Management/managementGroups/contoso", 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
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
+ * ListBySubscriptionCustomRecommendations_example.json
*/
/**
- * Sample code: Get pricings on subscription.
+ * Sample code: List custom recommendations by subscription scope.
*
* @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);
+ 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);
}
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
- * ListResourcePricings_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
+ * ListBySecurityConnectorCustomRecommendations_example.json
*/
/**
- * Sample code: Get pricings on resource.
+ * Sample code: List custom recommendations by security connector scope.
*
* @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);
+ 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);
}
}
```
-### Pricings_Update
+### DefenderForStorage_CancelMalwareScan
```java
-import com.azure.resourcemanager.security.fluent.models.PricingInner;
-import com.azure.resourcemanager.security.models.Enforce;
-import com.azure.resourcemanager.security.models.PricingTier;
+import com.azure.resourcemanager.security.models.SettingName;
/**
- * Samples for Pricings Update.
+ * Samples for DefenderForStorage CancelMalwareScan.
*/
-public final class PricingsUpdateSamples {
+public final class DefenderForStorageCancelMalwareScanSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/examples/Pricings/
- * PutPricingByName_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2024-10-01-preview/examples/DefenderForStorage
+ * /CancelMalwareScan_example.json
*/
/**
- * Sample code: Update pricing on subscription (example for CloudPosture plan).
+ * Sample code: Cancel a Defender for Storage malware scan for the specified storage resource.
*
* @param manager Entry point to SecurityManager.
*/
- public static void updatePricingOnSubscriptionExampleForCloudPosturePlan(
+ public static void cancelADefenderForStorageMalwareScanForTheSpecifiedStorageResource(
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);
+ 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/stable/2024-01-01/examples/Pricings/
- * PutPricingByNamePartialSuccess_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2024-10-01-preview/examples/DefenderForStorage
+ * /PutDefenderForStorageSettings_example.json
*/
/**
- * Sample code: Update pricing on subscription (example for CloudPosture plan) - partial success.
+ * Sample code: Creates or updates the Defender for Storage settings on a specified resource.
*
* @param manager Entry point to SecurityManager.
*/
- public static void updatePricingOnSubscriptionExampleForCloudPosturePlanPartialSuccess(
+ public static void createsOrUpdatesTheDefenderForStorageSettingsOnASpecifiedResource(
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);
+ 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();
}
+}
+```
+
+### 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/stable/2024-01-01/examples/Pricings/
- * PutPricingVMsByName_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2024-10-01-preview/examples/DefenderForStorage
+ * /GetDefenderForStorageSettings_example.json
*/
/**
- * Sample code: Update pricing on subscription (example for VirtualMachines plan).
+ * Sample code: Gets the Defender for Storage settings for the specified resource.
*
* @param manager Entry point to SecurityManager.
*/
- public static void updatePricingOnSubscriptionExampleForVirtualMachinesPlan(
+ public static void getsTheDefenderForStorageSettingsForTheSpecifiedResource(
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),
+ manager.defenderForStorages()
+ .getWithResponse(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Storage/storageAccounts/samplestorageaccount",
+ SettingName.CURRENT, 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
+ */
+ /**
+ * Sample code: Gets the Defender for Storage malware scan for the specified storage 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);
+ }
+}
+```
+
+### DefenderForStorage_StartMalwareScan
+
+```java
+import com.azure.resourcemanager.security.models.SettingName;
+
+/**
+ * Samples for DefenderForStorage StartMalwareScan.
+ */
+public final class DefenderForStorageStartMalwareScanSamples {
+ /*
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/preview/2024-10-01-preview/examples/DefenderForStorage
+ * /StartMalwareScan_example.json
+ */
+ /**
+ * Sample code: Initiate a Defender for Storage malware scan for the specified storage account.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void initiateADefenderForStorageMalwareScanForTheSpecifiedStorageAccount(
+ 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);
+ }
+}
+```
+
+### DevOpsConfigurations_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.security.fluent.models.DevOpsConfigurationInner;
+import com.azure.resourcemanager.security.models.AgentlessConfiguration;
+import com.azure.resourcemanager.security.models.AgentlessEnablement;
+import com.azure.resourcemanager.security.models.Authorization;
+import com.azure.resourcemanager.security.models.AutoDiscovery;
+import com.azure.resourcemanager.security.models.DevOpsConfigurationProperties;
+import com.azure.resourcemanager.security.models.InventoryKind;
+import com.azure.resourcemanager.security.models.InventoryList;
+import com.azure.resourcemanager.security.models.InventoryListKind;
+import java.util.Arrays;
+
+/**
+ * Samples for DevOpsConfigurations CreateOrUpdate.
+ */
+public final class DevOpsConfigurationsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/stable/2025-03-01/examples/SecurityConnectorsDevOps/
+ * CreateOrUpdateDevOpsConfigurationsOnboardCurrentAndFuture_example.json
+ */
+ /**
+ * Sample code: CreateOrUpdate_DevOpsConfigurations_OnboardCurrentAndFuture.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createOrUpdateDevOpsConfigurationsOnboardCurrentAndFuture(
+ 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);
+ }
+
+ /*
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/stable/2025-03-01/examples/SecurityConnectorsDevOps/
+ * CreateOrUpdateDevOpsConfigurationsWithAgentlessConfigurations_example.json
+ */
+ /**
+ * Sample code: CreateOrUpdate_DevOpsConfigurations_WithAgentlessConfigurations.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createOrUpdateDevOpsConfigurationsWithAgentlessConfigurations(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.devOpsConfigurations()
+ .createOrUpdate("myRg", "mySecurityConnectorName",
+ new DevOpsConfigurationInner().withProperties(new DevOpsConfigurationProperties()
+ .withAuthorization(new Authorization().withCode("fakeTokenPlaceholder"))
+ .withAutoDiscovery(AutoDiscovery.ENABLED)
+ .withAgentlessConfiguration(
+ new AgentlessConfiguration().withAgentlessEnabled(AgentlessEnablement.ENABLED)
+ .withAgentlessAutoDiscovery(AutoDiscovery.DISABLED)
+ .withScanners(Arrays.asList("scanner1", "scanner2"))
+ .withInventoryListType(InventoryListKind.INCLUSION)
+ .withInventoryList(Arrays
+ .asList(new InventoryList().withInventoryKind(InventoryKind.AZURE_DEV_OPS_ORGANIZATION)
+ .withValue("org1"))))),
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/stable/2025-03-01/examples/SecurityConnectorsDevOps/
+ * CreateOrUpdateDevOpsConfigurationsOnboardCurrentOnly_example.json
+ */
+ /**
+ * Sample code: CreateOrUpdate_DevOpsConfigurations_OnboardCurrentOnly.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createOrUpdateDevOpsConfigurationsOnboardCurrentOnly(
+ 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/stable/2024-01-01/examples/Pricings/
- * PutResourcePricingByNameVirtualMachines_example.json
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/stable/2025-03-01/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/stable/2025-03-01/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/stable/2025-03-01/examples/SecurityConnectorsDevOps/
+ * GetDevOpsConfigurationsWithAgentlessConfigurations_example.json
+ */
+ /**
+ * Sample code: Get_DevOpsConfigurations_WithAgentlessConfigurations.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void
+ getDevOpsConfigurationsWithAgentlessConfigurations(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/stable/2025-03-01/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/stable/2025-03-01/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/stable/2025-03-01/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.AgentlessConfiguration;
+import com.azure.resourcemanager.security.models.AgentlessEnablement;
+import com.azure.resourcemanager.security.models.AutoDiscovery;
+import com.azure.resourcemanager.security.models.DevOpsConfigurationProperties;
+import com.azure.resourcemanager.security.models.InventoryKind;
+import com.azure.resourcemanager.security.models.InventoryList;
+import com.azure.resourcemanager.security.models.InventoryListKind;
+import java.util.Arrays;
+
+/**
+ * Samples for DevOpsConfigurations Update.
+ */
+public final class DevOpsConfigurationsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/stable/2025-03-01/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)
+ .withAgentlessConfiguration(
+ new AgentlessConfiguration().withAgentlessEnabled(AgentlessEnablement.ENABLED)
+ .withAgentlessAutoDiscovery(AutoDiscovery.DISABLED)
+ .withScanners(Arrays.asList("scanner1", "scanner2"))
+ .withInventoryListType(InventoryListKind.INCLUSION)
+ .withInventoryList(Arrays.asList(
+ new InventoryList().withInventoryKind(InventoryKind.AZURE_DEV_OPS_ORGANIZATION)
+ .withValue("org1"))))),
+ 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/stable/2025-03-01/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/stable/2025-03-01/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",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DeviceSecurityGroups_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.security.models.ActiveConnectionsNotInAllowedRange;
+import java.time.Duration;
+import java.util.Arrays;
+
+/**
+ * Samples for DeviceSecurityGroups CreateOrUpdate.
+ */
+public final class DeviceSecurityGroupsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/DeviceSecurityGroups/
+ * PutDeviceSecurityGroups_example.json
+ */
+ /**
+ * Sample code: Create or update a device security group for the specified IoT hub resource.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createOrUpdateADeviceSecurityGroupForTheSpecifiedIoTHubResource(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.deviceSecurityGroups()
+ .define("samplesecuritygroup")
+ .withExistingResourceId(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Devices/iotHubs/sampleiothub")
+ .withTimeWindowRules(Arrays.asList(new ActiveConnectionsNotInAllowedRange().withIsEnabled(true)
+ .withMinThreshold(0)
+ .withMaxThreshold(30)
+ .withTimeWindowSize(Duration.parse("PT05M"))))
+ .create();
+ }
+}
+```
+
+### DeviceSecurityGroups_Delete
+
+```java
+/**
+ * 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/stable/2025-03-01/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/stable/2025-03-01/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/stable/2025-03-01/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/stable/2025-03-01/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/stable/2025-03-01/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/stable/2025-03-01/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/stable/2025-03-01/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/stable/2025-03-01/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/stable/2025-03-01/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/stable/2025-03-01/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/stable/2025-03-01/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
*/
/**
- * Sample code: Update pricing on resource (example for VirtualMachines plan).
+ * Sample code: Delete the server vulnerability assessments setting of the kind settingKind from the subscription.
*
* @param manager Entry point to SecurityManager.
*/
- public static void updatePricingOnResourceExampleForVirtualMachinesPlan(
+ public static void deleteTheServerVulnerabilityAssessmentsSettingOfTheKindSettingKindFromTheSubscription(
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"),
+ manager.serverVulnerabilityAssessmentsSettings()
+ .deleteWithResponse(ServerVulnerabilityAssessmentsSettingKindName.AZURE_SERVERS_SETTING,
com.azure.core.util.Context.NONE);
}
}
```
-### SecureScoreControlDefinitions_List
+### ServerVulnerabilityAssessmentsSettings_Get
```java
+import com.azure.resourcemanager.security.models.ServerVulnerabilityAssessmentsSettingKindName;
+
/**
- * Samples for SecureScoreControlDefinitions List.
+ * Samples for ServerVulnerabilityAssessmentsSettings Get.
*/
-public final class SecureScoreControlDefinitionsListSamples {
+public final class ServerVulnerabilityAssessmentsSettingsGetSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/
- * secureScoreControlDefinitions/ListSecureScoreControlDefinitions_example.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-05-01/examples/
+ * ServerVulnerabilityAssessmentsSettings/GetServerVulnerabilityAssessmentsSetting_example.json
*/
/**
- * Sample code: List security controls definition.
+ * 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 listSecurityControlsDefinition(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.secureScoreControlDefinitions().list(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);
}
}
```
-### SecureScoreControlDefinitions_ListBySubscription
+### ServerVulnerabilityAssessmentsSettings_List
```java
/**
- * Samples for SecureScoreControlDefinitions ListBySubscription.
+ * Samples for ServerVulnerabilityAssessmentsSettings List.
*/
-public final class SecureScoreControlDefinitionsListBySubscriptionSamples {
+public final class ServerVulnerabilityAssessmentsSettingsListSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/
- * secureScoreControlDefinitions/ListSecureScoreControlDefinitions_subscription_example.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-05-01/examples/
+ * ServerVulnerabilityAssessmentsSettings/ListServerVulnerabilityAssessmentsSettings_example.json
*/
/**
- * Sample code: List security controls definition by subscription.
+ * Sample code: List the server vulnerability assessments settings set on the 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);
+ public static void listTheServerVulnerabilityAssessmentsSettingsSetOnTheSubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.serverVulnerabilityAssessmentsSettings().list(com.azure.core.util.Context.NONE);
}
}
```
-### SecureScoreControls_List
+### Settings_Get
```java
+import com.azure.resourcemanager.security.models.SettingNameAutoGenerated;
/**
- * Samples for SecureScoreControls List.
+ * Samples for Settings Get.
*/
-public final class SecureScoreControlsListSamples {
+public final class SettingsGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/secureScores/
- * ListSecureScoreControls_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2022-05-01/examples/Settings/GetSetting_example
+ * .json
*/
/**
- * Sample code: List all secure scores controls.
+ * Sample code: Get a setting on subscription.
*
* @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);
+ public static void getASettingOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.settings().getWithResponse(SettingNameAutoGenerated.WDATP, com.azure.core.util.Context.NONE);
}
}
```
-### SecureScoreControls_ListBySecureScore
+### Settings_List
```java
-import com.azure.resourcemanager.security.models.ExpandControlsEnum;
-
/**
- * Samples for SecureScoreControls ListBySecureScore.
+ * Samples for Settings List.
*/
-public final class SecureScoreControlsListBySecureScoreSamples {
+public final class SettingsListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/secureScores/
- * ListSecureScoreControlsForNameWithExpand_builtin_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2022-05-01/examples/Settings/
+ * GetSettings_example.json
*/
/**
- * Sample code: Get security controls and their current score for the specified initiative with the expand
- * parameter.
+ * Sample code: Get settings of subscription.
*
* @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);
+ public static void getSettingsOfSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.settings().list(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/2020-01-01/examples/secureScores/
- * ListSecureScoreControlsForName_builtin_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2022-05-01/examples/Settings/
+ * UpdateSetting_example.json
*/
/**
- * Sample code: Get security controls and their current score for the specified initiative.
+ * Sample code: Update a setting for subscription.
*
* @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);
+ 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);
}
}
```
-### SecureScores_Get
+### SoftwareInventories_Get
```java
/**
- * Samples for SecureScores Get.
+ * Samples for SoftwareInventories Get.
*/
-public final class SecureScoresGetSamples {
+public final class SoftwareInventoriesGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/secureScores/
- * GetSecureScoresSingle_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2021-05-01-preview/examples/
+ * SoftwareInventories/GetSoftware_example.json
*/
/**
- * Sample code: Get single secure score.
+ * Sample code: Gets a single software data of the virtual machine.
*
* @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);
+ 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);
}
}
```
-### SecureScores_List
+### SoftwareInventories_List
```java
/**
- * Samples for SecureScores List.
+ * Samples for SoftwareInventories List.
*/
-public final class SecureScoresListSamples {
+public final class SoftwareInventoriesListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/secureScores/
- * ListSecureScores_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2021-05-01-preview/examples/
+ * SoftwareInventories/ListBySubscriptionSoftwareInventories_example.json
*/
/**
- * Sample code: List secure scores.
+ * Sample code: Gets the software inventory of all virtual machines in the subscriptions.
*
* @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);
+ public static void getsTheSoftwareInventoryOfAllVirtualMachinesInTheSubscriptions(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.softwareInventories().list(com.azure.core.util.Context.NONE);
}
}
```
-### SecuritySolutions_Get
+### SoftwareInventories_ListByExtendedResource
```java
/**
- * Samples for SecuritySolutions Get.
+ * Samples for SoftwareInventories ListByExtendedResource.
*/
-public final class SecuritySolutionsGetSamples {
+public final class SoftwareInventoriesListByExtendedResourceSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/SecuritySolutions/
- * GetSecuritySolutionsResourceGroupLocation_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2021-05-01-preview/examples/
+ * SoftwareInventories/ListByExtendedResourceSoftwareInventories_example.json
*/
/**
- * Sample code: Get a security solution from a security data location.
+ * Sample code: Gets the software inventory of the virtual machine.
*
* @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);
+ getsTheSoftwareInventoryOfTheVirtualMachine(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.softwareInventories()
+ .listByExtendedResource("EITAN-TESTS", "Microsoft.Compute", "virtualMachines", "Eitan-Test1",
+ com.azure.core.util.Context.NONE);
}
}
```
-### SecuritySolutions_List
+### SqlVulnerabilityAssessmentBaselineRules_Add
```java
+import com.azure.resourcemanager.security.models.RulesResultsInput;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
/**
- * Samples for SecuritySolutions List.
+ * Samples for SqlVulnerabilityAssessmentBaselineRules Add.
*/
-public final class SecuritySolutionsListSamples {
+public final class SqlVulnerabilityAssessmentBaselineRulesAddSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/SecuritySolutions/
- * GetSecuritySolutionsSubscription_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
+ * sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_Add.json
*/
/**
- * Sample code: Get security solutions.
+ * Sample code: Create a baseline for all rules.
*
* @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);
+ 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);
}
-}
-```
-
-### 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
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
+ * sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_AddLatest.json
*/
/**
- * Sample code: Get security solutions.
+ * Sample code: Create a baseline for all rules using the latest scan results.
*
* @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);
+ 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;
}
}
```
-### SecuritySolutionsReferenceData_ListByHomeRegion
+### SqlVulnerabilityAssessmentBaselineRules_CreateOrUpdate
```java
+import java.util.Arrays;
+
/**
- * Samples for SecuritySolutionsReferenceData ListByHomeRegion.
+ * Samples for SqlVulnerabilityAssessmentBaselineRules CreateOrUpdate.
*/
-public final class SecuritySolutionsReferenceDataListByHomeRegionSamples {
+public final class SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/
- * SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscriptionLocation_example.json
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
+ * sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_PutLatest.json
*/
/**
- * Sample code: Get security solutions from a security data location.
+ * Sample code: Create a baseline using the latest scan results.
*
* @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);
+ 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();
}
}
```
-### SecurityStandards_CreateOrUpdate
+### SqlVulnerabilityAssessmentBaselineRules_Delete
```java
-import com.azure.resourcemanager.security.models.PartialAssessmentProperties;
-import com.azure.resourcemanager.security.models.StandardSupportedCloud;
-import java.util.Arrays;
-
/**
- * Samples for SecurityStandards CreateOrUpdate.
+ * Samples for SqlVulnerabilityAssessmentBaselineRules Delete.
*/
-public final class SecurityStandardsCreateOrUpdateSamples {
+public final class SqlVulnerabilityAssessmentBaselineRulesDeleteSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
- * PutBySubscriptionSecurityStandard_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
+ * sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_Delete.json
*/
/**
- * Sample code: Create or update security standard over subscription scope.
+ * Sample code: Delete the baseline.
*
* @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();
+ 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);
}
+}
+```
+### SqlVulnerabilityAssessmentBaselineRules_Get
+
+```java
+/**
+ * Samples for SqlVulnerabilityAssessmentBaselineRules Get.
+ */
+public final class SqlVulnerabilityAssessmentBaselineRulesGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
- * PutBySecurityConnectorSecurityStandard_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
+ * sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_Get.json
*/
/**
- * Sample code: Create or update security standard over security connector scope.
+ * Sample code: Get the baseline.
*
* @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();
+ */
+ 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);
}
+}
+```
+### SqlVulnerabilityAssessmentBaselineRules_List
+
+```java
+/**
+ * Samples for SqlVulnerabilityAssessmentBaselineRules List.
+ */
+public final class SqlVulnerabilityAssessmentBaselineRulesListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
- * PutByManagementGroupSecurityStandard_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
+ * sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_List.json
*/
/**
- * Sample code: Create or update security standard over management group scope.
+ * Sample code: List baseline for all rules.
*
* @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();
+ 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);
}
}
```
-### SecurityStandards_Delete
+### SqlVulnerabilityAssessmentScanResults_Get
```java
/**
- * Samples for SecurityStandards Delete.
+ * Samples for SqlVulnerabilityAssessmentScanResults Get.
*/
-public final class SecurityStandardsDeleteSamples {
+public final class SqlVulnerabilityAssessmentScanResultsGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
- * DeleteBySecurityConnectorSecurityStandard_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
+ * sqlVulnerabilityAssessmentsScanResultsOperations/ArcMachineScanResults_Get.json
*/
/**
- * Sample code: Delete a security standard over security connector scope.
+ * Sample code: Get scan details of a scan record.
*
* @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);
+ 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);
}
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
- * DeleteByManagementGroupSecurityStandard_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
+ * sqlVulnerabilityAssessmentsScanResultsOperations/ArcMachineScanResults_GetLatest.json
*/
/**
- * Sample code: Delete a security standard over management group scope.
+ * Sample code: Get scan details of the latest scan record.
*
* @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);
+ 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);
}
+}
+```
+
+### SqlVulnerabilityAssessmentScanResults_List
+```java
+/**
+ * Samples for SqlVulnerabilityAssessmentScanResults List.
+ */
+public final class SqlVulnerabilityAssessmentScanResultsListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
- * DeleteBySubscriptionSecurityStandard_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
+ * sqlVulnerabilityAssessmentsScanResultsOperations/ArcMachineScanResults_ListLatest.json
*/
/**
- * Sample code: Delete a security standard over subscription scope.
+ * Sample code: List scan results of the latest scan.
*
* @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);
+ 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);
+ }
+
+ /*
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
+ * sqlVulnerabilityAssessmentsScanResultsOperations/ArcMachineScanResults_List.json
+ */
+ /**
+ * Sample code: List scan results.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listScanResults(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.sqlVulnerabilityAssessmentScanResults()
+ .listWithResponse("Scheduled-20200623", "55555555-6666-7777-8888-999999999999",
+ "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master",
+ com.azure.core.util.Context.NONE);
}
}
```
-### SecurityStandards_Get
+### SqlVulnerabilityAssessmentScans_Get
```java
/**
- * Samples for SecurityStandards Get.
+ * Samples for SqlVulnerabilityAssessmentScans Get.
*/
-public final class SecurityStandardsGetSamples {
+public final class SqlVulnerabilityAssessmentScansGetSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
- * GetBySecurityConnectorSecurityStandard_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
+ * sqlVulnerabilityAssessmentScanOperations/ArcMachineScans_Get.json
*/
/**
- * Sample code: Get a security standard over security connector scope.
+ * Sample code: Get scan details of a scan record.
*
* @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);
+ 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);
}
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
- * GetByManagementGroupSecurityStandard_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
+ * sqlVulnerabilityAssessmentScanOperations/ArcMachineScans_GetLatest.json
*/
/**
- * Sample code: Get a security standard over management group scope.
+ * Sample code: Get scan details of the latest scan record.
*
* @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);
+ 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);
}
+}
+```
+### SqlVulnerabilityAssessmentScans_List
+
+```java
+/**
+ * Samples for SqlVulnerabilityAssessmentScans List.
+ */
+public final class SqlVulnerabilityAssessmentScansListSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
- * GetBySubscriptionSecurityStandard_example.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/
+ * sqlVulnerabilityAssessmentScanOperations/ArcMachineScans_List.json
*/
/**
- * Sample code: Get a security standard over subscription scope.
+ * Sample code: List scan details.
*
* @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);
+ 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);
}
}
```
-### SecurityStandards_List
+### 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 SecurityStandards List.
+ * Samples for StandardAssignments Create.
*/
-public final class SecurityStandardsListSamples {
+public final class StandardAssignmentsCreateSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
- * ListByManagementGroupSecurityStandards_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/StandardAssignments/
+ * PutStandardAssignment.json
*/
/**
- * Sample code: List security standards by management group scope.
+ * Sample code: Put an audit standard assignment.
*
* @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);
+ 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();
}
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/SecurityStandards/
- * ListBySubscriptionSecurityStandards_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/StandardAssignments/
+ * PutExemptionStandardAssignment.json
*/
/**
- * Sample code: List security standards by subscription scope.
+ * Sample code: Put exemption standard assignment.
*
* @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);
+ 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();
}
+}
+```
+
+### 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/SecurityStandards/
- * ListBySecurityConnectorSecurityStandards_example.json
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/StandardAssignments/
+ * DeleteStandardAssignment.json
*/
/**
- * Sample code: List security standards by security connector scope.
+ * Sample code: Delete a standard assignment.
*
* @param manager Entry point to SecurityManager.
*/
- public static void
- listSecurityStandardsBySecurityConnectorScope(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityStandards()
- .list(
+ 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",
- com.azure.core.util.Context.NONE);
+ "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", com.azure.core.util.Context.NONE);
}
}
```
-### ServerVulnerabilityAssessment_CreateOrUpdate
+### StandardAssignments_Get
```java
/**
- * Samples for ServerVulnerabilityAssessment CreateOrUpdate.
+ * Samples for StandardAssignments Get.
*/
-public final class ServerVulnerabilityAssessmentCreateOrUpdateSamples {
+public final class StandardAssignmentsGetSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/
- * ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/StandardAssignments/
+ * GetStandardAssignment.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.
+ * Sample code: Retrieve a standard assignment.
*
* @param manager Entry point to SecurityManager.
*/
- public static void
- createAServerVulnerabilityAssessmentsOnAResourceOnlyDefaultResourceIsSupportedOnceCreatingTheResourceTheServerWillBeOnboardedToVulnerabilityAssessmentByMicrosoftSecurity(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.serverVulnerabilityAssessments()
- .createOrUpdateWithResponse("rg1", "Microsoft.Compute", "virtualMachines", "vm1",
+ 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);
+ }
+}
+```
+
+### StandardAssignments_List
+
+```java
+/**
+ * Samples for StandardAssignments List.
+ */
+public final class StandardAssignmentsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/StandardAssignments/
+ * ListStandardAssignments.json
+ */
+ /**
+ * Sample code: List standard assignments.
+ *
+ * @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",
com.azure.core.util.Context.NONE);
}
}
```
-### ServerVulnerabilityAssessment_Delete
+### SubAssessments_Get
```java
/**
- * Samples for ServerVulnerabilityAssessment Delete.
+ * Samples for SubAssessments Get.
*/
-public final class ServerVulnerabilityAssessmentDeleteSamples {
+public final class SubAssessmentsGetSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/
- * ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/SubAssessments/
+ * GetSubAssessment_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.
+ * Sample code: Get security recommendation task from security data location.
*
* @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);
+ 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);
}
}
```
-### ServerVulnerabilityAssessment_Get
+### SubAssessments_List
```java
/**
- * Samples for ServerVulnerabilityAssessment Get.
+ * Samples for SubAssessments List.
*/
-public final class ServerVulnerabilityAssessmentGetSamples {
+public final class SubAssessmentsListSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/
- * ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/SubAssessments/
+ * ListSubAssessments_example.json
*/
/**
- * Sample code: Get a server vulnerability assessments onboarding status on a resource. Currently Microsoft.Security
- * only supports the single 'default' resource.
+ * Sample code: List security sub-assessments.
*
* @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);
+ 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);
}
}
```
-### ServerVulnerabilityAssessment_ListByExtendedResource
+### SubAssessments_ListAll
```java
/**
- * Samples for ServerVulnerabilityAssessment ListByExtendedResource.
+ * Samples for SubAssessments ListAll.
*/
-public final class ServerVulnerabilityAssessmentListByExtendedResourceSamples {
+public final class SubAssessmentsListAllSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/
- * ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/SubAssessments/
+ * ListSubscriptionSubAssessments_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.
+ * Sample code: List security sub-assessments.
*
* @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);
+ 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);
}
}
```
-### ServerVulnerabilityAssessmentsSettings_CreateOrUpdate
+### Tasks_GetResourceGroupLevelTask
```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.
+ * Samples for Tasks GetResourceGroupLevelTask.
*/
-public final class ServerVulnerabilityAssessmentsSettingsCreateOrUpdateSamples {
+public final class TasksGetResourceGroupLevelTaskSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-05-01/examples/
- * ServerVulnerabilityAssessmentsSettings/PutServerVulnerabilityAssessmentsSetting_example.json
+ * x-ms-original-file:
+ * specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Tasks/
+ * GetTaskResourceGroupLocation_example.json
*/
/**
- * Sample code: Set a server vulnerability assessments setting of the kind settingKind on the subscription.
+ * Sample code: Get security recommendation task in a resource group.
*
* @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),
+ public static void
+ getSecurityRecommendationTaskInAResourceGroup(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.tasks()
+ .getResourceGroupLevelTaskWithResponse("myRg", "westeurope", "d55b4dc0-779c-c66c-33e5-d7bce24c4222",
com.azure.core.util.Context.NONE);
}
}
```
-### ServerVulnerabilityAssessmentsSettings_Delete
+### Tasks_GetSubscriptionLevelTask
```java
-import com.azure.resourcemanager.security.models.ServerVulnerabilityAssessmentsSettingKindName;
-
/**
- * Samples for ServerVulnerabilityAssessmentsSettings Delete.
+ * Samples for Tasks GetSubscriptionLevelTask.
*/
-public final class ServerVulnerabilityAssessmentsSettingsDeleteSamples {
+public final class TasksGetSubscriptionLevelTaskSamples {
/*
- * 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/preview/2015-06-01-preview/examples/Tasks/
+ * GetTaskSubscriptionLocation_example.json
*/
/**
- * Sample code: Delete the server vulnerability assessments setting of the kind settingKind from the subscription.
+ * Sample code: Get security recommendation task from security data location.
*
* @param manager Entry point to SecurityManager.
*/
- public static void deleteTheServerVulnerabilityAssessmentsSettingOfTheKindSettingKindFromTheSubscription(
+ public static void getSecurityRecommendationTaskFromSecurityDataLocation(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.serverVulnerabilityAssessmentsSettings()
- .deleteWithResponse(ServerVulnerabilityAssessmentsSettingKindName.AZURE_SERVERS_SETTING,
+ manager.tasks()
+ .getSubscriptionLevelTaskWithResponse("westeurope", "62609ee7-d0a5-8616-9fe4-1df5cca7758d",
com.azure.core.util.Context.NONE);
}
}
```
-### ServerVulnerabilityAssessmentsSettings_Get
+### Tasks_List
```java
-import com.azure.resourcemanager.security.models.ServerVulnerabilityAssessmentsSettingKindName;
-
/**
- * Samples for ServerVulnerabilityAssessmentsSettings Get.
+ * Samples for Tasks List.
*/
-public final class ServerVulnerabilityAssessmentsSettingsGetSamples {
+public final class TasksListSamples {
/*
- * 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/preview/2015-06-01-preview/examples/Tasks/
+ * GetTasksSubscription_example.json
*/
/**
- * Sample code: Get the server vulnerability assessments setting of the kind settingKind that is set on the
- * subscription.
+ * Sample code: Get security recommendations tasks.
*
* @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 getSecurityRecommendationsTasks(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.tasks().list(null, com.azure.core.util.Context.NONE);
}
}
```
-### ServerVulnerabilityAssessmentsSettings_List
+### Tasks_ListByHomeRegion
```java
/**
- * Samples for ServerVulnerabilityAssessmentsSettings List.
+ * Samples for Tasks ListByHomeRegion.
*/
-public final class ServerVulnerabilityAssessmentsSettingsListSamples {
+public final class TasksListByHomeRegionSamples {
/*
- * 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/preview/2015-06-01-preview/examples/Tasks/
+ * GetTasksSubscriptionLocation_example.json
*/
/**
- * Sample code: List the server vulnerability assessments settings set on the subscription.
+ * Sample code: Get security recommendations tasks from security data location.
*
* @param manager Entry point to SecurityManager.
*/
- public static void listTheServerVulnerabilityAssessmentsSettingsSetOnTheSubscription(
+ public static void getSecurityRecommendationsTasksFromSecurityDataLocation(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.serverVulnerabilityAssessmentsSettings().list(com.azure.core.util.Context.NONE);
+ manager.tasks().listByHomeRegion("westeurope", null, com.azure.core.util.Context.NONE);
}
}
```
-### Settings_Get
+### Tasks_ListByResourceGroup
```java
-import com.azure.resourcemanager.security.models.SettingName;
-
/**
- * Samples for Settings Get.
+ * Samples for Tasks ListByResourceGroup.
*/
-public final class SettingsGetSamples {
+public final class TasksListByResourceGroupSamples {
/*
* 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/preview/2015-06-01-preview/examples/Tasks/
+ * GetTasksResourceGroupLocation_example.json
*/
/**
- * Sample code: Get a setting on subscription.
+ * Sample code: Get security recommendation tasks in a resource group.
*
* @param manager Entry point to SecurityManager.
*/
- public static void getASettingOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.settings().getWithResponse(SettingName.WDATP, com.azure.core.util.Context.NONE);
+ public static void
+ getSecurityRecommendationTasksInAResourceGroup(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.tasks().listByResourceGroup("myRg", "westeurope", null, com.azure.core.util.Context.NONE);
}
}
```
-### Settings_List
+### Tasks_UpdateResourceGroupLevelTaskState
```java
+import com.azure.resourcemanager.security.models.TaskUpdateActionType;
+
/**
- * Samples for Settings List.
+ * Samples for Tasks UpdateResourceGroupLevelTaskState.
*/
-public final class SettingsListSamples {
+public final class TasksUpdateResourceGroupLevelTaskStateSamples {
/*
* 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/preview/2015-06-01-preview/examples/Tasks/
+ * UpdateTaskResourceGroupLocation_example.json
*/
/**
- * Sample code: Get settings of subscription.
+ * Sample code: Change security recommendation task state.
*
* @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
+ 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);
}
}
```
-### Settings_Update
+### Tasks_UpdateSubscriptionLevelTaskState
```java
-import com.azure.resourcemanager.security.models.DataExportSettings;
-import com.azure.resourcemanager.security.models.SettingName;
+import com.azure.resourcemanager.security.models.TaskUpdateActionType;
/**
- * Samples for Settings Update.
+ * Samples for Tasks UpdateSubscriptionLevelTaskState.
*/
-public final class SettingsUpdateSamples {
+public final class TasksUpdateSubscriptionLevelTaskStateSamples {
/*
* 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/preview/2015-06-01-preview/examples/Tasks/
+ * UpdateTaskSubscriptionLocation_example.json
*/
/**
- * Sample code: Update a setting for subscription.
+ * Sample code: Change security recommendation task state.
*
* @param manager Entry point to SecurityManager.
*/
- 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);
+ 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);
}
}
```
-### StandardAssignments_Create
+### Topology_Get
```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 Topology Get.
*/
-public final class StandardAssignmentsCreateSamples {
+public final class TopologyGetSamples {
/*
* 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/2020-01-01/examples/Topology/
+ * GetTopology_example.json
*/
/**
- * Sample code: Put an audit standard assignment.
+ * Sample code: Get topology.
*
* @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 getTopology(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.topologies().getWithResponse("myservers", "centralus", "vnets", com.azure.core.util.Context.NONE);
}
+}
+```
+
+### Topology_List
+```java
+/**
+ * Samples for Topology List.
+ */
+public final class TopologyListSamples {
/*
* 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/2020-01-01/examples/Topology/
+ * GetTopologySubscription_example.json
*/
/**
- * Sample code: Put exemption standard assignment.
+ * Sample code: Get topology on a subscription.
*
* @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 getTopologyOnASubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.topologies().list(com.azure.core.util.Context.NONE);
}
}
```
-### StandardAssignments_Delete
+### Topology_ListByHomeRegion
```java
/**
- * Samples for StandardAssignments Delete.
+ * Samples for Topology ListByHomeRegion.
*/
-public final class StandardAssignmentsDeleteSamples {
+public final class TopologyListByHomeRegionSamples {
/*
* 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/2020-01-01/examples/Topology/
+ * GetTopologySubscriptionLocation_example.json
*/
/**
- * Sample code: Delete a standard assignment.
+ * Sample code: Get topology on a subscription from security data location.
*
* @param manager Entry point to SecurityManager.
*/
- 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);
+ public static void
+ getTopologyOnASubscriptionFromSecurityDataLocation(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.topologies().listByHomeRegion("centralus", com.azure.core.util.Context.NONE);
}
}
```
-### StandardAssignments_Get
+### WorkspaceSettings_Create
```java
/**
- * Samples for StandardAssignments Get.
+ * Samples for WorkspaceSettings Create.
*/
-public final class StandardAssignmentsGetSamples {
+public final class WorkspaceSettingsCreateSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/StandardAssignments/
- * GetStandardAssignment.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/WorkspaceSettings/
+ * CreateWorkspaceSetting_example.json
*/
/**
- * Sample code: Retrieve a standard assignment.
+ * Sample code: Create a workspace setting data for subscription.
*
* @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);
+ 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();
}
}
```
-### StandardAssignments_List
+### WorkspaceSettings_Delete
```java
/**
- * Samples for StandardAssignments List.
+ * Samples for WorkspaceSettings Delete.
*/
-public final class StandardAssignmentsListSamples {
+public final class WorkspaceSettingsDeleteSamples {
/*
* x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/StandardAssignments/
- * ListStandardAssignments.json
+ * specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/WorkspaceSettings/
+ * DeleteWorkspaceSetting_example.json
*/
/**
- * Sample code: List standard assignments.
+ * Sample code: Delete a workspace setting data for resource group.
*
* @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",
- com.azure.core.util.Context.NONE);
+ public static void
+ deleteAWorkspaceSettingDataForResourceGroup(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.workspaceSettings().deleteWithResponse("default", com.azure.core.util.Context.NONE);
}
}
```
-### Topology_Get
+### WorkspaceSettings_Get
```java
/**
- * Samples for Topology Get.
+ * Samples for WorkspaceSettings Get.
*/
-public final class TopologyGetSamples {
+public final class WorkspaceSettingsGetSamples {
/*
* 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/preview/2017-08-01-preview/examples/WorkspaceSettings/
+ * GetWorkspaceSetting_example.json
*/
/**
- * Sample code: Get topology.
+ * Sample code: Get a workspace setting on subscription.
*
* @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 getAWorkspaceSettingOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.workspaceSettings().getWithResponse("default", com.azure.core.util.Context.NONE);
}
}
```
-### Topology_List
+### WorkspaceSettings_List
```java
/**
- * Samples for Topology List.
+ * Samples for WorkspaceSettings List.
*/
-public final class TopologyListSamples {
+public final class WorkspaceSettingsListSamples {
/*
* 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/preview/2017-08-01-preview/examples/WorkspaceSettings/
+ * GetWorkspaceSettings_example.json
*/
/**
- * Sample code: Get topology on a subscription.
+ * Sample code: Get workspace settings on subscription.
*
* @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 getWorkspaceSettingsOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.workspaceSettings().list(com.azure.core.util.Context.NONE);
}
}
```
-### Topology_ListByHomeRegion
+### WorkspaceSettings_Update
```java
+import com.azure.resourcemanager.security.models.WorkspaceSetting;
+
/**
- * Samples for Topology ListByHomeRegion.
+ * Samples for WorkspaceSettings Update.
*/
-public final class TopologyListByHomeRegionSamples {
+public final class WorkspaceSettingsUpdateSamples {
/*
* 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/preview/2017-08-01-preview/examples/WorkspaceSettings/
+ * UpdateWorkspaceSetting_example.json
*/
/**
- * Sample code: Get topology on a subscription from security data location.
+ * Sample code: Update a workspace setting data for subscription.
*
* @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);
+ 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();
}
}
```
diff --git a/sdk/security/azure-resourcemanager-security/pom.xml b/sdk/security/azure-resourcemanager-security/pom.xml
index 83b5f8774751..84bc87e93a23 100644
--- a/sdk/security/azure-resourcemanager-security/pom.xml
+++ b/sdk/security/azure-resourcemanager-security/pom.xml
@@ -1,7 +1,7 @@
4.0.0
@@ -45,6 +45,7 @@ Code generated by Microsoft (R) AutoRest Code Generator.
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 789920837802..a552864d670f 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
@@ -22,69 +22,157 @@
import com.azure.core.http.policy.UserAgentPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
+import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
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.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.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;
import java.util.List;
+import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;
@@ -93,6 +181,72 @@
* 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 ComplianceResults complianceResults;
private AdvancedThreatProtections advancedThreatProtections;
@@ -149,6 +303,26 @@ public final class SecurityManager {
private CustomRecommendations customRecommendations;
+ private AzureDevOpsOrgs azureDevOpsOrgs;
+
+ private AzureDevOpsProjects azureDevOpsProjects;
+
+ private AzureDevOpsRepos azureDevOpsRepos;
+
+ private DevOpsConfigurations devOpsConfigurations;
+
+ private GitHubOwners gitHubOwners;
+
+ private GitHubRepos gitHubRepos;
+
+ private GitLabGroups gitLabGroups;
+
+ private GitLabSubgroups gitLabSubgroups;
+
+ private GitLabProjects gitLabProjects;
+
+ private DevOpsOperationResults devOpsOperationResults;
+
private final SecurityCenter clientObject;
private SecurityManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -201,6 +375,9 @@ public static Configurable configure() {
*/
public static final class Configurable {
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
+ private static final String SDK_VERSION = "version";
+ private static final Map PROPERTIES
+ = CoreUtils.getProperties("azure-resourcemanager-security.properties");
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
@@ -308,12 +485,14 @@ public SecurityManager authenticate(TokenCredential credential, AzureProfile pro
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
+ String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
+
StringBuilder userAgentBuilder = new StringBuilder();
userAgentBuilder.append("azsdk-java")
.append("-")
.append("com.azure.resourcemanager.security")
.append("/")
- .append("1.0.0");
+ .append(clientVersion);
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -359,6 +538,415 @@ 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 ComplianceResults.
*
@@ -706,6 +1294,127 @@ public CustomRecommendations customRecommendations() {
return customRecommendations;
}
+ /**
+ * 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 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 wrapped service client SecurityCenter providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsSuppressionRulesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsSuppressionRulesClient.java
new file mode 100644
index 000000000000..4536de8753de
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsSuppressionRulesClient.java
@@ -0,0 +1,119 @@
+// 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
new file mode 100644
index 000000000000..19482d743f36
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApplicationOperationsClient.java
@@ -0,0 +1,93 @@
+// 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
new file mode 100644
index 000000000000..a35f403f9bd8
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApplicationsClient.java
@@ -0,0 +1,40 @@
+// 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
new file mode 100644
index 000000000000..385c41b9a00c
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AutoProvisioningSettingsClient.java
@@ -0,0 +1,92 @@
+// 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
new file mode 100644
index 000000000000..7d18996b5d26
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AutomationsClient.java
@@ -0,0 +1,231 @@
+// 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
new file mode 100644
index 000000000000..566832c05a50
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AzureDevOpsOrgsClient.java
@@ -0,0 +1,237 @@
+// 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
new file mode 100644
index 000000000000..8f0c62b56735
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AzureDevOpsProjectsClient.java
@@ -0,0 +1,225 @@
+// 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
new file mode 100644
index 000000000000..0c8ef8061ae1
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AzureDevOpsReposClient.java
@@ -0,0 +1,239 @@
+// 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
new file mode 100644
index 000000000000..a592b826901c
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CompliancesClient.java
@@ -0,0 +1,73 @@
+// 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
new file mode 100644
index 000000000000..7f2e36613828
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ConnectorsClient.java
@@ -0,0 +1,120 @@
+// 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
new file mode 100644
index 000000000000..d27421608356
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomAssessmentAutomationsClient.java
@@ -0,0 +1,182 @@
+// 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
new file mode 100644
index 000000000000..74a13bec8c99
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomEntityStoreAssignmentsClient.java
@@ -0,0 +1,182 @@
+// 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
new file mode 100644
index 000000000000..f092ddc308de
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DefenderForStoragesClient.java
@@ -0,0 +1,165 @@
+// 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
new file mode 100644
index 000000000000..072a55b3132f
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevOpsConfigurationsClient.java
@@ -0,0 +1,253 @@
+// 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
new file mode 100644
index 000000000000..104278955f2d
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevOpsOperationResultsClient.java
@@ -0,0 +1,46 @@
+// 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/GitHubOwnersClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitHubOwnersClient.java
new file mode 100644
index 000000000000..7a4c2cb6a4a4
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitHubOwnersClient.java
@@ -0,0 +1,103 @@
+// 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
new file mode 100644
index 000000000000..fc4eb380b972
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitHubReposClient.java
@@ -0,0 +1,80 @@
+// 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
new file mode 100644
index 000000000000..a20ab3e0215d
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitLabGroupsClient.java
@@ -0,0 +1,103 @@
+// 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
new file mode 100644
index 000000000000..9faf6c688bcc
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitLabProjectsClient.java
@@ -0,0 +1,82 @@
+// 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
new file mode 100644
index 000000000000..ffcc005c753b
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitLabSubgroupsClient.java
@@ -0,0 +1,46 @@
+// 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
new file mode 100644
index 000000000000..bb00ad61eea3
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceAssignmentsClient.java
@@ -0,0 +1,153 @@
+// 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
new file mode 100644
index 000000000000..a75e3e9290b6
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceRulesClient.java
@@ -0,0 +1,289 @@
+// 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
new file mode 100644
index 000000000000..2db32bbb22aa
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/HealthReportsClient.java
@@ -0,0 +1,73 @@
+// 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
new file mode 100644
index 000000000000..4004e84aa103
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/InformationProtectionPoliciesClient.java
@@ -0,0 +1,110 @@
+// 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
new file mode 100644
index 000000000000..3addbc8dafd4
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/LocationsClient.java
@@ -0,0 +1,70 @@
+// 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
new file mode 100644
index 000000000000..1326b7d829a9
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/MdeOnboardingsClient.java
@@ -0,0 +1,62 @@
+// 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
new file mode 100644
index 000000000000..3ce1a1869f47
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/OperationsClient.java
@@ -0,0 +1,40 @@
+// 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
new file mode 100644
index 000000000000..36f7fb66f1ae
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceAssessmentsClient.java
@@ -0,0 +1,78 @@
+// 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
new file mode 100644
index 000000000000..d5da21d07924
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceControlsClient.java
@@ -0,0 +1,73 @@
+// 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
new file mode 100644
index 000000000000..598e1cdedbd4
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceStandardsClient.java
@@ -0,0 +1,66 @@
+// 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 0b1eac75a862..88f66d7d37b9 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,6 +39,237 @@ 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 ComplianceResultsClient object to access its operations.
*
@@ -234,4 +465,74 @@ public interface SecurityCenter {
* @return the CustomRecommendationsClient object.
*/
CustomRecommendationsClient getCustomRecommendations();
+
+ /**
+ * 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 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();
}
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
new file mode 100644
index 000000000000..8a5151b95281
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorApplicationOperationsClient.java
@@ -0,0 +1,115 @@
+// 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
new file mode 100644
index 000000000000..fd9ab063f4d8
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorApplicationsClient.java
@@ -0,0 +1,47 @@
+// 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
new file mode 100644
index 000000000000..c213bebdc82b
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorsClient.java
@@ -0,0 +1,196 @@
+// 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
new file mode 100644
index 000000000000..ed6a348f7243
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityContactsClient.java
@@ -0,0 +1,118 @@
+// 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
new file mode 100644
index 000000000000..1971f46dd42e
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityOperatorsClient.java
@@ -0,0 +1,123 @@
+// 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
new file mode 100644
index 000000000000..3a777e018198
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SensitivitySettingsClient.java
@@ -0,0 +1,88 @@
+// 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 f1bb9a7bd740..18ef6bb2b741 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.SettingName;
+import com.azure.resourcemanager.security.models.SettingNameAutoGenerated;
/**
* 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(SettingName settingName, Context context);
+ Response getWithResponse(SettingNameAutoGenerated 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(SettingName settingName);
+ SettingInner get(SettingNameAutoGenerated settingName);
/**
* updating settings about different configurations in Microsoft Defender for Cloud.
@@ -75,7 +75,8 @@ public interface SettingsClient {
* @return the kind of the security setting along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(SettingName settingName, SettingInner setting, Context context);
+ Response updateWithResponse(SettingNameAutoGenerated settingName, SettingInner setting,
+ Context context);
/**
* updating settings about different configurations in Microsoft Defender for Cloud.
@@ -88,5 +89,5 @@ public interface SettingsClient {
* @return the kind of the security setting.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SettingInner update(SettingName settingName, SettingInner setting);
+ SettingInner update(SettingNameAutoGenerated 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
new file mode 100644
index 000000000000..44c87aa6b343
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SoftwareInventoriesClient.java
@@ -0,0 +1,113 @@
+// 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
new file mode 100644
index 000000000000..4ddb2758ac86
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentBaselineRulesClient.java
@@ -0,0 +1,164 @@
+// 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
new file mode 100644
index 000000000000..c669c0462cd7
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentScanResultsClient.java
@@ -0,0 +1,79 @@
+// 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
new file mode 100644
index 000000000000..d87cdc9a5583
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentScansClient.java
@@ -0,0 +1,73 @@
+// 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
new file mode 100644
index 000000000000..4c3cc7e17d9d
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SubAssessmentsClient.java
@@ -0,0 +1,109 @@
+// 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
new file mode 100644
index 000000000000..5e45193f7e01
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/TasksClient.java
@@ -0,0 +1,234 @@
+// 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
new file mode 100644
index 000000000000..246993e8efde
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/WorkspaceSettingsClient.java
@@ -0,0 +1,148 @@
+// 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
new file mode 100644
index 000000000000..b82361145a2d
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertsSuppressionRuleInner.java
@@ -0,0 +1,290 @@
+// 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
new file mode 100644
index 000000000000..b7d82f67d8ea
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertsSuppressionRuleProperties.java
@@ -0,0 +1,285 @@
+// 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
new file mode 100644
index 000000000000..15d33f5044d4
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ApplicationInner.java
@@ -0,0 +1,231 @@
+// 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