diff --git a/sdk/security/azure-resourcemanager-security/CHANGELOG.md b/sdk/security/azure-resourcemanager-security/CHANGELOG.md
index 356ec381b7c0..51a429d22461 100644
--- a/sdk/security/azure-resourcemanager-security/CHANGELOG.md
+++ b/sdk/security/azure-resourcemanager-security/CHANGELOG.md
@@ -1,14 +1,1395 @@
# Release History
-## 1.1.0-beta.1 (Unreleased)
+## 1.1.0-beta.1 (2026-05-09)
-### 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) alerts resource provider. Package api-version AlertsAPI: 2022-01-01, AlertsSuppressionRulesAPI: 2019-01-01-preview, ApiCollectionsAPI: 2023-11-15, ApplicationsAPI: 2022-07-01-preview, AssessmentAPI: 2025-05-04, ATPSettingsAPI: 2019-01-01, AutomationsAPI: 2023-12-01-preview, ComplianceResultsAPI: 2017-08-01, DefenderForStorageAPI: 2025-09-01-preview, GovernanceAPI: 2022-01-01-preview, HealthReportsAPI: 2023-05-01-preview, IoTSecurityAPI: 2019-08-01, LegacySettingsAPI: 2017-08-01-preview, LocationsAPI: 2015-06-01-preview, MdeOnboardingAPI: 2021-10-01-preview, OperationsAPI: 2025-10-01-preview, PricingsAPI: 2024-01-01, PrivateLinksAPI: 2026-01-01, RegulatoryComplianceAPI: 2019-01-01-preview, SecureScoreAPI: 2020-01-01, SecurityConnectorsAPI: 2024-08-01-preview, SecurityConnectorsDevOpsAPI: 2025-11-01-preview, SecurityOperatorsAPI: 2023-01-01-preview, SecuritySolutionsAPI: 2020-01-01, SecurityStandardsAPI: 2024-08-01, SensitivitySettingsAPI: 2023-02-15-preview, ServerVulnerabilityAssessmentsSettingsAPI: 2023-05-01, SettingsAPI: 2022-05-01, SqlVulnerabilityAssessmentsAPI: 2026-04-01-preview, StandardsAPI: 2021-08-01-preview, SubAssessmentsAPI: 2019-01-01-preview, TasksAPI: 2015-06-01-preview. 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.ComplianceResultList` was removed
-### Other Changes
+#### `models.StandardAssignmentsList` was removed
+
+#### `models.AadConnectivityStateAutoGenerated` was removed
+
+#### `models.DirectMethodInvokesNotInAllowedRange` was removed
+
+#### `models.Code` was removed
+
+#### `models.SettingsList` was removed
+
+#### `models.AllowedConnectionsList` was removed
+
+#### `models.ConnectionToIpNotAllowed` was removed
+
+#### `models.Location` was removed
+
+#### `models.FailedLocalLoginsNotInAllowedRange` was removed
+
+#### `models.FileUploadsNotInAllowedRange` was removed
+
+#### `models.MqttC2DMessagesNotInAllowedRange` was removed
+
+#### `models.IoTSecuritySolutionsList` was removed
+
+#### `models.TopologyList` was removed
+
+#### `models.AlertList` was removed
+
+#### `models.ConnectionFromIpNotAllowed` was removed
+
+#### `models.AmqpC2DRejectedMessagesNotInAllowedRange` was removed
+
+#### `models.LocalUserNotAllowed` was removed
+
+#### `models.SecurityStandardList` was removed
+
+#### `models.IoTSecurityAggregatedRecommendationList` was removed
+
+#### `models.MqttC2DRejectedMessagesNotInAllowedRange` was removed
+
+#### `models.CustomRecommendationsList` was removed
+
+#### `models.ApiCollectionList` was removed
+
+#### `models.SecureScoresList` was removed
+
+#### `models.TwinUpdatesNotInAllowedRange` was removed
+
+#### `models.ServerVulnerabilityAssessmentsSettingsList` was removed
+
+#### `models.KindAutoGenerated` was removed
+
+#### `models.AmqpC2DMessagesNotInAllowedRange` was removed
+
+#### `models.HttpC2DRejectedMessagesNotInAllowedRange` was removed
+
+#### `models.AmqpD2CMessagesNotInAllowedRange` was removed
+
+#### `models.DiscoveredSecuritySolutionList` was removed
+
+#### `models.MqttD2CMessagesNotInAllowedRange` was removed
+
+#### `models.ActiveConnectionsNotInAllowedRange` was removed
+
+#### `models.QueuePurgesNotInAllowedRange` was removed
+
+#### `models.ExternalSecuritySolutionList` was removed
+
+#### `models.IoTSecurityAggregatedAlertList` was removed
+
+#### `models.SecureScoreControlDefinitionList` was removed
+
+#### `models.HttpC2DMessagesNotInAllowedRange` was removed
+
+#### `models.SecuritySolutionList` was removed
+
+#### `models.HttpD2CMessagesNotInAllowedRange` was removed
+
+#### `models.UnauthorizedOperationsNotInAllowedRange` was removed
+
+#### `models.JitNetworkAccessPoliciesList` was removed
+
+#### `models.SecurityAssessmentList` was removed
+
+#### `models.DeviceSecurityGroupList` was removed
+
+#### `models.SecureScoreControlList` was removed
+
+#### `models.SecurityAssessmentMetadataResponseList` was removed
+
+#### `models.ProcessNotAllowed` was removed
+
+#### `models.AzureResourceIdentifier` was modified
+
+* `AzureResourceIdentifier()` was changed to private access
+
+#### `models.IoTSecurityDeviceRecommendation` was modified
+
+* `IoTSecurityDeviceRecommendation()` was changed to private access
+
+#### `models.SecurityAssessmentResponse` was modified
+
+* `fluent.models.SecurityAssessmentMetadataProperties metadata()` -> `models.SecurityAssessmentMetadataProperties metadata()`
+
+#### `models.SecurityAssessmentResponse$Definition` was modified
+
+* `withMetadata(fluent.models.SecurityAssessmentMetadataProperties)` was removed
+
+#### `models.ConnectableResource` was modified
+
+* `ConnectableResource()` was changed to private access
+
+#### `models.LogAnalyticsIdentifier` was modified
+
+* `LogAnalyticsIdentifier()` was changed to private access
+
+#### `models.AssessmentLinks` was modified
+
+* `AssessmentLinks()` was changed to private access
+
+#### `models.IoTSecurityDeviceAlert` was modified
+
+* `IoTSecurityDeviceAlert()` was changed to private access
+
+#### `models.IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem` was modified
+
+* `IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem()` was changed to private access
+* `withDate(java.time.OffsetDateTime)` was removed
+* `withDevicesMetrics(models.IoTSeverityMetrics)` was removed
+
+#### `models.TopologySingleResource` was modified
+
+* `TopologySingleResource()` was changed to private access
+
+#### `models.AlertEntity` was modified
+
+* `AlertEntity()` was changed to private access
+* `withAdditionalProperties(java.util.Map)` was removed
+
+#### `models.SecuritySolutionsReferenceData` was modified
+
+* `SecuritySolutionsReferenceData()` was changed to private access
+* `withProductName(java.lang.String)` was removed
+* `withPackageInfoUrl(java.lang.String)` was removed
+* `withAlertVendorName(java.lang.String)` was removed
+* `withPublisherDisplayName(java.lang.String)` was removed
+* `withPublisher(java.lang.String)` was removed
+* `withSecurityFamily(models.SecurityFamily)` was removed
+* `withTemplate(java.lang.String)` was removed
+
+#### `models.SecurityAssessmentResponse$Update` was modified
+
+* `withMetadata(fluent.models.SecurityAssessmentMetadataProperties)` was removed
+
+#### `models.TopologySingleResourceChild` was modified
+
+* `TopologySingleResourceChild()` was changed to private access
+
+#### `models.CefSolutionProperties` was modified
+
+* `CefSolutionProperties()` was changed to private access
+* `withLastEventReceived(java.lang.String)` was removed
+* `withWorkspace(models.ConnectedWorkspace)` was removed
+* `withDeviceType(java.lang.String)` was removed
+* `withDeviceVendor(java.lang.String)` was removed
+* `withHostname(java.lang.String)` was removed
+* `withAgent(java.lang.String)` was removed
+
+#### `models.IoTSecurityAggregatedAlertPropertiesTopDevicesListItem` was modified
+
+* `IoTSecurityAggregatedAlertPropertiesTopDevicesListItem()` was changed to private access
+
+#### `models.ExternalSecuritySolutionProperties` was modified
+
+* `models.ExternalSecuritySolutionProperties withAdditionalProperties(java.util.Map)` -> `models.ExternalSecuritySolutionProperties withAdditionalProperties(java.util.Map)`
+* `models.ExternalSecuritySolutionProperties withDeviceType(java.lang.String)` -> `models.ExternalSecuritySolutionProperties withDeviceType(java.lang.String)`
+* `models.ExternalSecuritySolutionProperties withWorkspace(models.ConnectedWorkspace)` -> `models.ExternalSecuritySolutionProperties withWorkspace(models.ConnectedWorkspace)`
+* `models.ExternalSecuritySolutionProperties withDeviceVendor(java.lang.String)` -> `models.ExternalSecuritySolutionProperties withDeviceVendor(java.lang.String)`
+
+#### `models.AtaSolutionProperties` was modified
+
+* `AtaSolutionProperties()` was changed to private access
+* `withDeviceType(java.lang.String)` was removed
+* `withDeviceVendor(java.lang.String)` was removed
+* `withWorkspace(models.ConnectedWorkspace)` was removed
+* `withLastEventReceived(java.lang.String)` was removed
+
+#### `models.SecurityAssessmentPropertiesBase` was modified
+
+* `fluent.models.SecurityAssessmentMetadataProperties metadata()` -> `models.SecurityAssessmentMetadataProperties metadata()`
+* `withMetadata(fluent.models.SecurityAssessmentMetadataProperties)` was removed
+
+#### `models.AtaExternalSecuritySolution` was modified
+
+* `AtaExternalSecuritySolution()` was changed to private access
+* `withProperties(models.AtaSolutionProperties)` was removed
+
+#### `models.TopologySingleResourceParent` was modified
+
+* `TopologySingleResourceParent()` was changed to private access
+
+#### `models.CefExternalSecuritySolution` was modified
+
+* `CefExternalSecuritySolution()` was changed to private access
+* `withProperties(models.CefSolutionProperties)` was removed
+
+#### `models.AssessmentStatusResponse` was modified
+
+* `AssessmentStatusResponse()` was changed to private access
+* `withDescription(java.lang.String)` was removed
+* `withCause(java.lang.String)` was removed
+* `withCode(models.AssessmentStatusCode)` was removed
+
+#### `models.IoTSeverityMetrics` was modified
+
+* `IoTSeverityMetrics()` was changed to private access
+* `withHigh(java.lang.Long)` was removed
+* `withLow(java.lang.Long)` was removed
+* `withMedium(java.lang.Long)` was removed
+
+#### `models.ConnectedResource` was modified
+
+* `ConnectedResource()` was changed to private access
+
+#### `models.SecurityAssessment` was modified
+
+* `withMetadata(fluent.models.SecurityAssessmentMetadataProperties)` was removed
+* `fluent.models.SecurityAssessmentMetadataProperties metadata()` -> `models.SecurityAssessmentMetadataProperties metadata()`
+
+#### `models.ConnectedWorkspace` was modified
+
+* `ConnectedWorkspace()` was changed to private access
+* `withId(java.lang.String)` was removed
+
+#### `models.Protocol` was modified
+
+* `ASTERISK` was removed
+
+#### `models.AadExternalSecuritySolution` was modified
+
+* `AadExternalSecuritySolution()` was changed to private access
+* `withProperties(models.AadSolutionProperties)` was removed
+
+#### `models.SecureScoreControlDefinitionSource` was modified
+
+* `SecureScoreControlDefinitionSource()` was changed to private access
+* `withSourceType(models.ControlType)` was removed
+
+#### `models.AlertPropertiesSupportingEvidence` was modified
+
+* `AlertPropertiesSupportingEvidence()` was changed to private access
+* `withAdditionalProperties(java.util.Map)` was removed
+
+#### `models.IoTSecurityAlertedDevice` was modified
+
+* `IoTSecurityAlertedDevice()` was changed to private access
+
+#### `models.AadSolutionProperties` was modified
+
+* `AadSolutionProperties()` was changed to private access
+* `withDeviceType(java.lang.String)` was removed
+* `withConnectivityState(models.AadConnectivityState)` was removed
+* `withWorkspace(models.ConnectedWorkspace)` was removed
+* `withDeviceVendor(java.lang.String)` was removed
+
+#### `models.AzureResourceLink` was modified
+
+* `AzureResourceLink()` was changed to private access
+
+#### `models.OperationStatus` was modified
+
+* `OperationStatus()` was changed to private access
+* `withCode(models.Code)` was removed
+* `models.Code code()` -> `java.lang.String code()`
+* `withMessage(java.lang.String)` was removed
+
+### Features Added
+
+* `models.AdditionalData` was added
+
+* `models.GovernanceAssignment$Definition` was added
+
+* `models.AgentlessEnablement` 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.SqlVulnerabilityAssessmentScanOperationResultProperties` was added
+
+* `models.SecurityConnector$Update` was added
+
+* `models.OperationResultsGetResponse` was added
+
+* `models.SensitivityLabel` was added
+
+* `models.Automation` was added
+
+* `models.RegulatoryComplianceControl` was added
+
+* `models.AutomationTriggeringRule` was added
+
+* `models.OperationResultStatus` was added
+
+* `models.RuleResultsProperties` was added
+
+* `models.ExecuteGovernanceRuleParams` was added
+
+* `models.DevOpsProvisioningState` was added
+
+* `models.ArcAutoProvisioning` was added
+
+* `models.AzureDevOpsRepository$UpdateStages` was added
+
+* `models.SecurityConnectors` was added
+
+* `models.Baseline` was added
+
+* `models.RulesResults` was added
+
+* `models.AzureDevOpsProject$UpdateStages` was added
+
+* `models.DefenderForStorageSetting$Definition` 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.RiskLevel` was added
+
+* `models.ResourceIdentityType` was added
+
+* `models.ActionableRemediationState` was added
+
+* `models.AwsOrganizationalDataMaster` was added
+
+* `models.GcpOrganizationalDataMember` was added
+
+* `models.GitHubRepositoryProperties` was added
+
+* `models.ServerVulnerabilityAssessmentsSettingProperties` was added
+
+* `models.WorkspaceSetting$UpdateStages` was added
+
+* `models.Assignments` was added
+
+* `models.DefenderForServersAwsOfferingSubPlan` was added
+
+* `models.GovernanceRulesOperationResultsHeaders` was added
+
+* `models.SubAssessments` was added
+
+* `models.ScanSummary` was added
+
+* `models.AssignmentPropertiesAdditionalData` was added
+
+* `models.SensitivitySettings` was added
+
+* `models.DefenderFoDatabasesAwsOfferingDatabasesDspm` was added
+
+* `models.GovernanceAssignments` was added
+
+* `models.DockerHubEnvironmentData` was added
+
+* `models.CspmMonitorDockerHubOffering` was added
+
+* `models.Assignment$DefinitionStages` was added
+
+* `models.InformationProtectionPolicy$UpdateStages` was added
+
+* `models.Automations` was added
+
+* `models.GovernanceRuleSourceResourceType` was added
+
+* `models.FilesScanSummary` was added
+
+* `models.PrivateEndpointServiceConnectionStatus` 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.SqlVulnerabilityAssessmentSettingsOperations` was added
+
+* `models.GitlabScopeEnvironmentData` was added
+
+* `models.DefenderCspmGcpOfferingMdcContainersImageAssessment` was added
+
+* `models.PrivateLinkResource$UpdateStages` was added
+
+* `models.OperationStatuses` was added
+
+* `models.SubAssessmentStatus` was added
+
+* `models.ArcAutoProvisioningAws` was added
+
+* `models.AwsOrganizationalDataMember` 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.IssueCreationRequest` 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.GovernanceRule$Update` was added
+
+* `models.OperationResult` was added
+
+* `models.PrivateEndpointConnection$Update` was added
+
+* `models.GovernanceAssignment$Update` was added
+
+* `models.Type` was added
+
+* `models.SecurityConnectorApplications` was added
+
+* `models.GitLabProjects` was added
+
+* `models.Standard$DefinitionStages` 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.PrivateLinks` was added
+
+* `models.MdeOnboardingData` was added
+
+* `models.DefenderForStorageSetting$DefinitionStages` was added
+
+* `models.VaRule` was added
+
+* `models.AssignedComponentItem` was added
+
+* `models.MalwareScanProperties` was added
+
+* `models.DefenderCspmGcpOfferingVmScanners` was added
+
+* `models.Application$UpdateStages` was added
+
+* `models.GovernanceRuleType` was added
+
+* `models.AutomationActionWorkspace` was added
+
+* `models.StatusName` was added
+
+* `models.OnUploadProperties` was added
+
+* `models.BlobScanResultsOptions` was added
+
+* `models.CspmMonitorJFrogOffering` was added
+
+* `models.InformationType` was added
+
+* `models.InventoryKind` was added
+
+* `models.AzureDevOpsRepository$DefinitionStages` was added
+
+* `models.AutoProvision` was added
+
+* `models.PrivateLinkUpdate` was added
+
+* `models.PropertyType` was added
+
+* `models.Authentication` was added
+
+* `models.PrivateLinkResource$Update` was added
+
+* `models.SecurityAssessmentPropertiesBaseRiskPathsItemEdge` 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.HealthReportResourceDetails` was added
+
+* `models.ActionableRemediation` was added
+
+* `models.WorkspaceSetting$DefinitionStages` was added
+
+* `models.PrivateEndpoint` 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.AzureDevOpsRepository$Update` was added
+
+* `models.PrivateLinkResource$DefinitionStages` was added
+
+* `models.CspmMonitorAwsOfferingNativeCloudConnection` was added
+
+* `models.PrivateEndpointConnection` was added
+
+* `models.AzureDevOpsRepos` was added
+
+* `models.Standard$UpdateStages` was added
+
+* `models.GitLabGroup` was added
+
+* `models.GovernanceRule$UpdateStages` was added
+
+* `models.ContainerRegistryVulnerabilityProperties` was added
+
+* `models.Tags` was added
+
+* `models.Locations` was added
+
+* `models.PublicNetworkAccess` was added
+
+* `models.AutomationSource` was added
+
+* `models.Rank` was added
+
+* `models.EnvironmentType` was added
+
+* `models.GovernanceAssignment` was added
+
+* `models.AutomationAction` was added
+
+* `models.OperationResultsGetHeaders` was added
+
+* `models.GitHubRepository` was added
+
+* `models.DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning` was added
+
+* `models.RuleResults$Update` 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.SecurityAssessmentPropertiesBaseRiskPathsPropertiesItemsItem` was added
+
+* `models.Assignment` was added
+
+* `models.OfferingType` was added
+
+* `models.SettingProperties` was added
+
+* `models.AutomationActionEventHub` was added
+
+* `models.OnUploadFilters` was added
+
+* `models.SecurityContactName` was added
+
+* `models.StandardSupportedClouds` 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.SqlVulnerabilityAssessmentState` was added
+
+* `models.SourceType` was added
+
+* `models.DevOpsOperationResults` 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.AuthenticationType` was added
+
+* `models.AlertsSuppressionRules` was added
+
+* `models.Automation$UpdateStages` was added
+
+* `models.AwsOrganizationalData` was added
+
+* `models.Standard$Definition` was added
+
+* `models.SqlVulnerabilityAssessmentSettings` was added
+
+* `models.PrivateEndpointConnectionProvisioningState` was added
+
+* `models.AwsEnvironmentData` was added
+
+* `models.MalwareScanningProperties` was added
+
+* `models.GetSensitivitySettingsResponseProperties` was added
+
+* `models.GitLabGroupProperties` was added
+
+* `models.StandardComponentProperties` was added
+
+* `models.SqlVulnerabilityAssessmentSettingsProperties` was added
+
+* `models.PrivateLinkResource` 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.MinimalSeverity` was added
+
+* `models.SqlVulnerabilityAssessmentBaselineRules` 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.PrivateLinkGroupResource` was added
+
+* `models.CloudOffering` was added
+
+* `models.PrivateEndpointConnection$UpdateStages` was added
+
+* `models.DefenderCspmAwsOfferingVmScanners` was added
+
+* `models.VmScannersBase` was added
+
+* `models.InformationProtectionPolicies` was added
+
+* `models.SubPlan` was added
+
+* `models.PrivateEndpointConnection$Definition` was added
+
+* `models.ComplianceSegment` was added
+
+* `models.DefenderCspmAwsOfferingCiemOidc` was added
+
+* `models.SensitiveDataDiscoveryProperties` was added
+
+* `models.UpdateSensitivitySettingsRequest` 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.Tasks` was added
+
+* `models.Application$Update` was added
+
+* `models.PrivateLinkResources` was added
+
+* `models.CspmMonitorGcpOfferingNativeCloudConnection` was added
+
+* `models.PrivateLinkResource$Definition` was added
+
+* `models.DefenderForContainersAwsOfferingCloudWatchToKinesis` was added
+
+* `models.GithubScopeEnvironmentData` was added
+
+* `models.DefenderForServersAwsOfferingVmScanners` was added
+
+* `models.AzureDevOpsOrg` was added
+
+* `models.DefenderCspmGcpOfferingDataSensitivityDiscovery` was added
+
+* `models.OperationResults` was added
+
+* `models.Assignment$UpdateStages` was added
+
+* `models.WorkspaceSettings` was added
+
+* `models.RulesResultsInput` was added
+
+* `models.AzureDevOpsRepositoryProperties` was added
+
+* `models.Authorization` was added
+
+* `models.DefenderFoDatabasesAwsOffering` was added
+
+* `models.AutomationActionLogicApp` was added
+
+* `models.PrivateEndpointConnections` was added
+
+* `models.Standard` was added
+
+* `models.DefenderForServersGcpOfferingVaAutoProvisioningConfiguration` 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.SecurityAssessmentPropertiesBaseRiskPathsItem` was added
+
+* `models.CategoryConfiguration` was added
+
+* `models.DefenderCspmAwsOfferingCiemDiscovery` was added
+
+* `models.Identity` was added
+
+* `models.CspmMonitorAwsOffering` was added
+
+* `models.SqlVulnerabilityAssessmentScanOperationResult` was added
+
+* `models.Assignment$Definition` was added
+
+* `models.GovernanceRuleMetadata` was added
+
+* `models.PrivateEndpointConnection$DefinitionStages` 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.DefenderForDatabasesGcpOffering` was added
+
+* `models.RuleCategory` was added
+
+* `models.RegulatoryComplianceStandard` was added
+
+* `models.Remediation` was added
+
+* `models.ArmActionType` was added
+
+* `models.HealthReportStatus` was added
+
+* `models.BuiltInInfoType` was added
+
+* `models.GovernanceAssignment$DefinitionStages` was added
+
+* `models.ScanV2` was added
+
+* `models.Automation$Update` was added
+
+* `models.GitLabProjectProperties` was added
+
+* `models.Application$DefinitionStages` was added
+
+* `models.DefenderForContainersAwsOfferingKubernetesDataCollection` was added
+
+* `models.SecurityAssessmentMetadataProperties` was added
+
+* `models.DefenderForStorageSetting` was added
+
+* `models.PrivateLinkServiceConnectionState` was added
+
+* `models.SecurityTaskParameters` was added
+
+* `models.OrganizationMembershipType` was added
+
+* `models.SecurityContact$Definition` was added
+
+* `models.RuleType` was added
+
+* `models.GitLabGroups` was added
+
+* `models.DefenderCspmGcpOfferingCiemDiscovery` was added
+
+* `models.GovernanceRule$DefinitionStages` was added
+
+* `models.DefenderForContainersAwsOffering` was added
+
+* `models.ScanPropertiesV2` was added
+
+* `models.Application` was added
+
+* `models.SqlVulnerabilityAssessmentScanResults` was added
+
+* `models.GovernanceRuleOwnerSourceType` was added
+
+* `models.DefenderForServersGcpOfferingDefenderForServers` was added
+
+* `models.RemediationEta` 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.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.GitHubOwnerListResponse` was added
+
+* `models.Standards` 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.AzureDevOpsOrg$Update` was added
+
+* `models.SecurityTask` was added
+
+* `models.ApplicationSourceResourceType` was added
+
+* `models.AutoProvisioningSetting` was added
+
+* `models.GetSensitivitySettingsResponsePropertiesMipInformation` was added
+
+* `models.TargetBranchConfiguration` was added
+
+* `models.AutomatedResponseType` was added
+
+* `models.DefenderForContainersGcpOffering` was added
+
+* `models.Operator` was added
+
+* `models.AzureDevOpsProjectProperties` was added
+
+* `models.DefenderCspmAwsOfferingMdcContainersAgentlessDiscoveryK8S` was added
+
+* `models.DefenderCspmAwsOffering` was added
+
+* `models.InformationProtectionPolicy$Definition` was added
+
+* `models.SecurityAssessmentPropertiesBaseRisk` 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.Standard$Update` was added
+
+* `models.SqlVulnerabilityAssessmentScans` was added
+
+* `models.ServerVulnerabilityProperties` was added
+
+* `models.GovernanceEmailNotification` was added
+
+* `models.DevOpsConfiguration` was added
+
+* `models.CspmMonitorGitLabOffering` was added
+
+* `models.GovernanceRuleEmailNotification` was added
+
+* `models.DefenderForContainersDockerHubOffering` was added
+
+* `models.DefenderCspmGcpOffering` was added
+
+* `models.GitHubIssues` 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.ScanOperationStatus` was added
+
+* `models.DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S` was added
+
+* `models.NotificationsSource` was added
+
+* `models.Assignment$Update` was added
+
+* `models.EnvironmentDetails` was added
+
+* `models.DefenderCspmJFrogOffering` was added
+
+* `models.State` was added
+
+* `models.AscLocation` was added
+
+#### `models.Categories` was modified
+
+* `CONTAINER` was added
+* `APP_SERVICES` was added
+
+#### `models.SecureScoreItem` was modified
+
+* `systemData()` was added
+
+#### `models.Source` was modified
+
+* `GCP` was added
+* `ON_PREMISE_RESOURCE_DETAILS` was added
+* `AWS` was added
+
+#### `models.SecurityAssessmentResponse` was modified
+
+* `risk()` was added
+* `systemData()` was added
+
+#### `models.SecurityAssessmentResponse$Definition` was modified
+
+* `withMetadata(models.SecurityAssessmentMetadataProperties)` was added
+* `withRisk(models.SecurityAssessmentPropertiesBaseRisk)` was added
+
+#### `models.DeviceSecurityGroup` was modified
+
+* `systemData()` was added
+
+#### `models.SecureScoreControlDefinitionItem` was modified
+
+* `systemData()` was added
+
+#### `models.IoTSecuritySolutionAnalyticsModel` was modified
+
+* `systemData()` was added
+
+#### `models.DiscoveredSecuritySolution` was modified
+
+* `systemData()` was added
+
+#### `models.Pricing` was modified
+
+* `systemData()` was added
+
+#### `models.StandardAssignment` was modified
+
+* `systemData()` was added
+
+#### `models.ExternalSecuritySolution` was modified
+
+* `properties()` was added
+* `systemData()` was added
+
+#### `models.AssessmentType` was modified
+
+* `BUILT_IN_POLICY` was added
+* `MANUAL_CUSTOM_POLICY` was added
+* `MANUAL_BUILT_IN_POLICY` was added
+* `CUSTOM` was added
+* `UNKNOWN` was added
+* `DYNAMIC_BUILT_IN` was added
+* `MANUAL_BUILT_IN` was added
+
+#### `models.SecuritySolutionsReferenceData` was modified
+
+* `systemData()` was added
+
+#### `models.AllowedConnectionsResource` was modified
+
+* `systemData()` was added
+
+#### `models.SecurityAssessmentResponse$Update` was modified
+
+* `withMetadata(models.SecurityAssessmentMetadataProperties)` was added
+* `withRisk(models.SecurityAssessmentPropertiesBaseRisk)` was added
+
+#### `models.Alert` was modified
+
+* `systemData()` was added
+
+#### `models.CefSolutionProperties` was modified
+
+* `deviceVendor()` was added
+* `additionalProperties()` was added
+* `workspace()` was added
+* `deviceType()` was added
+
+#### `models.SettingName` was modified
+
+* `CURRENT` was added
+
+#### `models.ComplianceResult` was modified
+
+* `systemData()` was added
+
+#### `models.AdvancedThreatProtectionSetting` was modified
+
+* `systemData()` was added
+
+#### `models.AtaSolutionProperties` was modified
+
+* `workspace()` was added
+* `deviceVendor()` was added
+* `deviceType()` was added
+* `additionalProperties()` was added
+
+#### `models.SecurityAssessmentPropertiesBase` was modified
+
+* `withMetadata(models.SecurityAssessmentMetadataProperties)` was added
+* `withRisk(models.SecurityAssessmentPropertiesBaseRisk)` was added
+* `risk()` was added
+
+#### `models.AzureServersSetting` was modified
+
+* `withProperties(models.ServerVulnerabilityAssessmentsSettingProperties)` was added
+
+#### `models.SecurityStandard` was modified
+
+* `systemData()` was added
+
+#### `models.AtaExternalSecuritySolution` was modified
+
+* `systemData()` was added
+* `properties()` was added
+
+#### `models.AlertSyncSettings` was modified
+
+* `withProperties(models.SettingProperties)` was added
+* `systemData()` was added
+
+#### `models.IoTSecurityAggregatedAlert` was modified
+
+* `systemData()` was added
+
+#### `models.SecureScoreControlDetails` was modified
+
+* `systemData()` was added
+
+#### `models.CefExternalSecuritySolution` was modified
+
+* `properties()` was added
+* `systemData()` was added
+
+#### `SecurityManager` was modified
+
+* `azureDevOpsOrgs()` was added
+* `gitHubRepos()` was added
+* `subAssessments()` was added
+* `regulatoryComplianceStandards()` was added
+* `operations()` was added
+* `assignments()` was added
+* `privateEndpointConnections()` was added
+* `devOpsOperationResults()` was added
+* `gitLabSubgroups()` was added
+* `locations()` was added
+* `alertsSuppressionRules()` was added
+* `azureDevOpsRepos()` was added
+* `gitLabProjects()` was added
+* `compliances()` was added
+* `tasks()` was added
+* `operationStatuses()` was added
+* `securityContacts()` was added
+* `gitLabGroups()` was added
+* `regulatoryComplianceAssessments()` was added
+* `privateLinks()` was added
+* `regulatoryComplianceControls()` was added
+* `automations()` was added
+* `sqlVulnerabilityAssessmentBaselineRules()` was added
+* `operationResults()` was added
+* `gitHubOwners()` was added
+* `workspaceSettings()` was added
+* `governanceAssignments()` was added
+* `healthReports()` was added
+* `informationProtectionPolicies()` was added
+* `mdeOnboardings()` was added
+* `sqlVulnerabilityAssessmentScans()` was added
+* `applications()` was added
+* `gitHubIssues()` was added
+* `standards()` was added
+* `defenderForStorages()` was added
+* `sqlVulnerabilityAssessmentSettingsOperations()` was added
+* `sensitivitySettings()` was added
+* `autoProvisioningSettings()` was added
+* `governanceRules()` was added
+* `devOpsConfigurations()` was added
+* `securityOperators()` was added
+* `securityConnectorApplications()` was added
+* `azureDevOpsProjects()` was added
+* `privateLinkResources()` was added
+* `securityConnectors()` was added
+* `sqlVulnerabilityAssessmentScanResults()` was added
+
+#### `models.SecurityAssessmentMetadataResponse` was modified
+
+* `systemData()` was added
+
+#### `models.SecurityAssessment` was modified
+
+* `systemData()` was added
+* `withMetadata(models.SecurityAssessmentMetadataProperties)` was added
+* `risk()` was added
+* `withRisk(models.SecurityAssessmentPropertiesBaseRisk)` was added
+
+#### `models.Protocol` was modified
+
+* `ALL` was added
+
+#### `models.DataExportSettings` was modified
+
+* `systemData()` was added
+* `withProperties(models.SettingProperties)` was added
+
+#### `models.SecuritySolution` was modified
+
+* `systemData()` was added
+
+#### `models.JitNetworkAccessPolicy` was modified
+
+* `systemData()` was added
+
+#### `models.AadExternalSecuritySolution` was modified
+
+* `systemData()` was added
+* `properties()` was added
+
+#### `models.ServerVulnerabilityAssessmentsSetting` was modified
+
+* `properties()` was added
+
+#### `models.IoTSecurityAggregatedRecommendation` was modified
+
+* `systemData()` was added
+
+#### `models.TopologyResource` was modified
+
+* `systemData()` was added
+
+#### `models.Severity` was modified
+
+* `CRITICAL` was added
+
+#### `models.ApiCollection` was modified
+
+* `systemData()` was added
+
+#### `models.Setting` was modified
+
+* `properties()` was added
+* `systemData()` was added
+
+#### `models.ServerVulnerabilityAssessment` was modified
+
+* `systemData()` was added
+
+#### `models.AadSolutionProperties` was modified
+
+* `deviceVendor()` was added
+* `deviceType()` was added
+* `workspace()` was added
+* `additionalProperties()` was added
+
+#### `models.ProvisioningState` was modified
+
+* `IN_PROGRESS` was added
+* `CANCELED` was added
+* `DELETING` was added
+* `CREATING` 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..985a69702a32 100644
--- a/sdk/security/azure-resourcemanager-security/README.md
+++ b/sdk/security/azure-resourcemanager-security/README.md
@@ -2,7 +2,7 @@
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).
+This package contains Microsoft Azure SDK for Security Management SDK. API spec for Microsoft.Security (Azure Security Center) alerts resource provider. Package api-version AlertsAPI: 2022-01-01, AlertsSuppressionRulesAPI: 2019-01-01-preview, ApiCollectionsAPI: 2023-11-15, ApplicationsAPI: 2022-07-01-preview, AssessmentAPI: 2025-05-04, ATPSettingsAPI: 2019-01-01, AutomationsAPI: 2023-12-01-preview, ComplianceResultsAPI: 2017-08-01, DefenderForStorageAPI: 2025-09-01-preview, GovernanceAPI: 2022-01-01-preview, HealthReportsAPI: 2023-05-01-preview, IoTSecurityAPI: 2019-08-01, LegacySettingsAPI: 2017-08-01-preview, LocationsAPI: 2015-06-01-preview, MdeOnboardingAPI: 2021-10-01-preview, OperationsAPI: 2025-10-01-preview, PricingsAPI: 2024-01-01, PrivateLinksAPI: 2026-01-01, RegulatoryComplianceAPI: 2019-01-01-preview, SecureScoreAPI: 2020-01-01, SecurityConnectorsAPI: 2024-08-01-preview, SecurityConnectorsDevOpsAPI: 2025-11-01-preview, SecurityOperatorsAPI: 2023-01-01-preview, SecuritySolutionsAPI: 2020-01-01, SecurityStandardsAPI: 2024-08-01, SensitivitySettingsAPI: 2023-02-15-preview, ServerVulnerabilityAssessmentsSettingsAPI: 2023-05-01, SettingsAPI: 2022-05-01, SqlVulnerabilityAssessmentsAPI: 2026-04-01-preview, StandardsAPI: 2021-08-01-preview, SubAssessmentsAPI: 2019-01-01-preview, TasksAPI: 2015-06-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -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..77e24ff3efbd 100644
--- a/sdk/security/azure-resourcemanager-security/SAMPLE.md
+++ b/sdk/security/azure-resourcemanager-security/SAMPLE.md
@@ -1,3703 +1,2 @@
# Code snippets and samples
-
-## AdvancedThreatProtection
-
-- [Create](#advancedthreatprotection_create)
-- [Get](#advancedthreatprotection_get)
-
-## Alerts
-
-- [GetResourceGroupLevel](#alerts_getresourcegrouplevel)
-- [GetSubscriptionLevel](#alerts_getsubscriptionlevel)
-- [List](#alerts_list)
-- [ListByResourceGroup](#alerts_listbyresourcegroup)
-- [ListResourceGroupLevelByRegion](#alerts_listresourcegrouplevelbyregion)
-- [ListSubscriptionLevelByRegion](#alerts_listsubscriptionlevelbyregion)
-- [Simulate](#alerts_simulate)
-- [UpdateResourceGroupLevelStateToActivate](#alerts_updateresourcegrouplevelstatetoactivate)
-- [UpdateResourceGroupLevelStateToDismiss](#alerts_updateresourcegrouplevelstatetodismiss)
-- [UpdateResourceGroupLevelStateToInProgress](#alerts_updateresourcegrouplevelstatetoinprogress)
-- [UpdateResourceGroupLevelStateToResolve](#alerts_updateresourcegrouplevelstatetoresolve)
-- [UpdateSubscriptionLevelStateToActivate](#alerts_updatesubscriptionlevelstatetoactivate)
-- [UpdateSubscriptionLevelStateToDismiss](#alerts_updatesubscriptionlevelstatetodismiss)
-- [UpdateSubscriptionLevelStateToInProgress](#alerts_updatesubscriptionlevelstatetoinprogress)
-- [UpdateSubscriptionLevelStateToResolve](#alerts_updatesubscriptionlevelstatetoresolve)
-
-## AllowedConnections
-
-- [Get](#allowedconnections_get)
-- [List](#allowedconnections_list)
-- [ListByHomeRegion](#allowedconnections_listbyhomeregion)
-
-## ApiCollections
-
-- [GetByAzureApiManagementService](#apicollections_getbyazureapimanagementservice)
-- [List](#apicollections_list)
-- [ListByAzureApiManagementService](#apicollections_listbyazureapimanagementservice)
-- [ListByResourceGroup](#apicollections_listbyresourcegroup)
-- [OffboardAzureApiManagementApi](#apicollections_offboardazureapimanagementapi)
-- [OnboardAzureApiManagementApi](#apicollections_onboardazureapimanagementapi)
-
-## Assessments
-
-- [CreateOrUpdate](#assessments_createorupdate)
-- [Delete](#assessments_delete)
-- [Get](#assessments_get)
-- [List](#assessments_list)
-
-## AssessmentsMetadata
-
-- [CreateInSubscription](#assessmentsmetadata_createinsubscription)
-- [DeleteInSubscription](#assessmentsmetadata_deleteinsubscription)
-- [Get](#assessmentsmetadata_get)
-- [GetInSubscription](#assessmentsmetadata_getinsubscription)
-- [List](#assessmentsmetadata_list)
-- [ListBySubscription](#assessmentsmetadata_listbysubscription)
-
-## ComplianceResults
-
-- [Get](#complianceresults_get)
-- [List](#complianceresults_list)
-
-## CustomRecommendations
-
-- [CreateOrUpdate](#customrecommendations_createorupdate)
-- [Delete](#customrecommendations_delete)
-- [Get](#customrecommendations_get)
-- [List](#customrecommendations_list)
-
-## DeviceSecurityGroups
-
-- [CreateOrUpdate](#devicesecuritygroups_createorupdate)
-- [Delete](#devicesecuritygroups_delete)
-- [Get](#devicesecuritygroups_get)
-- [List](#devicesecuritygroups_list)
-
-## DiscoveredSecuritySolutions
-
-- [Get](#discoveredsecuritysolutions_get)
-- [List](#discoveredsecuritysolutions_list)
-- [ListByHomeRegion](#discoveredsecuritysolutions_listbyhomeregion)
-
-## ExternalSecuritySolutions
-
-- [Get](#externalsecuritysolutions_get)
-- [List](#externalsecuritysolutions_list)
-- [ListByHomeRegion](#externalsecuritysolutions_listbyhomeregion)
-
-## IotSecuritySolution
-
-- [CreateOrUpdate](#iotsecuritysolution_createorupdate)
-- [Delete](#iotsecuritysolution_delete)
-- [GetByResourceGroup](#iotsecuritysolution_getbyresourcegroup)
-- [List](#iotsecuritysolution_list)
-- [ListByResourceGroup](#iotsecuritysolution_listbyresourcegroup)
-- [Update](#iotsecuritysolution_update)
-
-## IotSecuritySolutionAnalytics
-
-- [Get](#iotsecuritysolutionanalytics_get)
-- [List](#iotsecuritysolutionanalytics_list)
-
-## IotSecuritySolutionsAnalyticsAggregatedAlert
-
-- [Dismiss](#iotsecuritysolutionsanalyticsaggregatedalert_dismiss)
-- [Get](#iotsecuritysolutionsanalyticsaggregatedalert_get)
-- [List](#iotsecuritysolutionsanalyticsaggregatedalert_list)
-
-## IotSecuritySolutionsAnalyticsRecommendation
-
-- [Get](#iotsecuritysolutionsanalyticsrecommendation_get)
-- [List](#iotsecuritysolutionsanalyticsrecommendation_list)
-
-## JitNetworkAccessPolicies
-
-- [CreateOrUpdate](#jitnetworkaccesspolicies_createorupdate)
-- [Delete](#jitnetworkaccesspolicies_delete)
-- [Get](#jitnetworkaccesspolicies_get)
-- [Initiate](#jitnetworkaccesspolicies_initiate)
-- [List](#jitnetworkaccesspolicies_list)
-- [ListByRegion](#jitnetworkaccesspolicies_listbyregion)
-- [ListByResourceGroup](#jitnetworkaccesspolicies_listbyresourcegroup)
-- [ListByResourceGroupAndRegion](#jitnetworkaccesspolicies_listbyresourcegroupandregion)
-
-## Pricings
-
-- [Delete](#pricings_delete)
-- [Get](#pricings_get)
-- [List](#pricings_list)
-- [Update](#pricings_update)
-
-## SecureScoreControlDefinitions
-
-- [List](#securescorecontroldefinitions_list)
-- [ListBySubscription](#securescorecontroldefinitions_listbysubscription)
-
-## SecureScoreControls
-
-- [List](#securescorecontrols_list)
-- [ListBySecureScore](#securescorecontrols_listbysecurescore)
-
-## SecureScores
-
-- [Get](#securescores_get)
-- [List](#securescores_list)
-
-## SecuritySolutions
-
-- [Get](#securitysolutions_get)
-- [List](#securitysolutions_list)
-
-## SecuritySolutionsReferenceData
-
-- [List](#securitysolutionsreferencedata_list)
-- [ListByHomeRegion](#securitysolutionsreferencedata_listbyhomeregion)
-
-## SecurityStandards
-
-- [CreateOrUpdate](#securitystandards_createorupdate)
-- [Delete](#securitystandards_delete)
-- [Get](#securitystandards_get)
-- [List](#securitystandards_list)
-
-## ServerVulnerabilityAssessment
-
-- [CreateOrUpdate](#servervulnerabilityassessment_createorupdate)
-- [Delete](#servervulnerabilityassessment_delete)
-- [Get](#servervulnerabilityassessment_get)
-- [ListByExtendedResource](#servervulnerabilityassessment_listbyextendedresource)
-
-## ServerVulnerabilityAssessmentsSettings
-
-- [CreateOrUpdate](#servervulnerabilityassessmentssettings_createorupdate)
-- [Delete](#servervulnerabilityassessmentssettings_delete)
-- [Get](#servervulnerabilityassessmentssettings_get)
-- [List](#servervulnerabilityassessmentssettings_list)
-
-## Settings
-
-- [Get](#settings_get)
-- [List](#settings_list)
-- [Update](#settings_update)
-
-## StandardAssignments
-
-- [Create](#standardassignments_create)
-- [Delete](#standardassignments_delete)
-- [Get](#standardassignments_get)
-- [List](#standardassignments_list)
-
-## Topology
-
-- [Get](#topology_get)
-- [List](#topology_list)
-- [ListByHomeRegion](#topology_listbyhomeregion)
-### AdvancedThreatProtection_Create
-
-```java
-/**
- * Samples for AdvancedThreatProtection Create.
- */
-public final class AdvancedThreatProtectionCreateSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/examples/AdvancedThreatProtection/
- * PutAdvancedThreatProtectionSettings_example.json
- */
- /**
- * Sample code: Creates or updates the Advanced Threat Protection settings on a specified resource.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void createsOrUpdatesTheAdvancedThreatProtectionSettingsOnASpecifiedResource(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.advancedThreatProtections()
- .define()
- .withExistingResourceId(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Storage/storageAccounts/samplestorageaccount")
- .withIsEnabled(true)
- .create();
- }
-}
-```
-
-### AdvancedThreatProtection_Get
-
-```java
-/**
- * Samples for AdvancedThreatProtection Get.
- */
-public final class AdvancedThreatProtectionGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/examples/AdvancedThreatProtection/
- * GetAdvancedThreatProtectionSettings_example.json
- */
- /**
- * Sample code: Gets the Advanced Threat Protection settings for the specified resource.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getsTheAdvancedThreatProtectionSettingsForTheSpecifiedResource(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.advancedThreatProtections()
- .getWithResponse(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Storage/storageAccounts/samplestorageaccount",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Alerts_GetResourceGroupLevel
-
-```java
-/**
- * Samples for Alerts GetResourceGroupLevel.
- */
-public final class AlertsGetResourceGroupLevelSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2022-01-01/examples/Alerts/
- * GetAlertResourceGroupLocation_example.json
- */
- /**
- * Sample code: Get security alert on a resource group from a security data location.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getSecurityAlertOnAResourceGroupFromASecurityDataLocation(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.alerts()
- .getResourceGroupLevelWithResponse("myRg1", "westeurope",
- "2518298467986649999_4d25bfef-2d77-4a08-adc0-3e35715cc92a", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Alerts_GetSubscriptionLevel
-
-```java
-/**
- * Samples for Alerts GetSubscriptionLevel.
- */
-public final class AlertsGetSubscriptionLevelSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2022-01-01/examples/Alerts/
- * GetAlertSubscriptionLocation_example.json
- */
- /**
- * Sample code: Get security alert on a subscription from a security data location.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getSecurityAlertOnASubscriptionFromASecurityDataLocation(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.alerts()
- .getSubscriptionLevelWithResponse("westeurope", "2518770965529163669_F144EE95-A3E5-42DA-A279-967D115809AA",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Alerts_List
-
-```java
-/**
- * Samples for Alerts List.
- */
-public final class AlertsListSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2022-01-01/examples/Alerts/
- * GetAlertsSubscription_example.json
- */
- /**
- * Sample code: Get security alerts on a subscription.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getSecurityAlertsOnASubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.alerts().list(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Alerts_ListByResourceGroup
-
-```java
-/**
- * Samples for Alerts ListByResourceGroup.
- */
-public final class AlertsListByResourceGroupSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2022-01-01/examples/Alerts/
- * GetAlertsResourceGroup_example.json
- */
- /**
- * Sample code: Get security alerts on a resource group.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getSecurityAlertsOnAResourceGroup(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.alerts().listByResourceGroup("myRg1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Alerts_ListResourceGroupLevelByRegion
-
-```java
-/**
- * Samples for Alerts ListResourceGroupLevelByRegion.
- */
-public final class AlertsListResourceGroupLevelByRegionSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2022-01-01/examples/Alerts/
- * GetAlertsResourceGroupLocation_example.json
- */
- /**
- * Sample code: Get security alerts on a resource group from a security data location.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getSecurityAlertsOnAResourceGroupFromASecurityDataLocation(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.alerts().listResourceGroupLevelByRegion("westeurope", "myRg1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Alerts_ListSubscriptionLevelByRegion
-
-```java
-/**
- * Samples for Alerts ListSubscriptionLevelByRegion.
- */
-public final class AlertsListSubscriptionLevelByRegionSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2022-01-01/examples/Alerts/
- * GetAlertsSubscriptionsLocation_example.json
- */
- /**
- * Sample code: Get security alerts on a subscription from a security data location.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getSecurityAlertsOnASubscriptionFromASecurityDataLocation(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.alerts().listSubscriptionLevelByRegion("westeurope", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Alerts_Simulate
-
-```java
-import com.azure.resourcemanager.security.models.AlertSimulatorBundlesRequestProperties;
-import com.azure.resourcemanager.security.models.AlertSimulatorRequestBody;
-import com.azure.resourcemanager.security.models.BundleType;
-import java.util.Arrays;
-
-/**
- * Samples for Alerts Simulate.
- */
-public final class AlertsSimulateSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2022-01-01/examples/Alerts/
- * SimulateAlerts_example.json
- */
- /**
- * Sample code: Simulate security alerts on a subscription.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- simulateSecurityAlertsOnASubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.alerts()
- .simulate("centralus",
- new AlertSimulatorRequestBody().withProperties(new AlertSimulatorBundlesRequestProperties()
- .withBundles(Arrays.asList(BundleType.APP_SERVICES, BundleType.DNS, BundleType.KEY_VAULTS,
- BundleType.KUBERNETES_SERVICE, BundleType.RESOURCE_MANAGER, BundleType.SQL_SERVERS,
- BundleType.STORAGE_ACCOUNTS, BundleType.VIRTUAL_MACHINES, BundleType.COSMOS_DBS))),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Alerts_UpdateResourceGroupLevelStateToActivate
-
-```java
-/**
- * Samples for Alerts UpdateResourceGroupLevelStateToActivate.
- */
-public final class AlertsUpdateResourceGroupLevelStateToActivateSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2022-01-01/examples/Alerts/
- * UpdateAlertResourceGroupLocation_activate_example.json
- */
- /**
- * Sample code: Update security alert state on a resource group from a security data location.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void updateSecurityAlertStateOnAResourceGroupFromASecurityDataLocation(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.alerts()
- .updateResourceGroupLevelStateToActivateWithResponse("myRg2", "westeurope",
- "2518765996949954086_2325cf9e-42a2-4f72-ae7f-9b863cba2d22", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Alerts_UpdateResourceGroupLevelStateToDismiss
-
-```java
-/**
- * Samples for Alerts UpdateResourceGroupLevelStateToDismiss.
- */
-public final class AlertsUpdateResourceGroupLevelStateToDismissSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2022-01-01/examples/Alerts/
- * UpdateAlertResourceGroupLocation_dismiss_example.json
- */
- /**
- * Sample code: Update security alert state on a resource group from a security data location.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void updateSecurityAlertStateOnAResourceGroupFromASecurityDataLocation(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.alerts()
- .updateResourceGroupLevelStateToDismissWithResponse("myRg2", "westeurope",
- "2518765996949954086_2325cf9e-42a2-4f72-ae7f-9b863cba2d22", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Alerts_UpdateResourceGroupLevelStateToInProgress
-
-```java
-/**
- * Samples for Alerts UpdateResourceGroupLevelStateToInProgress.
- */
-public final class AlertsUpdateResourceGroupLevelStateToInProgressSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2022-01-01/examples/Alerts/
- * UpdateAlertResourceGroupLocation_inProgress_example.json
- */
- /**
- * Sample code: Update security alert state on a resource group from a security data location.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void updateSecurityAlertStateOnAResourceGroupFromASecurityDataLocation(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.alerts()
- .updateResourceGroupLevelStateToInProgressWithResponse("myRg2", "westeurope",
- "2518765996949954086_2325cf9e-42a2-4f72-ae7f-9b863cba2d22", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Alerts_UpdateResourceGroupLevelStateToResolve
-
-```java
-/**
- * Samples for Alerts UpdateResourceGroupLevelStateToResolve.
- */
-public final class AlertsUpdateResourceGroupLevelStateToResolveSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2022-01-01/examples/Alerts/
- * UpdateAlertResourceGroupLocation_resolve_example.json
- */
- /**
- * Sample code: Update security alert state on a resource group from a security data location.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void updateSecurityAlertStateOnAResourceGroupFromASecurityDataLocation(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.alerts()
- .updateResourceGroupLevelStateToResolveWithResponse("myRg2", "westeurope",
- "2518765996949954086_2325cf9e-42a2-4f72-ae7f-9b863cba2d22", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Alerts_UpdateSubscriptionLevelStateToActivate
-
-```java
-/**
- * Samples for Alerts UpdateSubscriptionLevelStateToActivate.
- */
-public final class AlertsUpdateSubscriptionLevelStateToActivateSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2022-01-01/examples/Alerts/
- * UpdateAlertSubscriptionLocation_activate_example.json
- */
- /**
- * Sample code: Update security alert state on a subscription from a security data location.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void updateSecurityAlertStateOnASubscriptionFromASecurityDataLocation(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.alerts()
- .updateSubscriptionLevelStateToActivateWithResponse("westeurope",
- "2518298467986649999_4d25bfef-2d77-4a08-adc0-3e35715cc92a", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Alerts_UpdateSubscriptionLevelStateToDismiss
-
-```java
-/**
- * Samples for Alerts UpdateSubscriptionLevelStateToDismiss.
- */
-public final class AlertsUpdateSubscriptionLevelStateToDismissSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2022-01-01/examples/Alerts/
- * UpdateAlertSubscriptionLocation_dismiss_example.json
- */
- /**
- * Sample code: Update security alert state on a subscription from a security data location.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void updateSecurityAlertStateOnASubscriptionFromASecurityDataLocation(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.alerts()
- .updateSubscriptionLevelStateToDismissWithResponse("westeurope",
- "2518298467986649999_4d25bfef-2d77-4a08-adc0-3e35715cc92a", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Alerts_UpdateSubscriptionLevelStateToInProgress
-
-```java
-/**
- * Samples for Alerts UpdateSubscriptionLevelStateToInProgress.
- */
-public final class AlertsUpdateSubscriptionLevelStateToInProgressSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2022-01-01/examples/Alerts/
- * UpdateAlertSubscriptionLocation_inProgress_example.json
- */
- /**
- * Sample code: Update security alert state on a subscription from a security data location.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void updateSecurityAlertStateOnASubscriptionFromASecurityDataLocation(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.alerts()
- .updateSubscriptionLevelStateToInProgressWithResponse("westeurope",
- "2518298467986649999_4d25bfef-2d77-4a08-adc0-3e35715cc92a", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Alerts_UpdateSubscriptionLevelStateToResolve
-
-```java
-/**
- * Samples for Alerts UpdateSubscriptionLevelStateToResolve.
- */
-public final class AlertsUpdateSubscriptionLevelStateToResolveSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2022-01-01/examples/Alerts/
- * UpdateAlertSubscriptionLocation_resolve_example.json
- */
- /**
- * Sample code: Update security alert state on a subscription from a security data location.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void updateSecurityAlertStateOnASubscriptionFromASecurityDataLocation(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.alerts()
- .updateSubscriptionLevelStateToResolveWithResponse("westeurope",
- "2518298467986649999_4d25bfef-2d77-4a08-adc0-3e35715cc92a", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### AllowedConnections_Get
-
-```java
-import com.azure.resourcemanager.security.models.ConnectionType;
-
-/**
- * Samples for AllowedConnections Get.
- */
-public final class AllowedConnectionsGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/AllowedConnections/
- * GetAllowedConnections_example.json
- */
- /**
- * Sample code: Get allowed connections.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getAllowedConnections(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.allowedConnections()
- .getWithResponse("myResourceGroup", "centralus", ConnectionType.INTERNAL, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### AllowedConnections_List
-
-```java
-/**
- * Samples for AllowedConnections List.
- */
-public final class AllowedConnectionsListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/AllowedConnections/
- * GetAllowedConnectionsSubscription_example.json
- */
- /**
- * Sample code: Get allowed connections on a subscription.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- getAllowedConnectionsOnASubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.allowedConnections().list(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### AllowedConnections_ListByHomeRegion
-
-```java
-/**
- * Samples for AllowedConnections ListByHomeRegion.
- */
-public final class AllowedConnectionsListByHomeRegionSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/AllowedConnections/
- * GetAllowedConnectionsSubscriptionLocation_example.json
- */
- /**
- * Sample code: Get allowed connections on a subscription from security data location.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getAllowedConnectionsOnASubscriptionFromSecurityDataLocation(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.allowedConnections().listByHomeRegion("centralus", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ApiCollections_GetByAzureApiManagementService
-
-```java
-/**
- * Samples for ApiCollections GetByAzureApiManagementService.
- */
-public final class ApiCollectionsGetByAzureApiManagementServiceSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2023-11-15/examples/ApiCollections/
- * APICollections_GetByAzureApiManagementService_example.json
- */
- /**
- * Sample code: Gets an Azure API Management API if it has been onboarded to Microsoft Defender for APIs.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getsAnAzureAPIManagementAPIIfItHasBeenOnboardedToMicrosoftDefenderForAPIs(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.apiCollections()
- .getByAzureApiManagementServiceWithResponse("rg1", "apimService1", "echo-api",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ApiCollections_List
-
-```java
-/**
- * Samples for ApiCollections List.
- */
-public final class ApiCollectionsListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2023-11-15/examples/ApiCollections/
- * APICollections_ListBySubscription_example.json
- */
- /**
- * Sample code: Gets a list of API collections within a subscription that have been onboarded to Microsoft Defender
- * for APIs.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getsAListOfAPICollectionsWithinASubscriptionThatHaveBeenOnboardedToMicrosoftDefenderForAPIs(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.apiCollections().list(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ApiCollections_ListByAzureApiManagementService
-
-```java
-/**
- * Samples for ApiCollections ListByAzureApiManagementService.
- */
-public final class ApiCollectionsListByAzureApiManagementServiceSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2023-11-15/examples/ApiCollections/
- * APICollections_ListByAzureApiManagementService_example.json
- */
- /**
- * Sample code: Gets a list of Azure API Management APIs that have been onboarded to Microsoft Defender for APIs.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getsAListOfAzureAPIManagementAPIsThatHaveBeenOnboardedToMicrosoftDefenderForAPIs(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.apiCollections()
- .listByAzureApiManagementService("rg1", "apimService1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ApiCollections_ListByResourceGroup
-
-```java
-/**
- * Samples for ApiCollections ListByResourceGroup.
- */
-public final class ApiCollectionsListByResourceGroupSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2023-11-15/examples/ApiCollections/
- * APICollections_ListByResourceGroup_example.json
- */
- /**
- * Sample code: Gets a list of API collections within a resource group that have been onboarded to Microsoft
- * Defender for APIs.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getsAListOfAPICollectionsWithinAResourceGroupThatHaveBeenOnboardedToMicrosoftDefenderForAPIs(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.apiCollections().listByResourceGroup("rg1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ApiCollections_OffboardAzureApiManagementApi
-
-```java
-/**
- * Samples for ApiCollections OffboardAzureApiManagementApi.
- */
-public final class ApiCollectionsOffboardAzureApiManagementApiSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2023-11-15/examples/ApiCollections/
- * APICollections_OffboardAzureApiManagementApi_example.json
- */
- /**
- * Sample code: Offboard an Azure API Management API from Microsoft Defender for APIs.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void offboardAnAzureAPIManagementAPIFromMicrosoftDefenderForAPIs(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.apiCollections()
- .offboardAzureApiManagementApiWithResponse("rg1", "apimService1", "echo-api",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ApiCollections_OnboardAzureApiManagementApi
-
-```java
-/**
- * Samples for ApiCollections OnboardAzureApiManagementApi.
- */
-public final class ApiCollectionsOnboardAzureApiManagementApiSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2023-11-15/examples/ApiCollections/
- * APICollections_OnboardAzureApiManagementApi_example.json
- */
- /**
- * Sample code: Onboard an Azure API Management API to Microsoft Defender for APIs.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void onboardAnAzureAPIManagementAPIToMicrosoftDefenderForAPIs(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.apiCollections()
- .onboardAzureApiManagementApi("rg1", "apimService1", "echo-api", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Assessments_CreateOrUpdate
-
-```java
-import com.azure.resourcemanager.security.models.AssessmentStatus;
-import com.azure.resourcemanager.security.models.AssessmentStatusCode;
-import com.azure.resourcemanager.security.models.AzureResourceDetails;
-
-/**
- * Samples for Assessments CreateOrUpdate.
- */
-public final class AssessmentsCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/Assessments/
- * PutAssessment_example.json
- */
- /**
- * Sample code: Create security recommendation task on a resource.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- createSecurityRecommendationTaskOnAResource(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.assessments()
- .define("8bb8be0a-6010-4789-812f-e4d661c4ed0e")
- .withExistingResourceId(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2")
- .withStatus(new AssessmentStatus().withCode(AssessmentStatusCode.HEALTHY))
- .withResourceDetails(new AzureResourceDetails())
- .create();
- }
-}
-```
-
-### Assessments_Delete
-
-```java
-/**
- * Samples for Assessments Delete.
- */
-public final class AssessmentsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/Assessments/
- * DeleteAssessment_example.json
- */
- /**
- * Sample code: Delete a security recommendation task on a resource.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- deleteASecurityRecommendationTaskOnAResource(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.assessments()
- .deleteByResourceGroupWithResponse(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2",
- "8bb8be0a-6010-4789-812f-e4d661c4ed0e", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Assessments_Get
-
-```java
-import com.azure.resourcemanager.security.models.ExpandEnum;
-
-/**
- * Samples for Assessments Get.
- */
-public final class AssessmentsGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/Assessments/
- * GetAssessmentWithExpand_example.json
- */
- /**
- * Sample code: Get security recommendation task from security data location with expand parameter.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getSecurityRecommendationTaskFromSecurityDataLocationWithExpandParameter(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.assessments()
- .getWithResponse(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2",
- "21300918-b2e3-0346-785f-c77ff57d243b", ExpandEnum.LINKS, com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/Assessments/
- * GetAssessment_example.json
- */
- /**
- * Sample code: Get security recommendation task from security data location.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getSecurityRecommendationTaskFromSecurityDataLocation(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.assessments()
- .getWithResponse(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2",
- "21300918-b2e3-0346-785f-c77ff57d243b", null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Assessments_List
-
-```java
-/**
- * Samples for Assessments List.
- */
-public final class AssessmentsListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/Assessments/
- * ListAssessments_example.json
- */
- /**
- * Sample code: List security assessments.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void listSecurityAssessments(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.assessments()
- .list("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### AssessmentsMetadata_CreateInSubscription
-
-```java
-import com.azure.resourcemanager.security.models.AssessmentType;
-import com.azure.resourcemanager.security.models.Categories;
-import com.azure.resourcemanager.security.models.ImplementationEffort;
-import com.azure.resourcemanager.security.models.Severity;
-import com.azure.resourcemanager.security.models.Threats;
-import com.azure.resourcemanager.security.models.UserImpact;
-import java.util.Arrays;
-
-/**
- * Samples for AssessmentsMetadata CreateInSubscription.
- */
-public final class AssessmentsMetadataCreateInSubscriptionSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/AssessmentsMetadata/
- * CreateAssessmentsMetadata_subscription_example.json
- */
- /**
- * Sample code: Create security assessment metadata for subscription.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- createSecurityAssessmentMetadataForSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.assessmentsMetadatas()
- .define("ca039e75-a276-4175-aebc-bcd41e4b14b7")
- .withDisplayName("Install endpoint protection solution on virtual machine scale sets")
- .withDescription(
- "Install an endpoint protection solution on your virtual machines scale sets, to protect them from threats and vulnerabilities.")
- .withRemediationDescription(
- "To install an endpoint protection solution: 1. Follow the instructions in How do I turn on antimalware in my virtual machine scale set")
- .withCategories(Arrays.asList(Categories.COMPUTE))
- .withSeverity(Severity.MEDIUM)
- .withUserImpact(UserImpact.LOW)
- .withImplementationEffort(ImplementationEffort.LOW)
- .withThreats(Arrays.asList(Threats.DATA_EXFILTRATION, Threats.DATA_SPILLAGE, Threats.MALICIOUS_INSIDER))
- .withAssessmentType(AssessmentType.CUSTOMER_MANAGED)
- .create();
- }
-}
-```
-
-### AssessmentsMetadata_DeleteInSubscription
-
-```java
-/**
- * Samples for AssessmentsMetadata DeleteInSubscription.
- */
-public final class AssessmentsMetadataDeleteInSubscriptionSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/AssessmentsMetadata/
- * DeleteAssessmentsMetadata_subscription_example.json
- */
- /**
- * Sample code: Delete a security assessment metadata for subscription.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- deleteASecurityAssessmentMetadataForSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.assessmentsMetadatas()
- .deleteInSubscriptionWithResponse("ca039e75-a276-4175-aebc-bcd41e4b14b7", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### AssessmentsMetadata_Get
-
-```java
-/**
- * Samples for AssessmentsMetadata Get.
- */
-public final class AssessmentsMetadataGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/AssessmentsMetadata/
- * GetAssessmentsMetadata_example.json
- */
- /**
- * Sample code: Get security assessment metadata.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getSecurityAssessmentMetadata(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.assessmentsMetadatas()
- .getWithResponse("21300918-b2e3-0346-785f-c77ff57d243b", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### AssessmentsMetadata_GetInSubscription
-
-```java
-/**
- * Samples for AssessmentsMetadata GetInSubscription.
- */
-public final class AssessmentsMetadataGetInSubscriptionSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/AssessmentsMetadata/
- * GetAssessmentsMetadata_subscription_example.json
- */
- /**
- * Sample code: Get security assessment metadata for subscription.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- getSecurityAssessmentMetadataForSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.assessmentsMetadatas()
- .getInSubscriptionWithResponse("21300918-b2e3-0346-785f-c77ff57d243b", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### AssessmentsMetadata_List
-
-```java
-/**
- * Samples for AssessmentsMetadata List.
- */
-public final class AssessmentsMetadataListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/AssessmentsMetadata/
- * ListAssessmentsMetadata_example.json
- */
- /**
- * Sample code: List security assessment metadata.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void listSecurityAssessmentMetadata(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.assessmentsMetadatas().list(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### AssessmentsMetadata_ListBySubscription
-
-```java
-/**
- * Samples for AssessmentsMetadata ListBySubscription.
- */
-public final class AssessmentsMetadataListBySubscriptionSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/AssessmentsMetadata/
- * ListAssessmentsMetadata_subscription_example.json
- */
- /**
- * Sample code: List security assessment metadata for subscription.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- listSecurityAssessmentMetadataForSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.assessmentsMetadatas().listBySubscription(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ComplianceResults_Get
-
-```java
-/**
- * Samples for ComplianceResults Get.
- */
-public final class ComplianceResultsGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2017-08-01/examples/ComplianceResults/
- * GetComplianceResults_example.json
- */
- /**
- * Sample code: Get compliance results on subscription.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getComplianceResultsOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.complianceResults()
- .getWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "DesignateMoreThanOneOwner",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ComplianceResults_List
-
-```java
-/**
- * Samples for ComplianceResults List.
- */
-public final class ComplianceResultsListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2017-08-01/examples/ComplianceResults/
- * ListComplianceResults_example.json
- */
- /**
- * Sample code: Get compliance results on subscription.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getComplianceResultsOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.complianceResults()
- .list("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### 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 CustomRecommendations CreateOrUpdate.
- */
-public final class CustomRecommendationsCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * PutBySecurityConnectorCustomRecommendation_example.json
- */
- /**
- * Sample code: Create or update custom recommendation over security connector scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void createOrUpdateCustomRecommendationOverSecurityConnectorScope(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customRecommendations()
- .define("33e7cc6e-a139-4723-a0e5-76993aee0771")
- .withExistingScope(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector")
- .withQuery(
- "RawEntityMetadata | where Environment == 'GCP' and Identifiers.Type == 'compute.firewalls' | extend IslogConfigEnabled = tobool(Record.logConfig.enable) | extend HealthStatus = iff(IslogConfigEnabled, 'HEALTHY', 'UNHEALTHY')")
- .withCloudProviders(Arrays.asList(RecommendationSupportedClouds.AWS))
- .withSeverity(SeverityEnum.MEDIUM)
- .withSecurityIssue(SecurityIssue.VULNERABILITY)
- .withDisplayName("Password Policy")
- .withDescription("organization passwords policy")
- .withRemediationDescription("Change password policy to...")
- .create();
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * PutBySubscriptionCustomRecommendation_example.json
- */
- /**
- * Sample code: Create or update custom recommendation over subscription scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void createOrUpdateCustomRecommendationOverSubscriptionScope(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customRecommendations()
- .define("33e7cc6e-a139-4723-a0e5-76993aee0771")
- .withExistingScope("subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b")
- .withQuery(
- "RawEntityMetadata | where Environment == 'GCP' and Identifiers.Type == 'compute.firewalls' | extend IslogConfigEnabled = tobool(Record.logConfig.enable) | extend HealthStatus = iff(IslogConfigEnabled, 'HEALTHY', 'UNHEALTHY')")
- .withCloudProviders(Arrays.asList(RecommendationSupportedClouds.AWS))
- .withSeverity(SeverityEnum.MEDIUM)
- .withSecurityIssue(SecurityIssue.VULNERABILITY)
- .withDisplayName("Password Policy")
- .withDescription("organization passwords policy")
- .withRemediationDescription("Change password policy to...")
- .create();
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * PutByManagementGroupCustomRecommendation_example.json
- */
- /**
- * Sample code: Create or update custom recommendation over management group scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- 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();
- }
-}
-```
-
-### CustomRecommendations_Delete
-
-```java
-/**
- * Samples for CustomRecommendations Delete.
- */
-public final class CustomRecommendationsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * DeleteBySecurityConnectorCustomRecommendation_example.json
- */
- /**
- * Sample code: Delete a custom recommendation over security connector scope.
- *
- * @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);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * DeleteBySubscriptionCustomRecommendation_example.json
- */
- /**
- * Sample code: Delete a custom recommendation over subscription scope.
- *
- * @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);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * DeleteByManagementGroupCustomRecommendation_example.json
- */
- /**
- * Sample code: Delete a custom recommendation over management group scope.
- *
- * @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);
- }
-}
-```
-
-### CustomRecommendations_Get
-
-```java
-/**
- * Samples for CustomRecommendations Get.
- */
-public final class CustomRecommendationsGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * GetByManagementGroupCustomRecommendation_example.json
- */
- /**
- * Sample code: Get a custom recommendation over management group scope.
- *
- * @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);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * GetBySecurityConnectorCustomRecommendation_example.json
- */
- /**
- * Sample code: Get a custom recommendation over security connector scope.
- *
- * @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);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * GetBySubscriptionCustomRecommendation_example.json
- */
- /**
- * Sample code: Get a custom recommendation over subscription scope.
- *
- * @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);
- }
-}
-```
-
-### CustomRecommendations_List
-
-```java
-/**
- * Samples for CustomRecommendations List.
- */
-public final class CustomRecommendationsListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * ListByManagementGroupCustomRecommendations_example.json
- */
- /**
- * Sample code: List custom recommendations by management group scope.
- *
- * @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);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * ListBySubscriptionCustomRecommendations_example.json
- */
- /**
- * Sample code: List custom recommendations by subscription scope.
- *
- * @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);
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/CustomRecommendations/
- * ListBySecurityConnectorCustomRecommendations_example.json
- */
- /**
- * Sample code: List custom recommendations by security connector scope.
- *
- * @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);
- }
-}
-```
-
-### 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);
- }
-}
-```
-
-### 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);
- }
-}
-```
-
-### 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);
- }
-}
-```
-
-### 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);
- }
-}
-```
-
-### 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);
- }
-}
-```
-
-### 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: Delete the server vulnerability assessments setting of the kind settingKind from the subscription.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void deleteTheServerVulnerabilityAssessmentsSettingOfTheKindSettingKindFromTheSubscription(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.serverVulnerabilityAssessmentsSettings()
- .deleteWithResponse(ServerVulnerabilityAssessmentsSettingKindName.AZURE_SERVERS_SETTING,
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ServerVulnerabilityAssessmentsSettings_Get
-
-```java
-import com.azure.resourcemanager.security.models.ServerVulnerabilityAssessmentsSettingKindName;
-
-/**
- * Samples for ServerVulnerabilityAssessmentsSettings Get.
- */
-public final class ServerVulnerabilityAssessmentsSettingsGetSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-05-01/examples/
- * ServerVulnerabilityAssessmentsSettings/GetServerVulnerabilityAssessmentsSetting_example.json
- */
- /**
- * 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 getTheServerVulnerabilityAssessmentsSettingOfTheKindSettingKindThatIsSetOnTheSubscription(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.serverVulnerabilityAssessmentsSettings()
- .getWithResponse(ServerVulnerabilityAssessmentsSettingKindName.AZURE_SERVERS_SETTING,
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ServerVulnerabilityAssessmentsSettings_List
-
-```java
-/**
- * Samples for ServerVulnerabilityAssessmentsSettings List.
- */
-public final class ServerVulnerabilityAssessmentsSettingsListSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2023-05-01/examples/
- * ServerVulnerabilityAssessmentsSettings/ListServerVulnerabilityAssessmentsSettings_example.json
- */
- /**
- * Sample code: List the server vulnerability assessments settings set on the subscription.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void listTheServerVulnerabilityAssessmentsSettingsSetOnTheSubscription(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.serverVulnerabilityAssessmentsSettings().list(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Settings_Get
-
-```java
-import com.azure.resourcemanager.security.models.SettingName;
-
-/**
- * Samples for Settings Get.
- */
-public final class SettingsGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2022-05-01/examples/Settings/GetSetting_example
- * .json
- */
- /**
- * Sample code: Get a setting on subscription.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getASettingOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.settings().getWithResponse(SettingName.WDATP, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Settings_List
-
-```java
-/**
- * Samples for Settings List.
- */
-public final class SettingsListSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2022-05-01/examples/Settings/
- * GetSettings_example.json
- */
- /**
- * Sample code: Get settings of subscription.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getSettingsOfSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.settings().list(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Settings_Update
-
-```java
-import com.azure.resourcemanager.security.models.DataExportSettings;
-import com.azure.resourcemanager.security.models.SettingName;
-
-/**
- * Samples for Settings Update.
- */
-public final class SettingsUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2022-05-01/examples/Settings/
- * UpdateSetting_example.json
- */
- /**
- * Sample code: Update a setting for subscription.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void updateASettingForSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.settings()
- .updateWithResponse(SettingName.WDATP, new DataExportSettings().withEnabled(true),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### 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 StandardAssignments Create.
- */
-public final class StandardAssignmentsCreateSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/StandardAssignments/
- * PutStandardAssignment.json
- */
- /**
- * Sample code: Put an audit standard assignment.
- *
- * @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();
- }
-
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/StandardAssignments/
- * PutExemptionStandardAssignment.json
- */
- /**
- * Sample code: Put exemption standard assignment.
- *
- * @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();
- }
-}
-```
-
-### StandardAssignments_Delete
-
-```java
-/**
- * Samples for StandardAssignments Delete.
- */
-public final class StandardAssignmentsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/StandardAssignments/
- * DeleteStandardAssignment.json
- */
- /**
- * Sample code: Delete a standard assignment.
- *
- * @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);
- }
-}
-```
-
-### StandardAssignments_Get
-
-```java
-/**
- * Samples for StandardAssignments Get.
- */
-public final class StandardAssignmentsGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2024-08-01/examples/StandardAssignments/
- * GetStandardAssignment.json
- */
- /**
- * Sample code: Retrieve a standard assignment.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void retrieveAStandardAssignment(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.standardAssignments()
- .getWithResponse("providers/Microsoft.Management/managementGroups/contoso",
- "1f3afdf9-d0c9-4c3d-847f-89da613e70a8", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### 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);
- }
-}
-```
-
-### Topology_Get
-
-```java
-/**
- * Samples for Topology Get.
- */
-public final class TopologyGetSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/Topology/
- * GetTopology_example.json
- */
- /**
- * Sample code: Get topology.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getTopology(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.topologies().getWithResponse("myservers", "centralus", "vnets", 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/2020-01-01/examples/Topology/
- * GetTopologySubscription_example.json
- */
- /**
- * Sample code: Get topology on a subscription.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getTopologyOnASubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.topologies().list(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Topology_ListByHomeRegion
-
-```java
-/**
- * Samples for Topology ListByHomeRegion.
- */
-public final class TopologyListByHomeRegionSamples {
- /*
- * x-ms-original-file:
- * specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/Topology/
- * GetTopologySubscriptionLocation_example.json
- */
- /**
- * Sample code: Get topology on a subscription from security data location.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void
- getTopologyOnASubscriptionFromSecurityDataLocation(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.topologies().listByHomeRegion("centralus", com.azure.core.util.Context.NONE);
- }
-}
-```
-
diff --git a/sdk/security/azure-resourcemanager-security/pom.xml b/sdk/security/azure-resourcemanager-security/pom.xml
index 7397ab81463a..00f2368ac368 100644
--- a/sdk/security/azure-resourcemanager-security/pom.xml
+++ b/sdk/security/azure-resourcemanager-security/pom.xml
@@ -1,9 +1,9 @@
-
+
4.0.0
com.azure
@@ -18,7 +18,7 @@ Code generated by Microsoft (R) AutoRest Code Generator.
jar
Microsoft Azure SDK for Security Management
- This package contains Microsoft Azure SDK for Security Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. API spec for Microsoft.Security (Azure Security Center) resource provider. Package tag package-composite-v3.
+ This package contains Microsoft Azure SDK for Security Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. API spec for Microsoft.Security (Azure Security Center) alerts resource provider. Package api-version AlertsAPI: 2022-01-01, AlertsSuppressionRulesAPI: 2019-01-01-preview, ApiCollectionsAPI: 2023-11-15, ApplicationsAPI: 2022-07-01-preview, AssessmentAPI: 2025-05-04, ATPSettingsAPI: 2019-01-01, AutomationsAPI: 2023-12-01-preview, ComplianceResultsAPI: 2017-08-01, DefenderForStorageAPI: 2025-09-01-preview, GovernanceAPI: 2022-01-01-preview, HealthReportsAPI: 2023-05-01-preview, IoTSecurityAPI: 2019-08-01, LegacySettingsAPI: 2017-08-01-preview, LocationsAPI: 2015-06-01-preview, MdeOnboardingAPI: 2021-10-01-preview, OperationsAPI: 2025-10-01-preview, PricingsAPI: 2024-01-01, PrivateLinksAPI: 2026-01-01, RegulatoryComplianceAPI: 2019-01-01-preview, SecureScoreAPI: 2020-01-01, SecurityConnectorsAPI: 2024-08-01-preview, SecurityConnectorsDevOpsAPI: 2025-11-01-preview, SecurityOperatorsAPI: 2023-01-01-preview, SecuritySolutionsAPI: 2020-01-01, SecurityStandardsAPI: 2024-08-01, SensitivitySettingsAPI: 2023-02-15-preview, ServerVulnerabilityAssessmentsSettingsAPI: 2023-05-01, SettingsAPI: 2022-05-01, SqlVulnerabilityAssessmentsAPI: 2026-04-01-preview, StandardsAPI: 2021-08-01-preview, SubAssessmentsAPI: 2019-01-01-preview, TasksAPI: 2015-06-01-preview.
https://github.com/Azure/azure-sdk-for-java
@@ -45,7 +45,7 @@ Code generated by Microsoft (R) AutoRest Code Generator.
UTF-8
0
0
- false
+ true
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..ed3f01dc243e 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.security;
@@ -22,92 +22,234 @@
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.ApplicationsImpl;
import com.azure.resourcemanager.security.implementation.AssessmentsImpl;
import com.azure.resourcemanager.security.implementation.AssessmentsMetadatasImpl;
+import com.azure.resourcemanager.security.implementation.AssignmentsImpl;
+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.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.GitHubIssuesImpl;
+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.OperationResultsImpl;
+import com.azure.resourcemanager.security.implementation.OperationStatusesImpl;
+import com.azure.resourcemanager.security.implementation.OperationsImpl;
import com.azure.resourcemanager.security.implementation.PricingsImpl;
+import com.azure.resourcemanager.security.implementation.PrivateEndpointConnectionsImpl;
+import com.azure.resourcemanager.security.implementation.PrivateLinkResourcesImpl;
+import com.azure.resourcemanager.security.implementation.PrivateLinksImpl;
+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.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.SqlVulnerabilityAssessmentBaselineRulesImpl;
+import com.azure.resourcemanager.security.implementation.SqlVulnerabilityAssessmentScanResultsImpl;
+import com.azure.resourcemanager.security.implementation.SqlVulnerabilityAssessmentScansImpl;
+import com.azure.resourcemanager.security.implementation.SqlVulnerabilityAssessmentSettingsOperationsImpl;
import com.azure.resourcemanager.security.implementation.StandardAssignmentsImpl;
+import com.azure.resourcemanager.security.implementation.StandardsImpl;
+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.Applications;
import com.azure.resourcemanager.security.models.Assessments;
import com.azure.resourcemanager.security.models.AssessmentsMetadatas;
+import com.azure.resourcemanager.security.models.Assignments;
+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.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.GitHubIssues;
+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.OperationResults;
+import com.azure.resourcemanager.security.models.OperationStatuses;
+import com.azure.resourcemanager.security.models.Operations;
import com.azure.resourcemanager.security.models.Pricings;
+import com.azure.resourcemanager.security.models.PrivateEndpointConnections;
+import com.azure.resourcemanager.security.models.PrivateLinkResources;
+import com.azure.resourcemanager.security.models.PrivateLinks;
+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.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.SqlVulnerabilityAssessmentBaselineRules;
+import com.azure.resourcemanager.security.models.SqlVulnerabilityAssessmentScanResults;
+import com.azure.resourcemanager.security.models.SqlVulnerabilityAssessmentScans;
+import com.azure.resourcemanager.security.models.SqlVulnerabilityAssessmentSettingsOperations;
import com.azure.resourcemanager.security.models.StandardAssignments;
+import com.azure.resourcemanager.security.models.Standards;
+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;
/**
* Entry point to SecurityManager.
- * API spec for Microsoft.Security (Azure Security Center) resource provider.
+ * API spec for Microsoft.Security (Azure Security Center) alerts resource provider.
*/
public final class SecurityManager {
+ private Alerts alerts;
+
+ private AlertsSuppressionRules alertsSuppressionRules;
+
+ private ApiCollections apiCollections;
+
+ private Applications applications;
+
+ private AssessmentsMetadatas assessmentsMetadatas;
+
+ private Automations automations;
+
+ private SecurityContacts securityContacts;
+
private ComplianceResults complianceResults;
- private AdvancedThreatProtections advancedThreatProtections;
+ private GovernanceAssignments governanceAssignments;
+
+ private GovernanceRules governanceRules;
+
+ private HealthReports healthReports;
private DeviceSecurityGroups deviceSecurityGroups;
- private IotSecuritySolutionAnalytics iotSecuritySolutionAnalytics;
+ private AutoProvisioningSettings autoProvisioningSettings;
- private IotSecuritySolutionsAnalyticsAggregatedAlerts iotSecuritySolutionsAnalyticsAggregatedAlerts;
+ private Compliances compliances;
- private IotSecuritySolutionsAnalyticsRecommendations iotSecuritySolutionsAnalyticsRecommendations;
+ private InformationProtectionPolicies informationProtectionPolicies;
- private IotSecuritySolutions iotSecuritySolutions;
+ private WorkspaceSettings workspaceSettings;
- private AllowedConnections allowedConnections;
+ private MdeOnboardings mdeOnboardings;
+
+ private Operations operations;
+
+ private Pricings pricings;
+
+ private PrivateLinkResources privateLinkResources;
+
+ private PrivateEndpointConnections privateEndpointConnections;
+
+ private RegulatoryComplianceStandards regulatoryComplianceStandards;
+
+ private RegulatoryComplianceControls regulatoryComplianceControls;
+
+ private RegulatoryComplianceAssessments regulatoryComplianceAssessments;
+
+ private SecurityConnectors securityConnectors;
+
+ private AzureDevOpsOrgs azureDevOpsOrgs;
+
+ private GitHubOwners gitHubOwners;
+
+ private GitLabGroups gitLabGroups;
+
+ private DevOpsConfigurations devOpsConfigurations;
+
+ private AzureDevOpsProjects azureDevOpsProjects;
+
+ private GitLabProjects gitLabProjects;
+
+ private SecurityOperators securityOperators;
private DiscoveredSecuritySolutions discoveredSecuritySolutions;
@@ -115,39 +257,83 @@ public final class SecurityManager {
private JitNetworkAccessPolicies jitNetworkAccessPolicies;
+ private SecuritySolutions securitySolutions;
+
+ private SecurityStandards securityStandards;
+
+ private StandardAssignments standardAssignments;
+
+ private CustomRecommendations customRecommendations;
+
+ private ServerVulnerabilityAssessmentsSettings serverVulnerabilityAssessmentsSettings;
+
+ private Settings settings;
+
+ private SqlVulnerabilityAssessmentBaselineRules sqlVulnerabilityAssessmentBaselineRules;
+
+ private SqlVulnerabilityAssessmentScanResults sqlVulnerabilityAssessmentScanResults;
+
+ private Standards standards;
+
+ private Assignments assignments;
+
+ private Tasks tasks;
+
+ private SecurityConnectorApplications securityConnectorApplications;
+
+ private Assessments assessments;
+
+ private AdvancedThreatProtections advancedThreatProtections;
+
+ private DefenderForStorages defenderForStorages;
+
+ private IotSecuritySolutionAnalytics iotSecuritySolutionAnalytics;
+
+ private IotSecuritySolutions iotSecuritySolutions;
+
+ private IotSecuritySolutionsAnalyticsAggregatedAlerts iotSecuritySolutionsAnalyticsAggregatedAlerts;
+
+ private IotSecuritySolutionsAnalyticsRecommendations iotSecuritySolutionsAnalyticsRecommendations;
+
+ private Locations locations;
+
+ private OperationResults operationResults;
+
+ private OperationStatuses operationStatuses;
+
+ private PrivateLinks privateLinks;
+
private SecureScores secureScores;
private SecureScoreControls secureScoreControls;
private SecureScoreControlDefinitions secureScoreControlDefinitions;
- private SecuritySolutions securitySolutions;
-
- private SecuritySolutionsReferenceDatas securitySolutionsReferenceDatas;
+ private GitLabSubgroups gitLabSubgroups;
- private ServerVulnerabilityAssessments serverVulnerabilityAssessments;
+ private DevOpsOperationResults devOpsOperationResults;
- private Topologies topologies;
+ private AzureDevOpsRepos azureDevOpsRepos;
- private AssessmentsMetadatas assessmentsMetadatas;
+ private GitHubRepos gitHubRepos;
- private Assessments assessments;
+ private GitHubIssues gitHubIssues;
- private Alerts alerts;
+ private AllowedConnections allowedConnections;
- private Settings settings;
+ private ServerVulnerabilityAssessments serverVulnerabilityAssessments;
- private ServerVulnerabilityAssessmentsSettings serverVulnerabilityAssessmentsSettings;
+ private Topologies topologies;
- private ApiCollections apiCollections;
+ private SecuritySolutionsReferenceDatas securitySolutionsReferenceDatas;
- private Pricings pricings;
+ private SensitivitySettings sensitivitySettings;
- private SecurityStandards securityStandards;
+ private SqlVulnerabilityAssessmentSettingsOperations sqlVulnerabilityAssessmentSettingsOperations;
- private StandardAssignments standardAssignments;
+ private SqlVulnerabilityAssessmentScans sqlVulnerabilityAssessmentScans;
- private CustomRecommendations customRecommendations;
+ private SubAssessments subAssessments;
private final SecurityCenter clientObject;
@@ -201,6 +387,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 +497,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"))
@@ -360,314 +551,445 @@ public SecurityManager authenticate(TokenCredential credential, AzureProfile pro
}
/**
- * Gets the resource collection API of ComplianceResults.
+ * Gets the resource collection API of Alerts.
*
- * @return Resource collection API of ComplianceResults.
+ * @return Resource collection API of Alerts.
*/
- public ComplianceResults complianceResults() {
- if (this.complianceResults == null) {
- this.complianceResults = new ComplianceResultsImpl(clientObject.getComplianceResults(), this);
+ public Alerts alerts() {
+ if (this.alerts == null) {
+ this.alerts = new AlertsImpl(clientObject.getAlerts(), this);
}
- return complianceResults;
+ return alerts;
}
/**
- * Gets the resource collection API of AdvancedThreatProtections. It manages AdvancedThreatProtectionSetting.
+ * Gets the resource collection API of AlertsSuppressionRules.
*
- * @return Resource collection API of AdvancedThreatProtections.
+ * @return Resource collection API of AlertsSuppressionRules.
*/
- public AdvancedThreatProtections advancedThreatProtections() {
- if (this.advancedThreatProtections == null) {
- this.advancedThreatProtections
- = new AdvancedThreatProtectionsImpl(clientObject.getAdvancedThreatProtections(), this);
+ public AlertsSuppressionRules alertsSuppressionRules() {
+ if (this.alertsSuppressionRules == null) {
+ this.alertsSuppressionRules
+ = new AlertsSuppressionRulesImpl(clientObject.getAlertsSuppressionRules(), this);
}
- return advancedThreatProtections;
+ return alertsSuppressionRules;
}
/**
- * Gets the resource collection API of DeviceSecurityGroups. It manages DeviceSecurityGroup.
+ * Gets the resource collection API of ApiCollections.
*
- * @return Resource collection API of DeviceSecurityGroups.
+ * @return Resource collection API of ApiCollections.
*/
- public DeviceSecurityGroups deviceSecurityGroups() {
- if (this.deviceSecurityGroups == null) {
- this.deviceSecurityGroups = new DeviceSecurityGroupsImpl(clientObject.getDeviceSecurityGroups(), this);
+ public ApiCollections apiCollections() {
+ if (this.apiCollections == null) {
+ this.apiCollections = new ApiCollectionsImpl(clientObject.getApiCollections(), this);
}
- return deviceSecurityGroups;
+ return apiCollections;
}
/**
- * Gets the resource collection API of IotSecuritySolutionAnalytics.
+ * Gets the resource collection API of Applications. It manages Application.
*
- * @return Resource collection API of IotSecuritySolutionAnalytics.
+ * @return Resource collection API of Applications.
*/
- public IotSecuritySolutionAnalytics iotSecuritySolutionAnalytics() {
- if (this.iotSecuritySolutionAnalytics == null) {
- this.iotSecuritySolutionAnalytics
- = new IotSecuritySolutionAnalyticsImpl(clientObject.getIotSecuritySolutionAnalytics(), this);
+ public Applications applications() {
+ if (this.applications == null) {
+ this.applications = new ApplicationsImpl(clientObject.getApplications(), this);
}
- return iotSecuritySolutionAnalytics;
+ return applications;
}
/**
- * Gets the resource collection API of IotSecuritySolutionsAnalyticsAggregatedAlerts.
+ * Gets the resource collection API of AssessmentsMetadatas. It manages SecurityAssessmentMetadataResponse.
*
- * @return Resource collection API of IotSecuritySolutionsAnalyticsAggregatedAlerts.
+ * @return Resource collection API of AssessmentsMetadatas.
*/
- public IotSecuritySolutionsAnalyticsAggregatedAlerts iotSecuritySolutionsAnalyticsAggregatedAlerts() {
- if (this.iotSecuritySolutionsAnalyticsAggregatedAlerts == null) {
- this.iotSecuritySolutionsAnalyticsAggregatedAlerts = new IotSecuritySolutionsAnalyticsAggregatedAlertsImpl(
- clientObject.getIotSecuritySolutionsAnalyticsAggregatedAlerts(), this);
+ public AssessmentsMetadatas assessmentsMetadatas() {
+ if (this.assessmentsMetadatas == null) {
+ this.assessmentsMetadatas = new AssessmentsMetadatasImpl(clientObject.getAssessmentsMetadatas(), this);
}
- return iotSecuritySolutionsAnalyticsAggregatedAlerts;
+ return assessmentsMetadatas;
}
/**
- * Gets the resource collection API of IotSecuritySolutionsAnalyticsRecommendations.
+ * Gets the resource collection API of Automations. It manages Automation.
*
- * @return Resource collection API of IotSecuritySolutionsAnalyticsRecommendations.
+ * @return Resource collection API of Automations.
*/
- public IotSecuritySolutionsAnalyticsRecommendations iotSecuritySolutionsAnalyticsRecommendations() {
- if (this.iotSecuritySolutionsAnalyticsRecommendations == null) {
- this.iotSecuritySolutionsAnalyticsRecommendations = new IotSecuritySolutionsAnalyticsRecommendationsImpl(
- clientObject.getIotSecuritySolutionsAnalyticsRecommendations(), this);
+ public Automations automations() {
+ if (this.automations == null) {
+ this.automations = new AutomationsImpl(clientObject.getAutomations(), this);
}
- return iotSecuritySolutionsAnalyticsRecommendations;
+ return automations;
}
/**
- * Gets the resource collection API of IotSecuritySolutions. It manages IoTSecuritySolutionModel.
+ * Gets the resource collection API of SecurityContacts. It manages SecurityContact.
*
- * @return Resource collection API of IotSecuritySolutions.
+ * @return Resource collection API of SecurityContacts.
*/
- public IotSecuritySolutions iotSecuritySolutions() {
- if (this.iotSecuritySolutions == null) {
- this.iotSecuritySolutions = new IotSecuritySolutionsImpl(clientObject.getIotSecuritySolutions(), this);
+ public SecurityContacts securityContacts() {
+ if (this.securityContacts == null) {
+ this.securityContacts = new SecurityContactsImpl(clientObject.getSecurityContacts(), this);
}
- return iotSecuritySolutions;
+ return securityContacts;
}
/**
- * Gets the resource collection API of AllowedConnections.
+ * Gets the resource collection API of ComplianceResults.
*
- * @return Resource collection API of AllowedConnections.
+ * @return Resource collection API of ComplianceResults.
*/
- public AllowedConnections allowedConnections() {
- if (this.allowedConnections == null) {
- this.allowedConnections = new AllowedConnectionsImpl(clientObject.getAllowedConnections(), this);
+ public ComplianceResults complianceResults() {
+ if (this.complianceResults == null) {
+ this.complianceResults = new ComplianceResultsImpl(clientObject.getComplianceResults(), this);
}
- return allowedConnections;
+ return complianceResults;
}
/**
- * Gets the resource collection API of DiscoveredSecuritySolutions.
+ * Gets the resource collection API of GovernanceAssignments. It manages GovernanceAssignment.
*
- * @return Resource collection API of DiscoveredSecuritySolutions.
+ * @return Resource collection API of GovernanceAssignments.
*/
- public DiscoveredSecuritySolutions discoveredSecuritySolutions() {
- if (this.discoveredSecuritySolutions == null) {
- this.discoveredSecuritySolutions
- = new DiscoveredSecuritySolutionsImpl(clientObject.getDiscoveredSecuritySolutions(), this);
+ public GovernanceAssignments governanceAssignments() {
+ if (this.governanceAssignments == null) {
+ this.governanceAssignments = new GovernanceAssignmentsImpl(clientObject.getGovernanceAssignments(), this);
}
- return discoveredSecuritySolutions;
+ return governanceAssignments;
}
/**
- * Gets the resource collection API of ExternalSecuritySolutions.
+ * Gets the resource collection API of GovernanceRules. It manages GovernanceRule.
*
- * @return Resource collection API of ExternalSecuritySolutions.
+ * @return Resource collection API of GovernanceRules.
*/
- public ExternalSecuritySolutions externalSecuritySolutions() {
- if (this.externalSecuritySolutions == null) {
- this.externalSecuritySolutions
- = new ExternalSecuritySolutionsImpl(clientObject.getExternalSecuritySolutions(), this);
+ public GovernanceRules governanceRules() {
+ if (this.governanceRules == null) {
+ this.governanceRules = new GovernanceRulesImpl(clientObject.getGovernanceRules(), this);
}
- return externalSecuritySolutions;
+ return governanceRules;
}
/**
- * Gets the resource collection API of JitNetworkAccessPolicies. It manages JitNetworkAccessPolicy.
+ * Gets the resource collection API of HealthReports.
*
- * @return Resource collection API of JitNetworkAccessPolicies.
+ * @return Resource collection API of HealthReports.
*/
- public JitNetworkAccessPolicies jitNetworkAccessPolicies() {
- if (this.jitNetworkAccessPolicies == null) {
- this.jitNetworkAccessPolicies
- = new JitNetworkAccessPoliciesImpl(clientObject.getJitNetworkAccessPolicies(), this);
+ public HealthReports healthReports() {
+ if (this.healthReports == null) {
+ this.healthReports = new HealthReportsImpl(clientObject.getHealthReports(), this);
}
- return jitNetworkAccessPolicies;
+ return healthReports;
}
/**
- * Gets the resource collection API of SecureScores.
+ * Gets the resource collection API of DeviceSecurityGroups. It manages DeviceSecurityGroup.
*
- * @return Resource collection API of SecureScores.
+ * @return Resource collection API of DeviceSecurityGroups.
*/
- public SecureScores secureScores() {
- if (this.secureScores == null) {
- this.secureScores = new SecureScoresImpl(clientObject.getSecureScores(), this);
+ public DeviceSecurityGroups deviceSecurityGroups() {
+ if (this.deviceSecurityGroups == null) {
+ this.deviceSecurityGroups = new DeviceSecurityGroupsImpl(clientObject.getDeviceSecurityGroups(), this);
}
- return secureScores;
+ return deviceSecurityGroups;
}
/**
- * Gets the resource collection API of SecureScoreControls.
+ * Gets the resource collection API of AutoProvisioningSettings. It manages AutoProvisioningSetting.
*
- * @return Resource collection API of SecureScoreControls.
+ * @return Resource collection API of AutoProvisioningSettings.
*/
- public SecureScoreControls secureScoreControls() {
- if (this.secureScoreControls == null) {
- this.secureScoreControls = new SecureScoreControlsImpl(clientObject.getSecureScoreControls(), this);
+ public AutoProvisioningSettings autoProvisioningSettings() {
+ if (this.autoProvisioningSettings == null) {
+ this.autoProvisioningSettings
+ = new AutoProvisioningSettingsImpl(clientObject.getAutoProvisioningSettings(), this);
}
- return secureScoreControls;
+ return autoProvisioningSettings;
}
/**
- * Gets the resource collection API of SecureScoreControlDefinitions.
+ * Gets the resource collection API of Compliances.
*
- * @return Resource collection API of SecureScoreControlDefinitions.
+ * @return Resource collection API of Compliances.
*/
- public SecureScoreControlDefinitions secureScoreControlDefinitions() {
- if (this.secureScoreControlDefinitions == null) {
- this.secureScoreControlDefinitions
- = new SecureScoreControlDefinitionsImpl(clientObject.getSecureScoreControlDefinitions(), this);
+ public Compliances compliances() {
+ if (this.compliances == null) {
+ this.compliances = new CompliancesImpl(clientObject.getCompliances(), this);
}
- return secureScoreControlDefinitions;
+ return compliances;
}
/**
- * Gets the resource collection API of SecuritySolutions.
+ * Gets the resource collection API of InformationProtectionPolicies. It manages InformationProtectionPolicy.
*
- * @return Resource collection API of SecuritySolutions.
+ * @return Resource collection API of InformationProtectionPolicies.
*/
- public SecuritySolutions securitySolutions() {
- if (this.securitySolutions == null) {
- this.securitySolutions = new SecuritySolutionsImpl(clientObject.getSecuritySolutions(), this);
+ public InformationProtectionPolicies informationProtectionPolicies() {
+ if (this.informationProtectionPolicies == null) {
+ this.informationProtectionPolicies
+ = new InformationProtectionPoliciesImpl(clientObject.getInformationProtectionPolicies(), this);
}
- return securitySolutions;
+ return informationProtectionPolicies;
}
/**
- * Gets the resource collection API of SecuritySolutionsReferenceDatas.
+ * Gets the resource collection API of WorkspaceSettings. It manages WorkspaceSetting.
*
- * @return Resource collection API of SecuritySolutionsReferenceDatas.
+ * @return Resource collection API of WorkspaceSettings.
*/
- public SecuritySolutionsReferenceDatas securitySolutionsReferenceDatas() {
- if (this.securitySolutionsReferenceDatas == null) {
- this.securitySolutionsReferenceDatas
- = new SecuritySolutionsReferenceDatasImpl(clientObject.getSecuritySolutionsReferenceDatas(), this);
+ public WorkspaceSettings workspaceSettings() {
+ if (this.workspaceSettings == null) {
+ this.workspaceSettings = new WorkspaceSettingsImpl(clientObject.getWorkspaceSettings(), this);
}
- return securitySolutionsReferenceDatas;
+ return workspaceSettings;
}
/**
- * Gets the resource collection API of ServerVulnerabilityAssessments.
+ * Gets the resource collection API of MdeOnboardings.
*
- * @return Resource collection API of ServerVulnerabilityAssessments.
+ * @return Resource collection API of MdeOnboardings.
*/
- public ServerVulnerabilityAssessments serverVulnerabilityAssessments() {
- if (this.serverVulnerabilityAssessments == null) {
- this.serverVulnerabilityAssessments
- = new ServerVulnerabilityAssessmentsImpl(clientObject.getServerVulnerabilityAssessments(), this);
+ public MdeOnboardings mdeOnboardings() {
+ if (this.mdeOnboardings == null) {
+ this.mdeOnboardings = new MdeOnboardingsImpl(clientObject.getMdeOnboardings(), this);
}
- return serverVulnerabilityAssessments;
+ return mdeOnboardings;
}
/**
- * Gets the resource collection API of Topologies.
+ * Gets the resource collection API of Operations.
*
- * @return Resource collection API of Topologies.
+ * @return Resource collection API of Operations.
*/
- public Topologies topologies() {
- if (this.topologies == null) {
- this.topologies = new TopologiesImpl(clientObject.getTopologies(), this);
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
}
- return topologies;
+ return operations;
}
/**
- * Gets the resource collection API of AssessmentsMetadatas. It manages SecurityAssessmentMetadataResponse.
+ * Gets the resource collection API of Pricings.
*
- * @return Resource collection API of AssessmentsMetadatas.
+ * @return Resource collection API of Pricings.
*/
- public AssessmentsMetadatas assessmentsMetadatas() {
- if (this.assessmentsMetadatas == null) {
- this.assessmentsMetadatas = new AssessmentsMetadatasImpl(clientObject.getAssessmentsMetadatas(), this);
+ public Pricings pricings() {
+ if (this.pricings == null) {
+ this.pricings = new PricingsImpl(clientObject.getPricings(), this);
}
- return assessmentsMetadatas;
+ return pricings;
}
/**
- * Gets the resource collection API of Assessments. It manages SecurityAssessmentResponse.
+ * Gets the resource collection API of PrivateLinkResources.
*
- * @return Resource collection API of Assessments.
+ * @return Resource collection API of PrivateLinkResources.
*/
- public Assessments assessments() {
- if (this.assessments == null) {
- this.assessments = new AssessmentsImpl(clientObject.getAssessments(), this);
+ public PrivateLinkResources privateLinkResources() {
+ if (this.privateLinkResources == null) {
+ this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
}
- return assessments;
+ return privateLinkResources;
}
/**
- * Gets the resource collection API of Alerts.
+ * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
*
- * @return Resource collection API of Alerts.
+ * @return Resource collection API of PrivateEndpointConnections.
*/
- public Alerts alerts() {
- if (this.alerts == null) {
- this.alerts = new AlertsImpl(clientObject.getAlerts(), this);
+ public PrivateEndpointConnections privateEndpointConnections() {
+ if (this.privateEndpointConnections == null) {
+ this.privateEndpointConnections
+ = new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
}
- return alerts;
+ return privateEndpointConnections;
}
/**
- * Gets the resource collection API of Settings.
+ * Gets the resource collection API of RegulatoryComplianceStandards.
*
- * @return Resource collection API of Settings.
+ * @return Resource collection API of RegulatoryComplianceStandards.
*/
- public Settings settings() {
- if (this.settings == null) {
- this.settings = new SettingsImpl(clientObject.getSettings(), this);
+ public RegulatoryComplianceStandards regulatoryComplianceStandards() {
+ if (this.regulatoryComplianceStandards == null) {
+ this.regulatoryComplianceStandards
+ = new RegulatoryComplianceStandardsImpl(clientObject.getRegulatoryComplianceStandards(), this);
}
- return settings;
+ return regulatoryComplianceStandards;
}
/**
- * Gets the resource collection API of ServerVulnerabilityAssessmentsSettings.
+ * Gets the resource collection API of RegulatoryComplianceControls.
*
- * @return Resource collection API of ServerVulnerabilityAssessmentsSettings.
+ * @return Resource collection API of RegulatoryComplianceControls.
*/
- public ServerVulnerabilityAssessmentsSettings serverVulnerabilityAssessmentsSettings() {
- if (this.serverVulnerabilityAssessmentsSettings == null) {
- this.serverVulnerabilityAssessmentsSettings = new ServerVulnerabilityAssessmentsSettingsImpl(
- clientObject.getServerVulnerabilityAssessmentsSettings(), this);
+ public RegulatoryComplianceControls regulatoryComplianceControls() {
+ if (this.regulatoryComplianceControls == null) {
+ this.regulatoryComplianceControls
+ = new RegulatoryComplianceControlsImpl(clientObject.getRegulatoryComplianceControls(), this);
}
- return serverVulnerabilityAssessmentsSettings;
+ return regulatoryComplianceControls;
}
/**
- * Gets the resource collection API of ApiCollections.
+ * Gets the resource collection API of RegulatoryComplianceAssessments.
*
- * @return Resource collection API of ApiCollections.
+ * @return Resource collection API of RegulatoryComplianceAssessments.
*/
- public ApiCollections apiCollections() {
- if (this.apiCollections == null) {
- this.apiCollections = new ApiCollectionsImpl(clientObject.getApiCollections(), this);
+ public RegulatoryComplianceAssessments regulatoryComplianceAssessments() {
+ if (this.regulatoryComplianceAssessments == null) {
+ this.regulatoryComplianceAssessments
+ = new RegulatoryComplianceAssessmentsImpl(clientObject.getRegulatoryComplianceAssessments(), this);
}
- return apiCollections;
+ return regulatoryComplianceAssessments;
}
/**
- * Gets the resource collection API of Pricings.
+ * Gets the resource collection API of SecurityConnectors. It manages SecurityConnector.
*
- * @return Resource collection API of Pricings.
+ * @return Resource collection API of SecurityConnectors.
*/
- public Pricings pricings() {
- if (this.pricings == null) {
- this.pricings = new PricingsImpl(clientObject.getPricings(), this);
+ public SecurityConnectors securityConnectors() {
+ if (this.securityConnectors == null) {
+ this.securityConnectors = new SecurityConnectorsImpl(clientObject.getSecurityConnectors(), this);
}
- return pricings;
+ return securityConnectors;
+ }
+
+ /**
+ * Gets the resource collection API of AzureDevOpsOrgs. It manages AzureDevOpsOrg.
+ *
+ * @return Resource collection API of AzureDevOpsOrgs.
+ */
+ public AzureDevOpsOrgs azureDevOpsOrgs() {
+ if (this.azureDevOpsOrgs == null) {
+ this.azureDevOpsOrgs = new AzureDevOpsOrgsImpl(clientObject.getAzureDevOpsOrgs(), this);
+ }
+ return azureDevOpsOrgs;
+ }
+
+ /**
+ * Gets the resource collection API of 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 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 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 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 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 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 DiscoveredSecuritySolutions.
+ *
+ * @return Resource collection API of DiscoveredSecuritySolutions.
+ */
+ public DiscoveredSecuritySolutions discoveredSecuritySolutions() {
+ if (this.discoveredSecuritySolutions == null) {
+ this.discoveredSecuritySolutions
+ = new DiscoveredSecuritySolutionsImpl(clientObject.getDiscoveredSecuritySolutions(), this);
+ }
+ return discoveredSecuritySolutions;
+ }
+
+ /**
+ * Gets the resource collection API of ExternalSecuritySolutions.
+ *
+ * @return Resource collection API of ExternalSecuritySolutions.
+ */
+ public ExternalSecuritySolutions externalSecuritySolutions() {
+ if (this.externalSecuritySolutions == null) {
+ this.externalSecuritySolutions
+ = new ExternalSecuritySolutionsImpl(clientObject.getExternalSecuritySolutions(), this);
+ }
+ return externalSecuritySolutions;
+ }
+
+ /**
+ * Gets the resource collection API of JitNetworkAccessPolicies. It manages JitNetworkAccessPolicy.
+ *
+ * @return Resource collection API of JitNetworkAccessPolicies.
+ */
+ public JitNetworkAccessPolicies jitNetworkAccessPolicies() {
+ if (this.jitNetworkAccessPolicies == null) {
+ this.jitNetworkAccessPolicies
+ = new JitNetworkAccessPoliciesImpl(clientObject.getJitNetworkAccessPolicies(), this);
+ }
+ return jitNetworkAccessPolicies;
+ }
+
+ /**
+ * Gets the resource collection API of SecuritySolutions.
+ *
+ * @return Resource collection API of SecuritySolutions.
+ */
+ public SecuritySolutions securitySolutions() {
+ if (this.securitySolutions == null) {
+ this.securitySolutions = new SecuritySolutionsImpl(clientObject.getSecuritySolutions(), this);
+ }
+ return securitySolutions;
}
/**
@@ -706,6 +1028,440 @@ public CustomRecommendations customRecommendations() {
return customRecommendations;
}
+ /**
+ * Gets the resource collection API of ServerVulnerabilityAssessmentsSettings.
+ *
+ * @return Resource collection API of ServerVulnerabilityAssessmentsSettings.
+ */
+ public ServerVulnerabilityAssessmentsSettings serverVulnerabilityAssessmentsSettings() {
+ if (this.serverVulnerabilityAssessmentsSettings == null) {
+ this.serverVulnerabilityAssessmentsSettings = new ServerVulnerabilityAssessmentsSettingsImpl(
+ clientObject.getServerVulnerabilityAssessmentsSettings(), this);
+ }
+ return serverVulnerabilityAssessmentsSettings;
+ }
+
+ /**
+ * Gets the resource collection API of Settings.
+ *
+ * @return Resource collection API of Settings.
+ */
+ public Settings settings() {
+ if (this.settings == null) {
+ this.settings = new SettingsImpl(clientObject.getSettings(), this);
+ }
+ return settings;
+ }
+
+ /**
+ * 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 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 Standards. It manages Standard.
+ *
+ * @return Resource collection API of Standards.
+ */
+ public Standards standards() {
+ if (this.standards == null) {
+ this.standards = new StandardsImpl(clientObject.getStandards(), this);
+ }
+ return standards;
+ }
+
+ /**
+ * Gets the resource collection API of Assignments. It manages Assignment.
+ *
+ * @return Resource collection API of Assignments.
+ */
+ public Assignments assignments() {
+ if (this.assignments == null) {
+ this.assignments = new AssignmentsImpl(clientObject.getAssignments(), this);
+ }
+ return assignments;
+ }
+
+ /**
+ * 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 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 Assessments. It manages SecurityAssessmentResponse.
+ *
+ * @return Resource collection API of Assessments.
+ */
+ public Assessments assessments() {
+ if (this.assessments == null) {
+ this.assessments = new AssessmentsImpl(clientObject.getAssessments(), this);
+ }
+ return assessments;
+ }
+
+ /**
+ * Gets the resource collection API of AdvancedThreatProtections. It manages AdvancedThreatProtectionSetting.
+ *
+ * @return Resource collection API of AdvancedThreatProtections.
+ */
+ public AdvancedThreatProtections advancedThreatProtections() {
+ if (this.advancedThreatProtections == null) {
+ this.advancedThreatProtections
+ = new AdvancedThreatProtectionsImpl(clientObject.getAdvancedThreatProtections(), this);
+ }
+ return advancedThreatProtections;
+ }
+
+ /**
+ * 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 IotSecuritySolutionAnalytics.
+ *
+ * @return Resource collection API of IotSecuritySolutionAnalytics.
+ */
+ public IotSecuritySolutionAnalytics iotSecuritySolutionAnalytics() {
+ if (this.iotSecuritySolutionAnalytics == null) {
+ this.iotSecuritySolutionAnalytics
+ = new IotSecuritySolutionAnalyticsImpl(clientObject.getIotSecuritySolutionAnalytics(), this);
+ }
+ return iotSecuritySolutionAnalytics;
+ }
+
+ /**
+ * Gets the resource collection API of IotSecuritySolutions. It manages IoTSecuritySolutionModel.
+ *
+ * @return Resource collection API of IotSecuritySolutions.
+ */
+ public IotSecuritySolutions iotSecuritySolutions() {
+ if (this.iotSecuritySolutions == null) {
+ this.iotSecuritySolutions = new IotSecuritySolutionsImpl(clientObject.getIotSecuritySolutions(), this);
+ }
+ return iotSecuritySolutions;
+ }
+
+ /**
+ * Gets the resource collection API of IotSecuritySolutionsAnalyticsAggregatedAlerts.
+ *
+ * @return Resource collection API of IotSecuritySolutionsAnalyticsAggregatedAlerts.
+ */
+ public IotSecuritySolutionsAnalyticsAggregatedAlerts iotSecuritySolutionsAnalyticsAggregatedAlerts() {
+ if (this.iotSecuritySolutionsAnalyticsAggregatedAlerts == null) {
+ this.iotSecuritySolutionsAnalyticsAggregatedAlerts = new IotSecuritySolutionsAnalyticsAggregatedAlertsImpl(
+ clientObject.getIotSecuritySolutionsAnalyticsAggregatedAlerts(), this);
+ }
+ return iotSecuritySolutionsAnalyticsAggregatedAlerts;
+ }
+
+ /**
+ * Gets the resource collection API of IotSecuritySolutionsAnalyticsRecommendations.
+ *
+ * @return Resource collection API of IotSecuritySolutionsAnalyticsRecommendations.
+ */
+ public IotSecuritySolutionsAnalyticsRecommendations iotSecuritySolutionsAnalyticsRecommendations() {
+ if (this.iotSecuritySolutionsAnalyticsRecommendations == null) {
+ this.iotSecuritySolutionsAnalyticsRecommendations = new IotSecuritySolutionsAnalyticsRecommendationsImpl(
+ clientObject.getIotSecuritySolutionsAnalyticsRecommendations(), this);
+ }
+ return iotSecuritySolutionsAnalyticsRecommendations;
+ }
+
+ /**
+ * 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 OperationResults.
+ *
+ * @return Resource collection API of OperationResults.
+ */
+ public OperationResults operationResults() {
+ if (this.operationResults == null) {
+ this.operationResults = new OperationResultsImpl(clientObject.getOperationResults(), this);
+ }
+ return operationResults;
+ }
+
+ /**
+ * Gets the resource collection API of OperationStatuses.
+ *
+ * @return Resource collection API of OperationStatuses.
+ */
+ public OperationStatuses operationStatuses() {
+ if (this.operationStatuses == null) {
+ this.operationStatuses = new OperationStatusesImpl(clientObject.getOperationStatuses(), this);
+ }
+ return operationStatuses;
+ }
+
+ /**
+ * Gets the resource collection API of PrivateLinks. It manages PrivateLinkResource.
+ *
+ * @return Resource collection API of PrivateLinks.
+ */
+ public PrivateLinks privateLinks() {
+ if (this.privateLinks == null) {
+ this.privateLinks = new PrivateLinksImpl(clientObject.getPrivateLinks(), this);
+ }
+ return privateLinks;
+ }
+
+ /**
+ * Gets the resource collection API of SecureScores.
+ *
+ * @return Resource collection API of SecureScores.
+ */
+ public SecureScores secureScores() {
+ if (this.secureScores == null) {
+ this.secureScores = new SecureScoresImpl(clientObject.getSecureScores(), this);
+ }
+ return secureScores;
+ }
+
+ /**
+ * Gets the resource collection API of SecureScoreControls.
+ *
+ * @return Resource collection API of SecureScoreControls.
+ */
+ public SecureScoreControls secureScoreControls() {
+ if (this.secureScoreControls == null) {
+ this.secureScoreControls = new SecureScoreControlsImpl(clientObject.getSecureScoreControls(), this);
+ }
+ return secureScoreControls;
+ }
+
+ /**
+ * Gets the resource collection API of SecureScoreControlDefinitions.
+ *
+ * @return Resource collection API of SecureScoreControlDefinitions.
+ */
+ public SecureScoreControlDefinitions secureScoreControlDefinitions() {
+ if (this.secureScoreControlDefinitions == null) {
+ this.secureScoreControlDefinitions
+ = new SecureScoreControlDefinitionsImpl(clientObject.getSecureScoreControlDefinitions(), this);
+ }
+ return secureScoreControlDefinitions;
+ }
+
+ /**
+ * 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 DevOpsOperationResults.
+ *
+ * @return Resource collection API of DevOpsOperationResults.
+ */
+ public DevOpsOperationResults devOpsOperationResults() {
+ if (this.devOpsOperationResults == null) {
+ this.devOpsOperationResults
+ = new DevOpsOperationResultsImpl(clientObject.getDevOpsOperationResults(), this);
+ }
+ return devOpsOperationResults;
+ }
+
+ /**
+ * Gets the resource collection API of 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 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 GitHubIssues.
+ *
+ * @return Resource collection API of GitHubIssues.
+ */
+ public GitHubIssues gitHubIssues() {
+ if (this.gitHubIssues == null) {
+ this.gitHubIssues = new GitHubIssuesImpl(clientObject.getGitHubIssues(), this);
+ }
+ return gitHubIssues;
+ }
+
+ /**
+ * Gets the resource collection API of AllowedConnections.
+ *
+ * @return Resource collection API of AllowedConnections.
+ */
+ public AllowedConnections allowedConnections() {
+ if (this.allowedConnections == null) {
+ this.allowedConnections = new AllowedConnectionsImpl(clientObject.getAllowedConnections(), this);
+ }
+ return allowedConnections;
+ }
+
+ /**
+ * Gets the resource collection API of ServerVulnerabilityAssessments.
+ *
+ * @return Resource collection API of ServerVulnerabilityAssessments.
+ */
+ public ServerVulnerabilityAssessments serverVulnerabilityAssessments() {
+ if (this.serverVulnerabilityAssessments == null) {
+ this.serverVulnerabilityAssessments
+ = new ServerVulnerabilityAssessmentsImpl(clientObject.getServerVulnerabilityAssessments(), this);
+ }
+ return serverVulnerabilityAssessments;
+ }
+
+ /**
+ * Gets the resource collection API of Topologies.
+ *
+ * @return Resource collection API of Topologies.
+ */
+ public Topologies topologies() {
+ if (this.topologies == null) {
+ this.topologies = new TopologiesImpl(clientObject.getTopologies(), this);
+ }
+ return topologies;
+ }
+
+ /**
+ * Gets the resource collection API of SecuritySolutionsReferenceDatas.
+ *
+ * @return Resource collection API of SecuritySolutionsReferenceDatas.
+ */
+ public SecuritySolutionsReferenceDatas securitySolutionsReferenceDatas() {
+ if (this.securitySolutionsReferenceDatas == null) {
+ this.securitySolutionsReferenceDatas
+ = new SecuritySolutionsReferenceDatasImpl(clientObject.getSecuritySolutionsReferenceDatas(), this);
+ }
+ return securitySolutionsReferenceDatas;
+ }
+
+ /**
+ * 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 SqlVulnerabilityAssessmentSettingsOperations.
+ *
+ * @return Resource collection API of SqlVulnerabilityAssessmentSettingsOperations.
+ */
+ public SqlVulnerabilityAssessmentSettingsOperations sqlVulnerabilityAssessmentSettingsOperations() {
+ if (this.sqlVulnerabilityAssessmentSettingsOperations == null) {
+ this.sqlVulnerabilityAssessmentSettingsOperations = new SqlVulnerabilityAssessmentSettingsOperationsImpl(
+ clientObject.getSqlVulnerabilityAssessmentSettingsOperations(), this);
+ }
+ return sqlVulnerabilityAssessmentSettingsOperations;
+ }
+
+ /**
+ * 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 SubAssessments.
+ *
+ * @return Resource collection API of SubAssessments.
+ */
+ public SubAssessments subAssessments() {
+ if (this.subAssessments == null) {
+ this.subAssessments = new SubAssessmentsImpl(clientObject.getSubAssessments(), this);
+ }
+ return subAssessments;
+ }
+
/**
* 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/AdvancedThreatProtectionsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdvancedThreatProtectionsClient.java
index 923759f73f94..2e7ed0ac78ce 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdvancedThreatProtectionsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdvancedThreatProtectionsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.security.fluent;
@@ -17,7 +17,7 @@ public interface AdvancedThreatProtectionsClient {
/**
* Gets the Advanced Threat Protection settings for the specified resource.
*
- * @param resourceId The identifier of the resource.
+ * @param resourceId The fully qualified Azure Resource manager 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.
@@ -30,7 +30,7 @@ public interface AdvancedThreatProtectionsClient {
/**
* Gets the Advanced Threat Protection settings for the specified resource.
*
- * @param resourceId The identifier of the resource.
+ * @param resourceId The fully qualified Azure Resource manager 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.
@@ -42,7 +42,7 @@ public interface AdvancedThreatProtectionsClient {
/**
* Creates or updates the Advanced Threat Protection settings on a specified resource.
*
- * @param resourceId The identifier of the resource.
+ * @param resourceId The fully qualified Azure Resource manager identifier of the resource.
* @param advancedThreatProtectionSetting Advanced Threat Protection Settings.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -57,7 +57,7 @@ Response createWithResponse(String resourc
/**
* Creates or updates the Advanced Threat Protection settings on a specified resource.
*
- * @param resourceId The identifier of the resource.
+ * @param resourceId The fully qualified Azure Resource manager identifier of the resource.
* @param advancedThreatProtectionSetting Advanced Threat Protection Settings.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsClient.java
index 198c8dcd1e90..a5cb3bfc0457 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.security.fluent;
@@ -19,53 +19,33 @@
*/
public interface AlertsClient {
/**
- * List all the alerts that are associated with 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 alerts as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * List all the alerts that are associated with the subscription.
+ * Get an alert that is associated with a subscription.
*
+ * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
+ * locations.
+ * @param alertName Name of the alert 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 list of security alerts as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * List all the alerts that are associated with the 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 alerts as paginated response with {@link PagedIterable}.
+ * @return an alert that is associated with a subscription along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getSubscriptionLevelWithResponse(String ascLocation, String alertName, Context context);
/**
- * List all the alerts that are associated with the resource group.
+ * Get an alert that is associated with a subscription.
*
- * @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.
+ * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
+ * locations.
+ * @param alertName Name of the alert 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 security alerts as paginated response with {@link PagedIterable}.
+ * @return an alert that is associated with a subscription.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AlertInner getSubscriptionLevel(String ascLocation, String alertName);
/**
* List all the alerts that are associated with the subscription that are stored in a specific location.
@@ -95,39 +75,7 @@ public interface AlertsClient {
PagedIterable listSubscriptionLevelByRegion(String ascLocation, Context context);
/**
- * List all the alerts that are associated with the resource group that are stored in a specific location.
- *
- * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
- * locations.
- * @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 alerts as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listResourceGroupLevelByRegion(String ascLocation, String resourceGroupName);
-
- /**
- * List all the alerts that are associated with the resource group that are stored in a specific location.
- *
- * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
- * locations.
- * @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 alerts as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listResourceGroupLevelByRegion(String ascLocation, String resourceGroupName,
- Context context);
-
- /**
- * Get an alert that is associated with a subscription.
+ * Update the alert's state.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
@@ -136,13 +84,14 @@ PagedIterable listResourceGroupLevelByRegion(String ascLocation, Str
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an alert that is associated with a subscription along with {@link Response}.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getSubscriptionLevelWithResponse(String ascLocation, String alertName, Context context);
+ Response updateSubscriptionLevelStateToDismissWithResponse(String ascLocation, String alertName,
+ Context context);
/**
- * Get an alert that is associated with a subscription.
+ * Update the alert's state.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
@@ -150,16 +99,13 @@ PagedIterable listResourceGroupLevelByRegion(String ascLocation, Str
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an alert that is associated with a subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AlertInner getSubscriptionLevel(String ascLocation, String alertName);
+ void updateSubscriptionLevelStateToDismiss(String ascLocation, String alertName);
/**
- * Get an alert that is associated a resource group or a resource in a resource group.
+ * Update the alert's state.
*
- * @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 alertName Name of the alert object.
@@ -167,28 +113,24 @@ PagedIterable listResourceGroupLevelByRegion(String ascLocation, Str
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an alert that is associated a resource group or a resource in a resource group along with
- * {@link Response}.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getResourceGroupLevelWithResponse(String resourceGroupName, String ascLocation,
- String alertName, Context context);
+ Response updateSubscriptionLevelStateToResolveWithResponse(String ascLocation, String alertName,
+ Context context);
/**
- * Get an alert that is associated a resource group or a resource in a resource group.
+ * Update the alert's state.
*
- * @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 alertName Name of the alert 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 an alert that is associated a resource group or a resource in a resource group.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AlertInner getResourceGroupLevel(String resourceGroupName, String ascLocation, String alertName);
+ void updateSubscriptionLevelStateToResolve(String ascLocation, String alertName);
/**
* Update the alert's state.
@@ -203,7 +145,7 @@ Response getResourceGroupLevelWithResponse(String resourceGroupName,
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateSubscriptionLevelStateToDismissWithResponse(String ascLocation, String alertName,
+ Response updateSubscriptionLevelStateToActivateWithResponse(String ascLocation, String alertName,
Context context);
/**
@@ -217,7 +159,7 @@ Response updateSubscriptionLevelStateToDismissWithResponse(String ascLocat
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void updateSubscriptionLevelStateToDismiss(String ascLocation, String alertName);
+ void updateSubscriptionLevelStateToActivate(String ascLocation, String alertName);
/**
* Update the alert's state.
@@ -232,7 +174,7 @@ Response updateSubscriptionLevelStateToDismissWithResponse(String ascLocat
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateSubscriptionLevelStateToResolveWithResponse(String ascLocation, String alertName,
+ Response updateSubscriptionLevelStateToInProgressWithResponse(String ascLocation, String alertName,
Context context);
/**
@@ -246,11 +188,12 @@ Response updateSubscriptionLevelStateToResolveWithResponse(String ascLocat
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void updateSubscriptionLevelStateToResolve(String ascLocation, String alertName);
+ void updateSubscriptionLevelStateToInProgress(String ascLocation, String alertName);
/**
- * Update the alert's state.
+ * Get an alert that is associated a resource group or a resource in a resource group.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
@@ -258,59 +201,62 @@ Response updateSubscriptionLevelStateToResolveWithResponse(String ascLocat
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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}.
+ * @return an alert that is associated a resource group or a resource in a resource group along with
+ * {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateSubscriptionLevelStateToActivateWithResponse(String ascLocation, String alertName,
- Context context);
+ Response getResourceGroupLevelWithResponse(String resourceGroupName, String ascLocation,
+ String alertName, Context context);
/**
- * Update the alert's state.
+ * Get an alert that is associated a resource group or a resource in a resource group.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert 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 an alert that is associated a resource group or a resource in a resource group.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void updateSubscriptionLevelStateToActivate(String ascLocation, String alertName);
+ AlertInner getResourceGroupLevel(String resourceGroupName, String ascLocation, String alertName);
/**
- * Update the alert's state.
+ * List all the alerts that are associated with the resource group that are stored in a specific location.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
- * @param alertName Name of the alert object.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. 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 the {@link Response}.
+ * @return list of security alerts as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateSubscriptionLevelStateToInProgressWithResponse(String ascLocation, String alertName,
- Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listResourceGroupLevelByRegion(String ascLocation, String resourceGroupName);
/**
- * Update the alert's state.
+ * List all the alerts that are associated with the resource group that are stored in a specific location.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
- * @param alertName Name of the alert object.
+ * @param resourceGroupName The name of the resource group. 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 alerts as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- void updateSubscriptionLevelStateToInProgress(String ascLocation, String alertName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listResourceGroupLevelByRegion(String ascLocation, String resourceGroupName,
+ Context context);
/**
* Update the alert's state.
*
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
@@ -327,8 +273,7 @@ Response updateResourceGroupLevelStateToResolveWithResponse(String resourc
/**
* Update the alert's state.
*
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
@@ -342,8 +287,7 @@ Response updateResourceGroupLevelStateToResolveWithResponse(String resourc
/**
* Update the alert's state.
*
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
@@ -360,8 +304,7 @@ Response updateResourceGroupLevelStateToDismissWithResponse(String resourc
/**
* Update the alert's state.
*
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
@@ -375,8 +318,7 @@ Response updateResourceGroupLevelStateToDismissWithResponse(String resourc
/**
* Update the alert's state.
*
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
@@ -393,8 +335,7 @@ Response updateResourceGroupLevelStateToActivateWithResponse(String resour
/**
* Update the alert's state.
*
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
@@ -408,8 +349,7 @@ Response updateResourceGroupLevelStateToActivateWithResponse(String resour
/**
* Update the alert's state.
*
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
@@ -426,8 +366,7 @@ Response updateResourceGroupLevelStateToInProgressWithResponse(String reso
/**
* Update the alert's state.
*
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
@@ -438,12 +377,59 @@ Response updateResourceGroupLevelStateToInProgressWithResponse(String reso
@ServiceMethod(returns = ReturnType.SINGLE)
void updateResourceGroupLevelStateToInProgress(String resourceGroupName, String ascLocation, String alertName);
+ /**
+ * List all the alerts that are associated with 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 alerts as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List all the alerts that are associated with 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 alerts as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * List all the alerts that are associated with the resource group.
+ *
+ * @param resourceGroupName The name of the resource group. 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 alerts as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List all the alerts that are associated with the resource group.
+ *
+ * @param resourceGroupName The name of the resource group. 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 alerts as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
/**
* Simulate security alerts.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
- * @param alertSimulatorRequestBody Alert Simulator Request Properties.
+ * @param alertSimulatorRequestBody The request 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.
@@ -458,7 +444,7 @@ SyncPoller, Void> beginSimulate(String ascLocation,
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
- * @param alertSimulatorRequestBody Alert Simulator Request Properties.
+ * @param alertSimulatorRequestBody The request 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.
@@ -474,7 +460,7 @@ SyncPoller, Void> beginSimulate(String ascLocation,
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
- * @param alertSimulatorRequestBody Alert Simulator Request Properties.
+ * @param alertSimulatorRequestBody The request 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.
@@ -487,7 +473,7 @@ SyncPoller, Void> beginSimulate(String ascLocation,
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
- * @param alertSimulatorRequestBody Alert Simulator Request Properties.
+ * @param alertSimulatorRequestBody The request 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.
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..75405a26ddce
--- /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) TypeSpec 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 {
+ /**
+ * 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);
+
+ /**
+ * 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);
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AllowedConnectionsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AllowedConnectionsClient.java
index 2f0fa1c92398..6587b086fcf1 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AllowedConnectionsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AllowedConnectionsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.security.fluent;
@@ -17,28 +17,40 @@
*/
public interface AllowedConnectionsClient {
/**
- * Gets the list of all possible traffic between resources for the subscription.
+ * Gets the list of all possible traffic between resources for the subscription and location, based on connection
+ * type.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
+ * locations.
+ * @param connectionType The type of allowed connections (Internal, External).
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 list of all possible traffic between resources for the subscription as paginated response with
- * {@link PagedIterable}.
+ * @return the list of all possible traffic between resources for the subscription and location, based on connection
+ * type along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String ascLocation,
+ ConnectionType connectionType, Context context);
/**
- * Gets the list of all possible traffic between resources for the subscription.
+ * Gets the list of all possible traffic between resources for the subscription and location, based on connection
+ * type.
*
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
+ * locations.
+ * @param connectionType The type of allowed connections (Internal, External).
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 list of all possible traffic between resources for the subscription as paginated response with
- * {@link PagedIterable}.
+ * @return the list of all possible traffic between resources for the subscription and location, based on connection
+ * type.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AllowedConnectionsResourceInner get(String resourceGroupName, String ascLocation, ConnectionType connectionType);
/**
* Gets the list of all possible traffic between resources for the subscription and location.
@@ -70,40 +82,26 @@ public interface AllowedConnectionsClient {
PagedIterable listByHomeRegion(String ascLocation, Context context);
/**
- * Gets the list of all possible traffic between resources for the subscription and location, based on connection
- * type.
+ * Gets the list of all possible traffic between resources for the subscription.
*
- * @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 connectionType The type of allowed connections (Internal, External).
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 list of all possible traffic between resources for the subscription and location, based on connection
- * type along with {@link Response}.
+ * @return the list of all possible traffic between resources for the subscription as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String ascLocation,
- ConnectionType connectionType, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
/**
- * Gets the list of all possible traffic between resources for the subscription and location, based on connection
- * type.
+ * Gets the list of all possible traffic between resources for the subscription.
*
- * @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 connectionType The type of allowed connections (Internal, External).
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 list of all possible traffic between resources for the subscription and location, based on connection
- * type.
+ * @return the list of all possible traffic between resources for the subscription as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- AllowedConnectionsResourceInner get(String resourceGroupName, String ascLocation, ConnectionType connectionType);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApiCollectionsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApiCollectionsClient.java
index be7da87c723d..275880127541 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApiCollectionsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApiCollectionsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.security.fluent;
@@ -17,103 +17,6 @@
* An instance of this class provides access to all the operations defined in ApiCollectionsClient.
*/
public interface ApiCollectionsClient {
- /**
- * Gets a list of API collections within a subscription
- *
- * Gets a list of API collections within a subscription that have been onboarded to Microsoft Defender for APIs.
- *
- * @throws com.azure.core.management.exception.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 API collections within a subscription that have been onboarded to Microsoft Defender for APIs
- * as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Gets a list of API collections within a subscription
- *
- * Gets a list of API collections within a subscription that have been onboarded to Microsoft Defender for APIs.
- *
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 API collections within a subscription that have been onboarded to Microsoft Defender for APIs
- * as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * Gets a list of API collections within a resource group
- *
- * Gets a list of API collections within a resource group that have been onboarded to Microsoft Defender for APIs.
- *
- * @param resourceGroupName The name of the resource group. 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 API collections within a resource group that have been onboarded to Microsoft Defender for APIs
- * as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * Gets a list of API collections within a resource group
- *
- * Gets a list of API collections within a resource group that have been onboarded to Microsoft Defender for APIs.
- *
- * @param resourceGroupName The name of the resource group. 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 API collections within a resource group that have been onboarded to Microsoft Defender for APIs
- * as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
-
- /**
- * Gets a list of onboarded Azure API Management APIs
- *
- * Gets a list of Azure API Management APIs that have been onboarded to Microsoft Defender for APIs. If an Azure API
- * Management API is onboarded to Microsoft Defender for APIs, the system will monitor the operations within the
- * Azure API Management API for intrusive behaviors and provide alerts for attacks that have been detected.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serviceName The name of the API Management service.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 Azure API Management APIs that have been onboarded to Microsoft Defender for APIs as paginated
- * response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByAzureApiManagementService(String resourceGroupName, String serviceName);
-
- /**
- * Gets a list of onboarded Azure API Management APIs
- *
- * Gets a list of Azure API Management APIs that have been onboarded to Microsoft Defender for APIs. If an Azure API
- * Management API is onboarded to Microsoft Defender for APIs, the system will monitor the operations within the
- * Azure API Management API for intrusive behaviors and provide alerts for attacks that have been detected.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serviceName The name of the API Management service.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 Azure API Management APIs that have been onboarded to Microsoft Defender for APIs as paginated
- * response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByAzureApiManagementService(String resourceGroupName, String serviceName,
- Context context);
-
/**
* Gets an onboarded Azure API Management API
*
@@ -129,7 +32,9 @@ PagedIterable listByAzureApiManagementService(String resourc
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Azure API Management API if it has been onboarded to Microsoft Defender for APIs along with
+ * @return an onboarded Azure API Management API
+ *
+ * Gets an Azure API Management API if it has been onboarded to Microsoft Defender for APIs along with
* {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -150,7 +55,9 @@ Response getByAzureApiManagementServiceWithResponse(String r
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Azure API Management API if it has been onboarded to Microsoft Defender for APIs.
+ * @return an onboarded Azure API Management API
+ *
+ * Gets an Azure API Management API if it has been onboarded to Microsoft Defender for APIs.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ApiCollectionInner getByAzureApiManagementService(String resourceGroupName, String serviceName, String apiId);
@@ -272,4 +179,113 @@ Response offboardAzureApiManagementApiWithResponse(String resourceGroupNam
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void offboardAzureApiManagementApi(String resourceGroupName, String serviceName, String apiId);
+
+ /**
+ * Gets a list of onboarded Azure API Management APIs
+ *
+ * Gets a list of Azure API Management APIs that have been onboarded to Microsoft Defender for APIs. If an Azure API
+ * Management API is onboarded to Microsoft Defender for APIs, the system will monitor the operations within the
+ * Azure API Management API for intrusive behaviors and provide alerts for attacks that have been detected.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceName The name of the API Management service.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 onboarded Azure API Management APIs
+ *
+ * Gets a list of Azure API Management APIs that have been onboarded to Microsoft Defender for APIs as paginated
+ * response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByAzureApiManagementService(String resourceGroupName, String serviceName);
+
+ /**
+ * Gets a list of onboarded Azure API Management APIs
+ *
+ * Gets a list of Azure API Management APIs that have been onboarded to Microsoft Defender for APIs. If an Azure API
+ * Management API is onboarded to Microsoft Defender for APIs, the system will monitor the operations within the
+ * Azure API Management API for intrusive behaviors and provide alerts for attacks that have been detected.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceName The name of the API Management service.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 onboarded Azure API Management APIs
+ *
+ * Gets a list of Azure API Management APIs that have been onboarded to Microsoft Defender for APIs as paginated
+ * response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByAzureApiManagementService(String resourceGroupName, String serviceName,
+ Context context);
+
+ /**
+ * Gets a list of API collections within a subscription
+ *
+ * Gets a list of API collections within a subscription that have been onboarded to Microsoft Defender for APIs.
+ *
+ * @throws com.azure.core.management.exception.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 API collections within a subscription
+ *
+ * Gets a list of API collections within a subscription that have been onboarded to Microsoft Defender for APIs as
+ * paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Gets a list of API collections within a subscription
+ *
+ * Gets a list of API collections within a subscription that have been onboarded to Microsoft Defender for APIs.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 API collections within a subscription
+ *
+ * Gets a list of API collections within a subscription that have been onboarded to Microsoft Defender for APIs as
+ * paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Gets a list of API collections within a resource group
+ *
+ * Gets a list of API collections within a resource group that have been onboarded to Microsoft Defender for APIs.
+ *
+ * @param resourceGroupName The name of the resource group. 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 API collections within a resource group
+ *
+ * Gets a list of API collections within a resource group that have been onboarded to Microsoft Defender for APIs as
+ * paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Gets a list of API collections within a resource group
+ *
+ * Gets a list of API collections within a resource group that have been onboarded to Microsoft Defender for APIs.
+ *
+ * @param resourceGroupName The name of the resource group. 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 API collections within a resource group
+ *
+ * Gets a list of API collections within a resource group that have been onboarded to Microsoft Defender for APIs as
+ * paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
}
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..0ee1e316226a
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApplicationsClient.java
@@ -0,0 +1,118 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec 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.ApplicationInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ApplicationsClient.
+ */
+public interface ApplicationsClient {
+ /**
+ * 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);
+
+ /**
+ * 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/AssessmentsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsClient.java
index 5c702d11ef8b..d63f757bcfdd 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.security.fluent;
@@ -17,39 +17,10 @@
* An instance of this class provides access to all the operations defined in AssessmentsClient.
*/
public interface AssessmentsClient {
- /**
- * Get security 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).
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 assessments on all your scanned resources inside a scope as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope);
-
- /**
- * Get security 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 context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 assessments on all your scanned resources inside a scope as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope, Context context);
-
/**
* Get a security assessment on your scanned resource.
*
- * @param resourceId The identifier of the resource.
+ * @param resourceId The fully qualified Azure Resource manager identifier of the resource.
* @param assessmentName The Assessment Key - Unique key for the assessment type.
* @param expand OData expand. Optional.
* @param context The context to associate with this operation.
@@ -65,7 +36,7 @@ Response getWithResponse(String resourceId, Str
/**
* Get a security assessment on your scanned resource.
*
- * @param resourceId The identifier of the resource.
+ * @param resourceId The fully qualified Azure Resource manager identifier of the resource.
* @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.
@@ -79,7 +50,7 @@ Response getWithResponse(String resourceId, Str
* Create a security assessment on your resource. An assessment metadata that describes this assessment must be
* predefined with the same name before inserting the assessment result.
*
- * @param resourceId The identifier of the resource.
+ * @param resourceId The fully qualified Azure Resource manager identifier of the resource.
* @param assessmentName The Assessment Key - Unique key for the assessment type.
* @param assessment Calculated assessment on a pre-defined assessment metadata.
* @param context The context to associate with this operation.
@@ -96,7 +67,7 @@ Response createOrUpdateWithResponse(String reso
* Create a security assessment on your resource. An assessment metadata that describes this assessment must be
* predefined with the same name before inserting the assessment result.
*
- * @param resourceId The identifier of the resource.
+ * @param resourceId The fully qualified Azure Resource manager identifier of the resource.
* @param assessmentName The Assessment Key - Unique key for the assessment type.
* @param assessment Calculated assessment on a pre-defined assessment metadata.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -112,7 +83,7 @@ SecurityAssessmentResponseInner createOrUpdate(String resourceId, String assessm
* Delete a security assessment on your resource. An assessment metadata that describes this assessment must be
* predefined with the same name before inserting the assessment result.
*
- * @param resourceId The identifier of the resource.
+ * @param resourceId The fully qualified Azure Resource manager identifier of the resource.
* @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.
@@ -127,7 +98,7 @@ SecurityAssessmentResponseInner createOrUpdate(String resourceId, String assessm
* Delete a security assessment on your resource. An assessment metadata that describes this assessment must be
* predefined with the same name before inserting the assessment result.
*
- * @param resourceId The identifier of the resource.
+ * @param resourceId The fully qualified Azure Resource manager identifier of the resource.
* @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.
@@ -135,4 +106,31 @@ SecurityAssessmentResponseInner createOrUpdate(String resourceId, String assessm
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceId, String assessmentName);
+
+ /**
+ * Get security assessments on all your scanned resources inside a scope.
+ *
+ * @param scope The fully qualified Azure Resource manager 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 security assessments on all your scanned resources inside a scope as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String scope);
+
+ /**
+ * Get security assessments on all your scanned resources inside a scope.
+ *
+ * @param scope The fully qualified Azure Resource manager 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 security assessments on all your scanned resources inside a scope 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/AssessmentsMetadatasClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsMetadatasClient.java
index 112d254fa3fb..1159e30637fc 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsMetadatasClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsMetadatasClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.security.fluent;
@@ -16,154 +16,154 @@
*/
public interface AssessmentsMetadatasClient {
/**
- * Get metadata information on all assessment types.
+ * Get metadata information on an assessment type in a specific subscription.
*
+ * @param assessmentMetadataName 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 metadata information on all assessment types as paginated response with {@link PagedIterable}.
+ * @return metadata information on an assessment type in a specific subscription along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getInSubscriptionWithResponse(String assessmentMetadataName,
+ Context context);
/**
- * Get metadata information on all assessment types.
+ * Get metadata information on an assessment type in a specific subscription.
*
- * @param context The context to associate with this operation.
+ * @param assessmentMetadataName 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 metadata information on all assessment types as paginated response with {@link PagedIterable}.
+ * @return metadata information on an assessment type in a specific subscription.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SecurityAssessmentMetadataResponseInner getInSubscription(String assessmentMetadataName);
/**
- * Get metadata information on an assessment type.
+ * Create metadata information on an assessment type in a specific subscription.
*
* @param assessmentMetadataName The Assessment Key - Unique key for the assessment type.
+ * @param assessmentMetadata AssessmentMetadata 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 metadata information on an assessment type along with {@link Response}.
+ * @return security assessment metadata response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String assessmentMetadataName, Context context);
+ Response createInSubscriptionWithResponse(String assessmentMetadataName,
+ SecurityAssessmentMetadataResponseInner assessmentMetadata, Context context);
/**
- * Get metadata information on an assessment type.
+ * Create metadata information on an assessment type in a specific subscription.
*
* @param assessmentMetadataName The Assessment Key - Unique key for the assessment type.
+ * @param assessmentMetadata AssessmentMetadata 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 metadata information on an assessment type.
+ * @return security assessment metadata response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecurityAssessmentMetadataResponseInner get(String assessmentMetadataName);
+ SecurityAssessmentMetadataResponseInner createInSubscription(String assessmentMetadataName,
+ SecurityAssessmentMetadataResponseInner assessmentMetadata);
/**
- * Get metadata information on all assessment types in a specific subscription.
+ * Delete metadata information on an assessment type in a specific subscription, will cause the deletion of all the
+ * assessments of that type in that subscription.
*
+ * @param assessmentMetadataName 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 metadata information on all assessment types in a specific subscription as paginated response with
- * {@link PagedIterable}.
+ * @return the {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listBySubscription();
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteInSubscriptionWithResponse(String assessmentMetadataName, Context context);
/**
- * Get metadata information on all assessment types in a specific subscription.
+ * Delete metadata information on an assessment type in a specific subscription, will cause the deletion of all the
+ * assessments of that type in that subscription.
*
- * @param context The context to associate with this operation.
+ * @param assessmentMetadataName 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 metadata information on all assessment types in a specific subscription as paginated response with
- * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listBySubscription(Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteInSubscription(String assessmentMetadataName);
/**
- * Get metadata information on an assessment type in a specific subscription.
+ * Get metadata information on all assessment types in a specific subscription.
*
- * @param assessmentMetadataName 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 metadata information on an assessment type in a specific subscription along with {@link Response}.
+ * @return metadata information on all assessment types in a specific subscription as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getInSubscriptionWithResponse(String assessmentMetadataName,
- Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listBySubscription();
/**
- * Get metadata information on an assessment type in a specific subscription.
+ * Get metadata information on all assessment types in a specific subscription.
*
- * @param assessmentMetadataName 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 metadata information on an assessment type in a specific subscription.
+ * @return metadata information on all assessment types in a specific subscription as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- SecurityAssessmentMetadataResponseInner getInSubscription(String assessmentMetadataName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listBySubscription(Context context);
/**
- * Create metadata information on an assessment type in a specific subscription.
+ * Get metadata information on an assessment type.
*
* @param assessmentMetadataName The Assessment Key - Unique key for the assessment type.
- * @param assessmentMetadata AssessmentMetadata 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 security assessment metadata response along with {@link Response}.
+ * @return metadata information on an assessment type along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createInSubscriptionWithResponse(String assessmentMetadataName,
- SecurityAssessmentMetadataResponseInner assessmentMetadata, Context context);
+ Response getWithResponse(String assessmentMetadataName, Context context);
/**
- * Create metadata information on an assessment type in a specific subscription.
+ * Get metadata information on an assessment type.
*
* @param assessmentMetadataName The Assessment Key - Unique key for the assessment type.
- * @param assessmentMetadata AssessmentMetadata 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 security assessment metadata response.
+ * @return metadata information on an assessment type.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecurityAssessmentMetadataResponseInner createInSubscription(String assessmentMetadataName,
- SecurityAssessmentMetadataResponseInner assessmentMetadata);
+ SecurityAssessmentMetadataResponseInner get(String assessmentMetadataName);
/**
- * Delete metadata information on an assessment type in a specific subscription, will cause the deletion of all the
- * assessments of that type in that subscription.
+ * Get metadata information on all assessment types.
*
- * @param assessmentMetadataName 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 the {@link Response}.
+ * @return metadata information on all assessment types as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteInSubscriptionWithResponse(String assessmentMetadataName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
/**
- * Delete metadata information on an assessment type in a specific subscription, will cause the deletion of all the
- * assessments of that type in that subscription.
+ * Get metadata information on all assessment types.
*
- * @param assessmentMetadataName 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 metadata information on all assessment types as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- void deleteInSubscription(String assessmentMetadataName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssignmentsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssignmentsClient.java
new file mode 100644
index 000000000000..ffdf62721e17
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssignmentsClient.java
@@ -0,0 +1,152 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec 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.AssignmentInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in AssignmentsClient.
+ */
+public interface AssignmentsClient {
+ /**
+ * Get a specific standard assignment for the requested scope by resourceId.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param assignmentId The security assignment key - unique key for the standard 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 standard assignment for the requested scope by resourceId along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String assignmentId,
+ Context context);
+
+ /**
+ * Get a specific standard assignment for the requested scope by resourceId.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param assignmentId The security assignment key - unique key for the standard 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 standard assignment for the requested scope by resourceId.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AssignmentInner getByResourceGroup(String resourceGroupName, String assignmentId);
+
+ /**
+ * Create a security assignment on the given scope. Will create/update the required standard assignment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param assignmentId The security assignment key - unique key for the standard assignment.
+ * @param assignment Custom standard assignment over a pre-defined 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 Assignment on a resource group over a given scope along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(String resourceGroupName, String assignmentId,
+ AssignmentInner assignment, Context context);
+
+ /**
+ * Create a security assignment on the given scope. Will create/update the required standard assignment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param assignmentId The security assignment key - unique key for the standard assignment.
+ * @param assignment Custom standard assignment over a pre-defined 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 Assignment on a resource group over a given scope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AssignmentInner createOrUpdate(String resourceGroupName, String assignmentId, AssignmentInner assignment);
+
+ /**
+ * Delete a standard assignment over a given scope.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param assignmentId The security assignment key - unique key for the standard 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 resourceGroupName, String assignmentId, Context context);
+
+ /**
+ * Delete a standard assignment over a given scope.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param assignmentId The security assignment key - unique key for the standard 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 resourceGroupName, String assignmentId);
+
+ /**
+ * Get a list of all relevant standardAssignments available for scope.
+ *
+ * @param resourceGroupName The name of the resource group. 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 all relevant standardAssignments available for scope as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Get a list of all relevant standardAssignments available for scope.
+ *
+ * @param resourceGroupName The name of the resource group. 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 all relevant standardAssignments available for scope as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Get a list of all relevant standardAssignments 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 standardAssignments over a subscription level scope as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Get a list of all relevant standardAssignments 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 standardAssignments 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..c4d690d3fe83
--- /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) TypeSpec 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 {
+ /**
+ * 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);
+
+ /**
+ * 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);
+}
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..6552a1ecd0a9
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AutomationsClient.java
@@ -0,0 +1,219 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec 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 {
+ /**
+ * Retrieves information about the model of a security automation.
+ *
+ * @param resourceGroupName The name of the resource group. 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. 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. 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. 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. 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. 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. 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. 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);
+
+ /**
+ * 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. 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. 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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. 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. 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..781ba8c7b7a6
--- /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) TypeSpec 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 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 orgName parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 orgName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 orgName parameter.
+ * @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 orgName parameter.
+ * @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 orgName parameter.
+ * @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 orgName parameter.
+ * @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 orgName parameter.
+ * @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 orgName parameter.
+ * @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 orgName parameter.
+ * @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 orgName parameter.
+ * @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);
+
+ /**
+ * 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 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);
+}
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..05b386661ab1
--- /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) TypeSpec 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 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 orgName parameter.
+ * @param projectName The projectName parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 orgName parameter.
+ * @param projectName The projectName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 orgName parameter.
+ * @param projectName The projectName parameter.
+ * @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 orgName parameter.
+ * @param projectName The projectName parameter.
+ * @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 orgName parameter.
+ * @param projectName The projectName parameter.
+ * @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 orgName parameter.
+ * @param projectName The projectName parameter.
+ * @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 orgName parameter.
+ * @param projectName The projectName parameter.
+ * @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 orgName parameter.
+ * @param projectName The projectName parameter.
+ * @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 orgName parameter.
+ * @param projectName The projectName parameter.
+ * @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 orgName parameter.
+ * @param projectName The projectName parameter.
+ * @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);
+
+ /**
+ * 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 orgName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 orgName parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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);
+}
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..12552cf1cd6c
--- /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) TypeSpec 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 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 orgName parameter.
+ * @param projectName The projectName parameter.
+ * @param repoName The repoName parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 orgName parameter.
+ * @param projectName The projectName parameter.
+ * @param repoName The repoName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 orgName parameter.
+ * @param projectName The projectName parameter.
+ * @param repoName The repoName parameter.
+ * @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 orgName parameter.
+ * @param projectName The projectName parameter.
+ * @param repoName The repoName parameter.
+ * @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 orgName parameter.
+ * @param projectName The projectName parameter.
+ * @param repoName The repoName parameter.
+ * @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 orgName parameter.
+ * @param projectName The projectName parameter.
+ * @param repoName The repoName parameter.
+ * @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 orgName parameter.
+ * @param projectName The projectName parameter.
+ * @param repoName The repoName parameter.
+ * @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 orgName parameter.
+ * @param projectName The projectName parameter.
+ * @param repoName The repoName parameter.
+ * @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 orgName parameter.
+ * @param projectName The projectName parameter.
+ * @param repoName The repoName parameter.
+ * @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 orgName parameter.
+ * @param projectName The projectName parameter.
+ * @param repoName The repoName parameter.
+ * @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);
+
+ /**
+ * 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 orgName parameter.
+ * @param projectName The projectName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 orgName parameter.
+ * @param projectName The projectName parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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);
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ComplianceResultsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ComplianceResultsClient.java
index 2f3bb8e37c72..7b223c4f8e94 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ComplianceResultsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ComplianceResultsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.security.fluent;
@@ -16,56 +16,54 @@
*/
public interface ComplianceResultsClient {
/**
- * Security compliance results in the subscription.
+ * Security Compliance Result.
*
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
+ * @param resourceId The fully qualified Azure Resource manager identifier of the resource.
+ * @param complianceResultName The compliance result 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 list of compliance results response as paginated response with {@link PagedIterable}.
+ * @return a compliance result along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceId, String complianceResultName, Context context);
/**
- * Security compliance results in the subscription.
+ * Security Compliance Result.
*
- * @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.
+ * @param resourceId The fully qualified Azure Resource manager identifier of the resource.
+ * @param complianceResultName The compliance result 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 list of compliance results response as paginated response with {@link PagedIterable}.
+ * @return a compliance result.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ComplianceResultInner get(String resourceId, String complianceResultName);
/**
- * Security Compliance Result.
+ * Security compliance results in the subscription.
*
- * @param resourceId The identifier of the resource.
- * @param complianceResultName name of the desired assessment compliance result.
- * @param context The context to associate with this operation.
+ * @param scope The fully qualified Azure Resource manager 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 compliance result along with {@link Response}.
+ * @return list of compliance results response as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceId, String complianceResultName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String scope);
/**
- * Security Compliance Result.
+ * Security compliance results in the subscription.
*
- * @param resourceId The identifier of the resource.
- * @param complianceResultName name of the desired assessment compliance result.
+ * @param scope The fully qualified Azure Resource manager 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 compliance result.
+ * @return list of compliance results response as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- ComplianceResultInner get(String resourceId, String complianceResultName);
+ @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/CompliancesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CompliancesClient.java
new file mode 100644
index 000000000000..942f7e99b948
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CompliancesClient.java
@@ -0,0 +1,69 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec 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 {
+ /**
+ * Details of a specific Compliance.
+ *
+ * @param scope The fully qualified Azure Resource manager identifier of the resource.
+ * @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 The fully qualified Azure Resource manager identifier of the resource.
+ * @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);
+
+ /**
+ * The Compliance scores of the specific management group.
+ *
+ * @param scope The fully qualified Azure Resource manager identifier of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of 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 The fully qualified Azure Resource manager 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 list of Compliance objects 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/CustomRecommendationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomRecommendationsClient.java
index 24c04431ddad..97e338bd16b8 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomRecommendationsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomRecommendationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.security.fluent;
@@ -15,46 +15,10 @@
* An instance of this class provides access to all the operations defined in CustomRecommendationsClient.
*/
public interface CustomRecommendationsClient {
- /**
- * Get a list of all relevant custom recommendations over a scope.
- *
- * @param scope The scope of the custom recommendation. 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 custom recommendations over a scope as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope);
-
- /**
- * Get a list of all relevant custom recommendations over a scope.
- *
- * @param scope The scope of the custom recommendation. 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 custom recommendations over a scope as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope, Context context);
-
/**
* Get a specific custom recommendation for the requested scope by customRecommendationName.
*
- * @param scope The scope of the custom recommendation. 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 scope The fully qualified Azure Resource manager identifier of the resource.
* @param customRecommendationName Name of the Custom Recommendation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -69,10 +33,7 @@ public interface CustomRecommendationsClient {
/**
* Get a specific custom recommendation for the requested scope by customRecommendationName.
*
- * @param scope The scope of the custom recommendation. 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 scope The fully qualified Azure Resource manager identifier of the resource.
* @param customRecommendationName Name of the Custom Recommendation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -85,10 +46,7 @@ public interface CustomRecommendationsClient {
/**
* Creates or updates a custom recommendation over a given scope.
*
- * @param scope The scope of the custom recommendation. 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 scope The fully qualified Azure Resource manager identifier of the resource.
* @param customRecommendationName Name of the Custom Recommendation.
* @param customRecommendationBody Custom Recommendation body.
* @param context The context to associate with this operation.
@@ -104,10 +62,7 @@ Response createOrUpdateWithResponse(String scope, Str
/**
* Creates or updates a custom recommendation over a given scope.
*
- * @param scope The scope of the custom recommendation. 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 scope The fully qualified Azure Resource manager identifier of the resource.
* @param customRecommendationName Name of the Custom Recommendation.
* @param customRecommendationBody Custom Recommendation body.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -122,10 +77,7 @@ CustomRecommendationInner createOrUpdate(String scope, String customRecommendati
/**
* Delete a custom recommendation over a given scope.
*
- * @param scope The scope of the custom recommendation. 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 scope The fully qualified Azure Resource manager identifier of the resource.
* @param customRecommendationName Name of the Custom Recommendation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -139,10 +91,7 @@ CustomRecommendationInner createOrUpdate(String scope, String customRecommendati
/**
* Delete a custom recommendation over a given scope.
*
- * @param scope The scope of the custom recommendation. 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 scope The fully qualified Azure Resource manager identifier of the resource.
* @param customRecommendationName Name of the Custom Recommendation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -150,4 +99,31 @@ CustomRecommendationInner createOrUpdate(String scope, String customRecommendati
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String scope, String customRecommendationName);
+
+ /**
+ * Get a list of all relevant custom recommendations over a scope.
+ *
+ * @param scope The fully qualified Azure Resource manager 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 all relevant custom recommendations over a scope as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String scope);
+
+ /**
+ * Get a list of all relevant custom recommendations over a scope.
+ *
+ * @param scope The fully qualified Azure Resource manager 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 all relevant custom recommendations over a scope 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/DefenderForStoragesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DefenderForStoragesClient.java
new file mode 100644
index 000000000000..c94f7392e784
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DefenderForStoragesClient.java
@@ -0,0 +1,193 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec 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.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 fully qualified Azure Resource manager identifier of the resource.
+ * @param settingName The 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 fully qualified Azure Resource manager identifier of the resource.
+ * @param settingName The 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 fully qualified Azure Resource manager identifier of the resource.
+ * @param settingName The 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 fully qualified Azure Resource manager identifier of the resource.
+ * @param settingName The 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);
+
+ /**
+ * Lists the Defender for Storage settings for the specified storage account.
+ *
+ * @param resourceId The fully qualified Azure Resource manager identifier of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of Defender for Storage settings as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceId);
+
+ /**
+ * Lists the Defender for Storage settings for the specified storage account.
+ *
+ * @param resourceId The fully qualified Azure Resource manager 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 list of Defender for Storage settings as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceId, Context context);
+
+ /**
+ * Initiate a Defender for Storage malware scan for the specified storage account. Blobs and Files will be scanned
+ * for malware.
+ *
+ * @param resourceId The fully qualified Azure Resource manager identifier of the resource.
+ * @param settingName The 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. Blobs and Files will be scanned
+ * for malware.
+ *
+ * @param resourceId The fully qualified Azure Resource manager identifier of the resource.
+ * @param settingName The 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 fully qualified Azure Resource manager identifier of the resource.
+ * @param settingName The 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 fully qualified Azure Resource manager identifier of the resource.
+ * @param settingName The 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 fully qualified Azure Resource manager identifier of the resource.
+ * @param settingName The 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 fully qualified Azure Resource manager identifier of the resource.
+ * @param settingName The 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..72dab439caf0
--- /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) TypeSpec 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 {
+ /**
+ * 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);
+
+ /**
+ * 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);
+}
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..98da2518926b
--- /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) TypeSpec 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 operationResultId parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 operationResultId parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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/DeviceSecurityGroupsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DeviceSecurityGroupsClient.java
index 72dab9a527ea..a8dd8315efea 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DeviceSecurityGroupsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DeviceSecurityGroupsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.security.fluent;
@@ -15,35 +15,10 @@
* An instance of this class provides access to all the operations defined in DeviceSecurityGroupsClient.
*/
public interface DeviceSecurityGroupsClient {
- /**
- * Use this method get the list of device security groups for the specified IoT Hub resource.
- *
- * @param resourceId The identifier of the resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of device security groups as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceId);
-
- /**
- * Use this method get the list of device security groups for the specified IoT Hub resource.
- *
- * @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 list of device security groups as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceId, Context context);
-
/**
* Use this method to get the device security group for the specified IoT Hub resource.
*
- * @param resourceId The identifier of the resource.
+ * @param resourceId The fully qualified Azure Resource manager identifier of the resource.
* @param deviceSecurityGroupName The name of the device security group. Note that the name of the device security
* group is case insensitive.
* @param context The context to associate with this operation.
@@ -59,7 +34,7 @@ Response getWithResponse(String resourceId, String dev
/**
* Use this method to get the device security group for the specified IoT Hub resource.
*
- * @param resourceId The identifier of the resource.
+ * @param resourceId The fully qualified Azure Resource manager identifier of the resource.
* @param deviceSecurityGroupName The name of the device security group. Note that the name of the device security
* group is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -73,7 +48,7 @@ Response getWithResponse(String resourceId, String dev
/**
* Use this method to creates or updates the device security group on a specified IoT Hub resource.
*
- * @param resourceId The identifier of the resource.
+ * @param resourceId The fully qualified Azure Resource manager identifier of the resource.
* @param deviceSecurityGroupName The name of the device security group. Note that the name of the device security
* group is case insensitive.
* @param deviceSecurityGroup Security group object.
@@ -90,7 +65,7 @@ Response createOrUpdateWithResponse(String resourceId,
/**
* Use this method to creates or updates the device security group on a specified IoT Hub resource.
*
- * @param resourceId The identifier of the resource.
+ * @param resourceId The fully qualified Azure Resource manager identifier of the resource.
* @param deviceSecurityGroupName The name of the device security group. Note that the name of the device security
* group is case insensitive.
* @param deviceSecurityGroup Security group object.
@@ -106,7 +81,7 @@ DeviceSecurityGroupInner createOrUpdate(String resourceId, String deviceSecurity
/**
* User this method to deletes the device security group.
*
- * @param resourceId The identifier of the resource.
+ * @param resourceId The fully qualified Azure Resource manager identifier of the resource.
* @param deviceSecurityGroupName The name of the device security group. Note that the name of the device security
* group is case insensitive.
* @param context The context to associate with this operation.
@@ -121,7 +96,7 @@ DeviceSecurityGroupInner createOrUpdate(String resourceId, String deviceSecurity
/**
* User this method to deletes the device security group.
*
- * @param resourceId The identifier of the resource.
+ * @param resourceId The fully qualified Azure Resource manager identifier of the resource.
* @param deviceSecurityGroupName The name of the device security group. Note that the name of the device security
* group is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -130,4 +105,29 @@ DeviceSecurityGroupInner createOrUpdate(String resourceId, String deviceSecurity
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceId, String deviceSecurityGroupName);
+
+ /**
+ * Use this method get the list of device security groups for the specified IoT Hub resource.
+ *
+ * @param resourceId The fully qualified Azure Resource manager identifier of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of device security groups as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceId);
+
+ /**
+ * Use this method get the list of device security groups for the specified IoT Hub resource.
+ *
+ * @param resourceId The fully qualified Azure Resource manager 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 list of device security groups as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceId, Context context);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DiscoveredSecuritySolutionsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DiscoveredSecuritySolutionsClient.java
index 47c4eb45a523..f9a187b05598 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DiscoveredSecuritySolutionsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DiscoveredSecuritySolutionsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.security.fluent;
@@ -16,28 +16,37 @@
*/
public interface DiscoveredSecuritySolutionsClient {
/**
- * Gets a list of discovered Security Solutions for the subscription.
+ * Gets a specific discovered Security Solution.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
+ * locations.
+ * @param discoveredSecuritySolutionName Name of a discovered security solution.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 discovered Security Solutions for the subscription as paginated response with
- * {@link PagedIterable}.
+ * @return a specific discovered Security Solution along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String ascLocation,
+ String discoveredSecuritySolutionName, Context context);
/**
- * Gets a list of discovered Security Solutions for the subscription.
+ * Gets a specific discovered Security Solution.
*
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
+ * locations.
+ * @param discoveredSecuritySolutionName Name of a discovered security solution.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 discovered Security Solutions for the subscription as paginated response with
- * {@link PagedIterable}.
+ * @return a specific discovered Security Solution.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiscoveredSecuritySolutionInner get(String resourceGroupName, String ascLocation,
+ String discoveredSecuritySolutionName);
/**
* Gets a list of discovered Security Solutions for the subscription and location.
@@ -69,37 +78,26 @@ public interface DiscoveredSecuritySolutionsClient {
PagedIterable listByHomeRegion(String ascLocation, Context context);
/**
- * Gets a specific discovered Security Solution.
+ * Gets a list of discovered Security Solutions for the subscription.
*
- * @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 discoveredSecuritySolutionName Name of a discovered security solution.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 discovered Security Solution along with {@link Response}.
+ * @return a list of discovered Security Solutions for the subscription as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String ascLocation,
- String discoveredSecuritySolutionName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
/**
- * Gets a specific discovered Security Solution.
+ * Gets a list of discovered Security Solutions for the subscription.
*
- * @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 discoveredSecuritySolutionName Name of a discovered security solution.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 discovered Security Solution.
+ * @return a list of discovered Security Solutions for the subscription as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- DiscoveredSecuritySolutionInner get(String resourceGroupName, String ascLocation,
- String discoveredSecuritySolutionName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ExternalSecuritySolutionsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ExternalSecuritySolutionsClient.java
index 1acdd16924f0..d430d56ac610 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ExternalSecuritySolutionsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ExternalSecuritySolutionsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.security.fluent;
@@ -16,28 +16,37 @@
*/
public interface ExternalSecuritySolutionsClient {
/**
- * Gets a list of external security solutions for the subscription.
+ * Gets a specific external Security Solution.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
+ * locations.
+ * @param externalSecuritySolutionsName Name of an external security solution.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 external security solutions for the subscription as paginated response with
- * {@link PagedIterable}.
+ * @return a specific external Security Solution along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String ascLocation,
+ String externalSecuritySolutionsName, Context context);
/**
- * Gets a list of external security solutions for the subscription.
+ * Gets a specific external Security Solution.
*
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
+ * locations.
+ * @param externalSecuritySolutionsName Name of an external security solution.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 external security solutions for the subscription as paginated response with
- * {@link PagedIterable}.
+ * @return a specific external Security Solution.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ExternalSecuritySolutionInner get(String resourceGroupName, String ascLocation,
+ String externalSecuritySolutionsName);
/**
* Gets a list of external Security Solutions for the subscription and location.
@@ -69,37 +78,26 @@ public interface ExternalSecuritySolutionsClient {
PagedIterable listByHomeRegion(String ascLocation, Context context);
/**
- * Gets a specific external Security Solution.
+ * Gets a list of external security solutions for the subscription.
*
- * @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 externalSecuritySolutionsName Name of an external security solution.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 external Security Solution along with {@link Response}.
+ * @return a list of external security solutions for the subscription as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String ascLocation,
- String externalSecuritySolutionsName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
/**
- * Gets a specific external Security Solution.
+ * Gets a list of external security solutions for the subscription.
*
- * @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 externalSecuritySolutionsName Name of an external security solution.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 external Security Solution.
+ * @return a list of external security solutions for the subscription as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- ExternalSecuritySolutionInner get(String resourceGroupName, String ascLocation,
- String externalSecuritySolutionsName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitHubIssuesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitHubIssuesClient.java
new file mode 100644
index 000000000000..c247ec34ae3d
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitHubIssuesClient.java
@@ -0,0 +1,82 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.security.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+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.models.IssueCreationRequest;
+
+/**
+ * An instance of this class provides access to all the operations defined in GitHubIssuesClient.
+ */
+public interface GitHubIssuesClient {
+ /**
+ * Creates a GitHub issue for the specified repository and assessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param securityConnectorName The security connector name.
+ * @param ownerName The ownerName parameter.
+ * @param repoName The repoName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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> beginCreate(String resourceGroupName, String securityConnectorName,
+ String ownerName, String repoName);
+
+ /**
+ * Creates a GitHub issue for the specified repository and assessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param securityConnectorName The security connector name.
+ * @param ownerName The ownerName parameter.
+ * @param repoName The repoName parameter.
+ * @param createIssueRequest The request model containing details for creating the GitHub issue.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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> beginCreate(String resourceGroupName, String securityConnectorName,
+ String ownerName, String repoName, IssueCreationRequest createIssueRequest, Context context);
+
+ /**
+ * Creates a GitHub issue for the specified repository and assessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param securityConnectorName The security connector name.
+ * @param ownerName The ownerName parameter.
+ * @param repoName The repoName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 create(String resourceGroupName, String securityConnectorName, String ownerName, String repoName);
+
+ /**
+ * Creates a GitHub issue for the specified repository and assessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param securityConnectorName The security connector name.
+ * @param ownerName The ownerName parameter.
+ * @param repoName The repoName parameter.
+ * @param createIssueRequest The request model containing details for creating the GitHub issue.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 create(String resourceGroupName, String securityConnectorName, String ownerName, String repoName,
+ IssueCreationRequest createIssueRequest, Context context);
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitHubOwnersClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GitHubOwnersClient.java
new file mode 100644
index 000000000000..49a68617398b
--- /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) TypeSpec 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 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 ownerName parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 ownerName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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);
+
+ /**
+ * 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 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);
+}
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..4426f41d3cb9
--- /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) TypeSpec 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 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 ownerName parameter.
+ * @param repoName The repoName parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 ownerName parameter.
+ * @param repoName The repoName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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);
+
+ /**
+ * 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 ownerName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 ownerName parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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);
+}
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..ae8ea63ddf5d
--- /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) TypeSpec 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 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 groupFQName parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 groupFQName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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);
+
+ /**
+ * 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 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);
+}
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..f219e7d35852
--- /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) TypeSpec 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 {
+ /**
+ * 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 groupFQName parameter.
+ * @param projectName The projectName parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 groupFQName parameter.
+ * @param projectName The projectName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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);
+
+ /**
+ * 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 groupFQName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 groupFQName parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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);
+}
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..d8efd88e0eb9
--- /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) TypeSpec 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 groupFQName parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 groupFQName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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..e89bc5e4a516
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceAssignmentsClient.java
@@ -0,0 +1,137 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec 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 a specific governanceAssignment for the requested scope by AssignmentKey.
+ *
+ * @param scope The scope of the governance assignment.
+ * @param assessmentName The assessment key of the governance assignment.
+ * @param assignmentKey The governance assignment 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 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 assignment.
+ * @param assessmentName The assessment key of the governance assignment.
+ * @param assignmentKey The governance assignment 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 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 assignment.
+ * @param assessmentName The assessment key of the governance assignment.
+ * @param assignmentKey The governance assignment key.
+ * @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 assignment.
+ * @param assessmentName The assessment key of the governance assignment.
+ * @param assignmentKey The governance assignment key.
+ * @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 assignment.
+ * @param assessmentName The assessment key of the governance assignment.
+ * @param assignmentKey The governance assignment 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 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 assignment.
+ * @param assessmentName The assessment key of the governance assignment.
+ * @param assignmentKey The governance assignment 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String scope, String assessmentName, String assignmentKey);
+
+ /**
+ * Get governance assignments on all of your resources inside a scope.
+ *
+ * @param scope The scope of the governance assignment.
+ * @param assessmentName The assessment key of the 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 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 assignment.
+ * @param assessmentName The assessment key of the 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 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);
+}
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..622bab50c54d
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceRulesClient.java
@@ -0,0 +1,241 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec 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.OperationResultInner;
+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 specific governance rule for the requested scope by ruleId.
+ *
+ * @param scope The fully qualified Azure Resource manager identifier of the resource.
+ * @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 fully qualified Azure Resource manager identifier of the resource.
+ * @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 fully qualified Azure Resource manager identifier of the resource.
+ * @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 fully qualified Azure Resource manager identifier of the resource.
+ * @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 fully qualified Azure Resource manager identifier of the resource.
+ * @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 fully qualified Azure Resource manager identifier of the resource.
+ * @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 fully qualified Azure Resource manager identifier of the resource.
+ * @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 fully qualified Azure Resource manager identifier of the resource.
+ * @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);
+
+ /**
+ * Get a list of all relevant governance rules over a scope.
+ *
+ * @param scope The fully qualified Azure Resource manager 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 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 fully qualified Azure Resource manager 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 all relevant governance rules over a scope as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String scope, Context context);
+
+ /**
+ * Execute a governance rule.
+ *
+ * @param scope The fully qualified Azure Resource manager identifier of the resource.
+ * @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 fully qualified Azure Resource manager identifier of the resource.
+ * @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 fully qualified Azure Resource manager identifier of the resource.
+ * @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 fully qualified Azure Resource manager identifier of the resource.
+ * @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 rule.
+ * @param ruleId The governance rule key.
+ * @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 rule.
+ * @param ruleId The governance rule key.
+ * @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)
+ OperationResultInner 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..e6a36e2283b0
--- /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) TypeSpec 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 health report of resource.
+ *
+ * @param resourceId The fully qualified Azure Resource manager identifier of the resource.
+ * @param healthReportName The health report 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 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 fully qualified Azure Resource manager identifier of the resource.
+ * @param healthReportName The health report 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 health report of resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ HealthReportInner get(String resourceId, String healthReportName);
+
+ /**
+ * 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 fully qualified Azure Resource manager 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 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 fully qualified Azure Resource manager 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 all health reports inside a scope 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/InformationProtectionPoliciesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/InformationProtectionPoliciesClient.java
new file mode 100644
index 000000000000..f5c4cf0e9dec
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/InformationProtectionPoliciesClient.java
@@ -0,0 +1,104 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec 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 The fully qualified Azure Resource manager identifier of the resource.
+ * @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 The fully qualified Azure Resource manager identifier of the resource.
+ * @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 The fully qualified Azure Resource manager identifier of the resource.
+ * @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 The fully qualified Azure Resource manager identifier of the resource.
+ * @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 The fully qualified Azure Resource manager 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 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 The fully qualified Azure Resource manager 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 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/IotSecuritySolutionAnalyticsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionAnalyticsClient.java
index 9805485a48cf..9af38d9a26bc 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionAnalyticsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionAnalyticsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.security.fluent;
@@ -16,62 +16,58 @@
*/
public interface IotSecuritySolutionAnalyticsClient {
/**
- * Use this method to get IoT security Analytics metrics in an array.
+ * Use this method to get IoT Security Analytics metrics.
*
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param solutionName The name of the IoT Security solution.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 analytics of your IoT Security solution along with {@link Response}.
+ * @return security analytics of your IoT Security solution along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(String resourceGroupName, String solutionName,
+ Response getWithResponse(String resourceGroupName, String solutionName,
Context context);
/**
- * Use this method to get IoT security Analytics metrics in an array.
+ * Use this method to get IoT Security Analytics metrics.
*
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param solutionName The name of the IoT Security solution.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 analytics of your IoT Security solution.
+ * @return security analytics of your IoT Security solution.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- IoTSecuritySolutionAnalyticsModelListInner list(String resourceGroupName, String solutionName);
+ IoTSecuritySolutionAnalyticsModelInner get(String resourceGroupName, String solutionName);
/**
- * Use this method to get IoT Security Analytics metrics.
+ * Use this method to get IoT security Analytics metrics in an array.
*
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param solutionName The name of the IoT Security solution.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 analytics of your IoT Security solution along with {@link Response}.
+ * @return list of Security analytics of your IoT Security solution along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String solutionName,
+ Response listWithResponse(String resourceGroupName, String solutionName,
Context context);
/**
- * Use this method to get IoT Security Analytics metrics.
+ * Use this method to get IoT security Analytics metrics in an array.
*
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param solutionName The name of the IoT Security solution.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 analytics of your IoT Security solution.
+ * @return list of Security analytics of your IoT Security solution.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- IoTSecuritySolutionAnalyticsModelInner get(String resourceGroupName, String solutionName);
+ IoTSecuritySolutionAnalyticsModelListInner list(String resourceGroupName, String solutionName);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionsAnalyticsAggregatedAlertsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionsAnalyticsAggregatedAlertsClient.java
index 6f022394b02a..10c914f31d68 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionsAnalyticsAggregatedAlertsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionsAnalyticsAggregatedAlertsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.security.fluent;
@@ -17,75 +17,70 @@
*/
public interface IotSecuritySolutionsAnalyticsAggregatedAlertsClient {
/**
- * Use this method to get the aggregated alert list of yours IoT Security solution.
+ * Use this method to get a single the aggregated alert of yours IoT Security solution. This aggregation is
+ * performed by alert name.
*
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param solutionName The name of the IoT Security solution.
+ * @param aggregatedAlertName Identifier of the aggregated alert.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT Security solution aggregated alert data as paginated response with {@link PagedIterable}.
+ * @return security Solution Aggregated Alert information along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String solutionName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String solutionName,
+ String aggregatedAlertName, Context context);
/**
- * Use this method to get the aggregated alert list of yours IoT Security solution.
+ * Use this method to get a single the aggregated alert of yours IoT Security solution. This aggregation is
+ * performed by alert name.
*
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param solutionName The name of the IoT Security solution.
- * @param top Number of results to retrieve.
- * @param context The context to associate with this operation.
+ * @param aggregatedAlertName Identifier of the aggregated alert.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT Security solution aggregated alert data as paginated response with {@link PagedIterable}.
+ * @return security Solution Aggregated Alert information.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String solutionName, Integer top,
- Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ IoTSecurityAggregatedAlertInner get(String resourceGroupName, String solutionName, String aggregatedAlertName);
/**
- * Use this method to get a single the aggregated alert of yours IoT Security solution. This aggregation is
- * performed by alert name.
+ * Use this method to get the aggregated alert list of yours IoT Security solution.
*
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param solutionName The name of the IoT Security solution.
- * @param aggregatedAlertName Identifier of the aggregated alert.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security Solution Aggregated Alert information along with {@link Response}.
+ * @return list of IoT Security solution aggregated alert data as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String solutionName,
- String aggregatedAlertName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String solutionName);
/**
- * Use this method to get a single the aggregated alert of yours IoT Security solution. This aggregation is
- * performed by alert name.
+ * Use this method to get the aggregated alert list of yours IoT Security solution.
*
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param solutionName The name of the IoT Security solution.
- * @param aggregatedAlertName Identifier of the aggregated alert.
+ * @param top Number of results to retrieve.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 Solution Aggregated Alert information.
+ * @return list of IoT Security solution aggregated alert data as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- IoTSecurityAggregatedAlertInner get(String resourceGroupName, String solutionName, String aggregatedAlertName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String solutionName, Integer top,
+ Context context);
/**
* Use this method to dismiss an aggregated IoT Security Solution Alert.
*
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param solutionName The name of the IoT Security solution.
* @param aggregatedAlertName Identifier of the aggregated alert.
* @param context The context to associate with this operation.
@@ -101,8 +96,7 @@ Response