From 4464fd48a9454ea1cd3b827c769cab7f5c3d0818 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 27 Oct 2022 10:53:38 +0000 Subject: [PATCH] CodeGen from PR 21241 in Azure/azure-rest-api-specs Merge 3937f8fb10a101c412a54e1e9d3b6129510895b2 into ef0b521d470bede0b75b72b03c1f461fb139f81c --- .../CHANGELOG.md | 4 +- .../azure-resourcemanager-security/README.md | 2 +- .../azure-resourcemanager-security/SAMPLE.md | 17 +- .../security/SecurityManager.java | 2 +- .../AdaptiveApplicationControlsClient.java | 48 ++--- .../AdaptiveNetworkHardeningsClient.java | 16 +- .../AdvancedThreatProtectionsClient.java | 24 +-- .../security/fluent/AlertsClient.java | 60 +++---- .../fluent/AlertsSuppressionRulesClient.java | 34 ++-- .../fluent/AllowedConnectionsClient.java | 12 +- .../fluent/ApplicationOperationsClient.java | 30 ++-- .../security/fluent/AssessmentsClient.java | 36 ++-- .../fluent/AssessmentsMetadatasClient.java | 44 ++--- .../AutoProvisioningSettingsClient.java | 22 +-- .../security/fluent/AutomationsClient.java | 46 ++--- .../fluent/ComplianceResultsClient.java | 10 +- .../security/fluent/CompliancesClient.java | 10 +- .../security/fluent/ConnectorsClient.java | 30 ++-- .../CustomAssessmentAutomationsClient.java | 38 ++-- .../CustomEntityStoreAssignmentsClient.java | 42 ++--- .../fluent/DeviceSecurityGroupsClient.java | 40 ++--- .../DiscoveredSecuritySolutionsClient.java | 14 +- .../ExternalSecuritySolutionsClient.java | 14 +- .../fluent/GovernanceAssignmentsClient.java | 42 ++--- .../GovernanceRulesOperationsClient.java | 71 ++------ .../InformationProtectionPoliciesClient.java | 28 +-- .../fluent/IngestionSettingsClient.java | 46 ++--- .../IotSecuritySolutionAnalyticsClient.java | 24 +-- ...utionsAnalyticsAggregatedAlertsClient.java | 22 +-- ...lutionsAnalyticsRecommendationsClient.java | 14 +- .../fluent/IotSecuritySolutionsClient.java | 50 +++--- .../JitNetworkAccessPoliciesClient.java | 54 +++--- .../security/fluent/LocationsClient.java | 10 +- .../security/fluent/MdeOnboardingsClient.java | 26 +-- .../security/fluent/PricingsClient.java | 34 ++-- ...RegulatoryComplianceAssessmentsClient.java | 16 +- .../RegulatoryComplianceControlsClient.java | 14 +- .../RegulatoryComplianceStandardsClient.java | 12 +- .../security/fluent/SecureScoresClient.java | 12 +- ...yConnectorApplicationOperationsClient.java | 44 ++--- ...nectorGovernanceRulesOperationsClient.java | 44 ++--- .../fluent/SecurityConnectorsClient.java | 46 ++--- .../fluent/SecurityContactsClient.java | 32 ++-- .../fluent/SecuritySolutionsClient.java | 12 +- ...SecuritySolutionsReferenceDatasClient.java | 22 +-- .../ServerVulnerabilityAssessmentsClient.java | 44 ++--- .../security/fluent/SettingsClient.java | 20 +-- .../fluent/SoftwareInventoriesClient.java | 16 +- ...rabilityAssessmentBaselineRulesClient.java | 50 +++--- ...nerabilityAssessmentScanResultsClient.java | 22 +-- ...SqlVulnerabilityAssessmentScansClient.java | 20 +-- .../security/fluent/SubAssessmentsClient.java | 12 +- .../security/fluent/TasksClient.java | 56 +++--- .../security/fluent/TopologiesClient.java | 12 +- .../fluent/WorkspaceSettingsClient.java | 40 ++--- .../AdaptiveApplicationControlGroupData.java | 4 + .../AdaptiveApplicationControlGroupInner.java | 4 + ...AdaptiveApplicationControlGroupsInner.java | 4 + .../models/AdaptiveNetworkHardeningInner.java | 4 + .../AdaptiveNetworkHardeningProperties.java | 4 + .../AdvancedThreatProtectionProperties.java | 4 + .../AdvancedThreatProtectionSettingInner.java | 4 + .../security/fluent/models/AlertInner.java | 4 + .../fluent/models/AlertProperties.java | 4 + .../models/AlertSyncSettingProperties.java | 4 + .../models/AlertsSuppressionRuleInner.java | 4 + .../AlertsSuppressionRuleProperties.java | 4 + .../AllowedConnectionsResourceInner.java | 4 + .../AllowedConnectionsResourceProperties.java | 4 + .../fluent/models/ApplicationInner.java | 4 + .../fluent/models/ApplicationProperties.java | 4 + .../fluent/models/AscLocationInner.java | 4 + .../models/AutoProvisioningSettingInner.java | 4 + .../AutoProvisioningSettingProperties.java | 4 + .../fluent/models/AutomationInner.java | 4 + .../fluent/models/AutomationProperties.java | 4 + .../AutomationValidationStatusInner.java | 4 + .../fluent/models/ComplianceInner.java | 8 +- .../fluent/models/ComplianceProperties.java | 4 + .../fluent/models/ComplianceResultInner.java | 8 +- .../models/ComplianceResultProperties.java | 4 + .../fluent/models/ConnectionStringsInner.java | 4 + .../fluent/models/ConnectorSettingInner.java | 4 + .../models/ConnectorSettingProperties.java | 4 + .../CustomAssessmentAutomationInner.java | 4 + .../CustomAssessmentAutomationProperties.java | 4 + ...AssessmentAutomationRequestProperties.java | 4 + .../CustomEntityStoreAssignmentInner.java | 4 + ...CustomEntityStoreAssignmentProperties.java | 4 + ...ntityStoreAssignmentRequestProperties.java | 4 + .../models/DataExportSettingProperties.java | 4 + .../models/DeviceSecurityGroupInner.java | 4 + .../models/DeviceSecurityGroupProperties.java | 4 + .../DiscoveredSecuritySolutionInner.java | 4 + .../DiscoveredSecuritySolutionProperties.java | 4 + .../fluent/models/ExecuteRuleStatusInner.java | 4 + .../models/ExternalSecuritySolutionInner.java | 4 + .../models/GovernanceAssignmentInner.java | 4 + .../GovernanceAssignmentProperties.java | 4 + .../fluent/models/GovernanceRuleInner.java | 4 + .../models/GovernanceRuleProperties.java | 4 + .../InformationProtectionPolicyInner.java | 4 + ...InformationProtectionPolicyProperties.java | 4 + .../fluent/models/IngestionSettingInner.java | 4 + .../models/IngestionSettingTokenInner.java | 4 + .../IoTSecurityAggregatedAlertInner.java | 4 + .../IoTSecurityAggregatedAlertProperties.java | 4 + ...SecurityAggregatedRecommendationInner.java | 4 + ...ityAggregatedRecommendationProperties.java | 4 + ...oTSecuritySolutionAnalyticsModelInner.java | 4 + ...curitySolutionAnalyticsModelListInner.java | 4 + ...uritySolutionAnalyticsModelProperties.java | 4 + .../models/IoTSecuritySolutionModelInner.java | 4 + .../models/IoTSecuritySolutionProperties.java | 4 + .../models/JitNetworkAccessPolicyInner.java | 4 + .../JitNetworkAccessPolicyProperties.java | 4 + .../models/JitNetworkAccessRequestInner.java | 4 + .../fluent/models/MdeOnboardingDataInner.java | 4 + .../models/MdeOnboardingDataListInner.java | 4 + .../models/MdeOnboardingDataProperties.java | 4 + .../fluent/models/OperationInner.java | 4 + .../security/fluent/models/PricingInner.java | 4 + .../fluent/models/PricingListInner.java | 4 + .../fluent/models/PricingProperties.java | 4 + .../RegulatoryComplianceAssessmentInner.java | 4 + ...ulatoryComplianceAssessmentProperties.java | 4 + .../RegulatoryComplianceControlInner.java | 4 + ...RegulatoryComplianceControlProperties.java | 4 + .../RegulatoryComplianceStandardInner.java | 4 + ...egulatoryComplianceStandardProperties.java | 4 + .../fluent/models/RuleResultsInner.java | 4 + .../fluent/models/RulesResultsInner.java | 4 + .../security/fluent/models/ScanInner.java | 4 + .../fluent/models/ScanResultInner.java | 4 + .../fluent/models/ScanResultsInner.java | 4 + .../security/fluent/models/ScansInner.java | 4 + .../security/fluent/models/ScoreDetails.java | 4 + ...SecureScoreControlDefinitionItemInner.java | 8 +- ...eScoreControlDefinitionItemProperties.java | 4 + .../SecureScoreControlDetailsInner.java | 4 + .../SecureScoreControlScoreDetailsInner.java | 4 + .../fluent/models/SecureScoreItemInner.java | 4 + .../models/SecureScoreItemProperties.java | 4 + .../SecurityAssessmentMetadataProperties.java | 4 + ...yAssessmentMetadataPropertiesResponse.java | 4 + ...curityAssessmentMetadataResponseInner.java | 4 + .../models/SecurityAssessmentProperties.java | 4 + .../SecurityAssessmentPropertiesResponse.java | 4 + .../SecurityAssessmentResponseInner.java | 4 + .../fluent/models/SecurityConnectorInner.java | 4 + .../models/SecurityConnectorProperties.java | 4 + .../fluent/models/SecurityContactInner.java | 4 + .../models/SecurityContactProperties.java | 4 + .../fluent/models/SecuritySolutionInner.java | 4 + .../models/SecuritySolutionProperties.java | 4 + ...curitySolutionsReferenceDataListInner.java | 4 + ...uritySolutionsReferenceDataProperties.java | 4 + .../models/SecuritySubAssessmentInner.java | 4 + .../SecuritySubAssessmentProperties.java | 4 + .../fluent/models/SecurityTaskInner.java | 4 + .../fluent/models/SecurityTaskProperties.java | 4 + .../ServerVulnerabilityAssessmentInner.java | 8 +- ...rverVulnerabilityAssessmentProperties.java | 4 + ...rverVulnerabilityAssessmentsListInner.java | 4 + .../security/fluent/models/SettingInner.java | 4 + .../security/fluent/models/SoftwareInner.java | 4 + .../fluent/models/SoftwareProperties.java | 4 + .../fluent/models/TopologyResourceInner.java | 4 + .../models/TopologyResourceProperties.java | 4 + .../UpdateIoTSecuritySolutionProperties.java | 4 + .../fluent/models/WorkspaceSettingInner.java | 4 + .../models/WorkspaceSettingProperties.java | 4 + ...AdaptiveApplicationControlsClientImpl.java | 87 ++++----- .../AdaptiveApplicationControlsImpl.java | 34 ++-- .../AdaptiveNetworkHardeningsClientImpl.java | 31 ++-- .../AdaptiveNetworkHardeningsImpl.java | 36 ++-- .../AdvancedThreatProtectionsClientImpl.java | 32 ++-- .../AdvancedThreatProtectionsImpl.java | 18 +- .../implementation/AlertsClientImpl.java | 166 +++++++++--------- .../security/implementation/AlertsImpl.java | 56 +++--- .../AlertsSuppressionRulesClientImpl.java | 46 ++--- .../AlertsSuppressionRulesImpl.java | 30 ++-- .../AllowedConnectionsClientImpl.java | 18 +- .../AllowedConnectionsImpl.java | 20 +-- .../ApplicationOperationsClientImpl.java | 42 ++--- .../ApplicationOperationsImpl.java | 22 +-- .../implementation/AssessmentsClientImpl.java | 66 +++---- .../implementation/AssessmentsImpl.java | 28 +-- .../AssessmentsMetadatasClientImpl.java | 62 +++---- .../AssessmentsMetadatasImpl.java | 40 ++--- .../AutoProvisioningSettingsClientImpl.java | 30 ++-- .../AutoProvisioningSettingsImpl.java | 18 +- .../implementation/AutomationImpl.java | 8 +- .../implementation/AutomationsClientImpl.java | 62 +++---- .../implementation/AutomationsImpl.java | 47 ++--- .../ComplianceResultsClientImpl.java | 16 +- .../implementation/ComplianceResultsImpl.java | 18 +- .../implementation/CompliancesClientImpl.java | 14 +- .../implementation/CompliancesImpl.java | 18 +- .../implementation/ConnectorsClientImpl.java | 42 ++--- .../implementation/ConnectorsImpl.java | 22 +-- ...CustomAssessmentAutomationsClientImpl.java | 61 ++++--- .../CustomAssessmentAutomationsImpl.java | 32 ++-- ...ustomEntityStoreAssignmentsClientImpl.java | 63 ++++--- .../CustomEntityStoreAssignmentsImpl.java | 32 ++-- .../DeviceSecurityGroupsClientImpl.java | 55 +++--- .../DeviceSecurityGroupsImpl.java | 29 +-- ...DiscoveredSecuritySolutionsClientImpl.java | 18 +- .../DiscoveredSecuritySolutionsImpl.java | 22 +-- .../ExternalSecuritySolutionsClientImpl.java | 18 +- .../ExternalSecuritySolutionsImpl.java | 22 +-- .../GovernanceAssignmentsClientImpl.java | 59 ++++--- .../GovernanceAssignmentsImpl.java | 22 +-- .../implementation/GovernanceRuleImpl.java | 4 - .../GovernanceRulesOperationsClientImpl.java | 137 ++++++++------- .../GovernanceRulesOperationsImpl.java | 34 +--- ...formationProtectionPoliciesClientImpl.java | 44 ++--- .../InformationProtectionPoliciesImpl.java | 20 +-- .../implementation/IngestionSettingImpl.java | 12 +- .../IngestionSettingsClientImpl.java | 78 ++++---- .../implementation/IngestionSettingsImpl.java | 42 ++--- ...otSecuritySolutionAnalyticsClientImpl.java | 32 ++-- .../IotSecuritySolutionAnalyticsImpl.java | 24 +-- ...nsAnalyticsAggregatedAlertsClientImpl.java | 32 ++-- ...olutionsAnalyticsAggregatedAlertsImpl.java | 24 +-- ...onsAnalyticsRecommendationsClientImpl.java | 18 +- ...SolutionsAnalyticsRecommendationsImpl.java | 22 +-- .../IotSecuritySolutionsClientImpl.java | 80 +++++---- .../IotSecuritySolutionsImpl.java | 29 +-- .../JitNetworkAccessPoliciesClientImpl.java | 81 +++++---- .../JitNetworkAccessPoliciesImpl.java | 48 ++--- .../implementation/LocationsClientImpl.java | 14 +- .../implementation/LocationsImpl.java | 18 +- .../MdeOnboardingsClientImpl.java | 34 ++-- .../implementation/MdeOnboardingsImpl.java | 24 +-- .../implementation/PricingsClientImpl.java | 46 ++--- .../security/implementation/PricingsImpl.java | 28 +-- ...latoryComplianceAssessmentsClientImpl.java | 29 +-- .../RegulatoryComplianceAssessmentsImpl.java | 36 ++-- ...egulatoryComplianceControlsClientImpl.java | 19 +- .../RegulatoryComplianceControlsImpl.java | 22 +-- ...gulatoryComplianceStandardsClientImpl.java | 16 +- .../RegulatoryComplianceStandardsImpl.java | 18 +- .../SecureScoresClientImpl.java | 16 +- .../implementation/SecureScoresImpl.java | 18 +- ...nectorApplicationOperationsClientImpl.java | 62 +++---- ...ityConnectorApplicationOperationsImpl.java | 30 ++-- ...orGovernanceRulesOperationsClientImpl.java | 62 +++---- ...onnectorGovernanceRulesOperationsImpl.java | 30 ++-- .../SecurityConnectorsClientImpl.java | 79 +++++---- .../SecurityConnectorsImpl.java | 31 ++-- .../SecurityContactsClientImpl.java | 44 ++--- .../implementation/SecurityContactsImpl.java | 22 +-- .../SecuritySolutionsClientImpl.java | 16 +- .../implementation/SecuritySolutionsImpl.java | 18 +- ...ritySolutionsReferenceDatasClientImpl.java | 32 ++-- .../SecuritySolutionsReferenceDatasImpl.java | 22 +-- ...verVulnerabilityAssessmentsClientImpl.java | 69 ++++---- .../ServerVulnerabilityAssessmentsImpl.java | 38 ++-- .../implementation/SettingsClientImpl.java | 28 +-- .../security/implementation/SettingsImpl.java | 22 +-- .../SoftwareInventoriesClientImpl.java | 26 +-- .../SoftwareInventoriesImpl.java | 30 ++-- ...lityAssessmentBaselineRulesClientImpl.java | 113 ++++-------- ...nerabilityAssessmentBaselineRulesImpl.java | 40 ++--- ...bilityAssessmentScanResultsClientImpl.java | 32 ++-- ...ulnerabilityAssessmentScanResultsImpl.java | 24 +-- ...ulnerabilityAssessmentScansClientImpl.java | 28 +-- .../SqlVulnerabilityAssessmentScansImpl.java | 24 +-- .../SubAssessmentsClientImpl.java | 16 +- .../implementation/SubAssessmentsImpl.java | 18 +- .../implementation/TasksClientImpl.java | 79 +++++---- .../security/implementation/TasksImpl.java | 54 +++--- .../implementation/TopologiesClientImpl.java | 16 +- .../implementation/TopologiesImpl.java | 18 +- .../WorkspaceSettingsClientImpl.java | 58 +++--- .../implementation/WorkspaceSettingsImpl.java | 22 +-- .../AadConnectivityStateAutoGenerated.java | 4 + .../models/AadExternalSecuritySolution.java | 4 + .../models/AadSolutionProperties.java | 4 + .../ActiveConnectionsNotInAllowedRange.java | 4 + ...daptiveApplicationControlIssueSummary.java | 4 + .../models/AdaptiveApplicationControls.java | 36 ++-- ...daptiveNetworkHardeningEnforceRequest.java | 4 + .../models/AdaptiveNetworkHardenings.java | 16 +- .../models/AdaptiveNetworkHardeningsList.java | 4 + .../security/models/AdditionalData.java | 4 + .../AdditionalWorkspacesProperties.java | 4 + .../models/AdvancedThreatProtections.java | 10 +- .../security/models/AlertEntity.java | 4 + .../security/models/AlertList.java | 4 + .../AlertPropertiesSupportingEvidence.java | 4 + ...lertSimulatorBundlesRequestProperties.java | 4 + .../models/AlertSimulatorRequestBody.java | 4 + .../AlertSimulatorRequestProperties.java | 4 + .../security/models/AlertSyncSettings.java | 4 + .../security/models/Alerts.java | 58 +++--- .../models/AlertsSuppressionRules.java | 32 ++-- .../models/AlertsSuppressionRulesList.java | 4 + .../security/models/AllowedConnections.java | 12 +- .../models/AllowedConnectionsList.java | 4 + .../models/AllowlistCustomAlertRule.java | 4 + .../AmqpC2DMessagesNotInAllowedRange.java | 4 + ...pC2DRejectedMessagesNotInAllowedRange.java | 4 + .../AmqpD2CMessagesNotInAllowedRange.java | 4 + .../models/ApplicationOperations.java | 18 +- .../security/models/ApplicationsList.java | 4 + .../security/models/AscLocationList.java | 4 + .../security/models/AssessmentLinks.java | 4 + .../security/models/AssessmentStatus.java | 4 + .../models/AssessmentStatusResponse.java | 4 + .../security/models/Assessments.java | 22 +-- .../security/models/AssessmentsMetadatas.java | 30 ++-- .../models/AtaExternalSecuritySolution.java | 4 + .../models/AtaSolutionProperties.java | 4 + .../AuthenticationDetailsProperties.java | 4 + .../models/AutoProvisioningSettingList.java | 4 + .../models/AutoProvisioningSettings.java | 10 +- .../security/models/Automation.java | 10 +- .../security/models/AutomationAction.java | 4 + .../models/AutomationActionEventHub.java | 4 + .../models/AutomationActionLogicApp.java | 4 + .../models/AutomationActionWorkspace.java | 4 + .../security/models/AutomationList.java | 4 + .../security/models/AutomationRuleSet.java | 4 + .../security/models/AutomationScope.java | 4 + .../security/models/AutomationSource.java | 4 + .../models/AutomationTriggeringRule.java | 4 + .../security/models/Automations.java | 32 ++-- ...meRoleAuthenticationDetailsProperties.java | 4 + ...sCredsAuthenticationDetailsProperties.java | 4 + .../security/models/AwsEnvironmentData.java | 4 + .../models/AwsOrganizationalData.java | 4 + .../models/AwsOrganizationalDataMaster.java | 4 + .../models/AwsOrganizationalDataMember.java | 4 + .../AzureDevOpsScopeEnvironmentData.java | 4 + .../security/models/AzureResourceDetails.java | 4 + .../models/AzureResourceIdentifier.java | 4 + .../security/models/AzureResourceLink.java | 4 + .../models/AzureTrackedResourceLocation.java | 4 + .../security/models/Baseline.java | 4 + .../models/BaselineAdjustedResult.java | 4 + .../security/models/BenchmarkReference.java | 4 + .../models/CefExternalSecuritySolution.java | 4 + .../models/CefSolutionProperties.java | 4 + .../security/models/CloudOffering.java | 4 + .../security/models/ComplianceList.java | 4 + .../security/models/ComplianceResultList.java | 4 + .../security/models/ComplianceResults.java | 10 +- .../security/models/ComplianceSegment.java | 4 + .../security/models/Compliances.java | 10 +- .../security/models/ConnectableResource.java | 4 + .../security/models/ConnectedResource.java | 4 + .../security/models/ConnectedWorkspace.java | 4 + .../models/ConnectionFromIpNotAllowed.java | 4 + .../models/ConnectionToIpNotAllowed.java | 4 + .../security/models/ConnectorSettingList.java | 4 + .../security/models/Connectors.java | 18 +- ...tainerRegistryVulnerabilityProperties.java | 4 + .../models/CspmMonitorAwsOffering.java | 4 + ...nitorAwsOfferingNativeCloudConnection.java | 4 + .../CspmMonitorAzureDevOpsOffering.java | 4 + .../models/CspmMonitorGcpOffering.java | 4 + ...nitorGcpOfferingNativeCloudConnection.java | 4 + .../models/CspmMonitorGithubOffering.java | 4 + .../security/models/CustomAlertRule.java | 4 + .../CustomAssessmentAutomationRequest.java | 4 + .../models/CustomAssessmentAutomations.java | 23 +-- ...CustomAssessmentAutomationsListResult.java | 4 + .../CustomEntityStoreAssignmentRequest.java | 4 + .../models/CustomEntityStoreAssignments.java | 24 +-- ...ustomEntityStoreAssignmentsListResult.java | 4 + .../resourcemanager/security/models/Cve.java | 4 + .../resourcemanager/security/models/Cvss.java | 4 + .../security/models/DataExportSettings.java | 4 + .../models/DefenderCspmAwsOffering.java | 4 + .../DefenderCspmAwsOfferingVmScanners.java | 4 + ...spmAwsOfferingVmScannersConfiguration.java | 4 + .../models/DefenderCspmGcpOffering.java | 4 + .../DefenderFoDatabasesAwsOffering.java | 4 + ...tabasesAwsOfferingArcAutoProvisioning.java | 4 + .../DefenderFoDatabasesAwsOfferingRds.java | 4 + .../DefenderForContainersAwsOffering.java | 4 + ...tainersAwsOfferingCloudWatchToKinesis.java | 4 + ...eringContainerVulnerabilityAssessment.java | 4 + ...gContainerVulnerabilityAssessmentTask.java | 4 + ...erForContainersAwsOfferingKinesisToS3.java | 4 + ...inersAwsOfferingKubernetesScubaReader.java | 4 + ...ontainersAwsOfferingKubernetesService.java | 4 + .../DefenderForContainersGcpOffering.java | 4 + ...ringDataPipelineNativeCloudConnection.java | 4 + ...inersGcpOfferingNativeCloudConnection.java | 4 + .../DefenderForDatabasesGcpOffering.java | 4 + ...tabasesGcpOfferingArcAutoProvisioning.java | 4 + ...fenderForDatabasesArcAutoProvisioning.java | 4 + .../DefenderForDevOpsAzureDevOpsOffering.java | 4 + .../DefenderForDevOpsGithubOffering.java | 4 + .../models/DefenderForServersAwsOffering.java | 4 + ...ServersAwsOfferingArcAutoProvisioning.java | 4 + ...rServersAwsOfferingDefenderForServers.java | 4 + ...ServersAwsOfferingMdeAutoProvisioning.java | 4 + .../DefenderForServersAwsOfferingSubPlan.java | 4 + ...rServersAwsOfferingVaAutoProvisioning.java | 4 + ...feringVaAutoProvisioningConfiguration.java | 4 + ...fenderForServersAwsOfferingVmScanners.java | 4 + ...ersAwsOfferingVmScannersConfiguration.java | 4 + .../models/DefenderForServersGcpOffering.java | 4 + ...ServersGcpOfferingArcAutoProvisioning.java | 4 + ...rServersGcpOfferingDefenderForServers.java | 4 + ...ServersGcpOfferingMdeAutoProvisioning.java | 4 + .../DefenderForServersGcpOfferingSubPlan.java | 4 + ...rServersGcpOfferingVaAutoProvisioning.java | 4 + ...feringVaAutoProvisioningConfiguration.java | 4 + .../models/DenylistCustomAlertRule.java | 4 + .../models/DeviceSecurityGroupList.java | 4 + .../security/models/DeviceSecurityGroups.java | 19 +- .../DirectMethodInvokesNotInAllowedRange.java | 4 + .../DiscoveredSecuritySolutionList.java | 4 + .../models/DiscoveredSecuritySolutions.java | 12 +- .../EffectiveNetworkSecurityGroups.java | 4 + .../security/models/EnvironmentData.java | 4 + .../resourcemanager/security/models/Etag.java | 4 + .../models/ExecuteGovernanceRuleParams.java | 4 + .../models/ExternalSecuritySolutionList.java | 4 + .../ExternalSecuritySolutionProperties.java | 4 + .../models/ExternalSecuritySolutions.java | 12 +- .../FailedLocalLoginsNotInAllowedRange.java | 4 + .../models/FileUploadsNotInAllowedRange.java | 4 + .../GcpCredentialsDetailsProperties.java | 4 + .../models/GcpOrganizationalData.java | 4 + .../models/GcpOrganizationalDataMember.java | 4 + .../GcpOrganizationalDataOrganization.java | 4 + .../security/models/GcpProjectDetails.java | 4 + .../models/GcpProjectEnvironmentData.java | 4 + .../models/GithubScopeEnvironmentData.java | 4 + .../GovernanceAssignmentAdditionalData.java | 4 + .../models/GovernanceAssignments.java | 20 +-- .../models/GovernanceAssignmentsList.java | 4 + .../models/GovernanceEmailNotification.java | 4 + .../security/models/GovernanceRule.java | 10 -- .../GovernanceRuleEmailNotification.java | 4 + .../security/models/GovernanceRuleList.java | 4 + .../models/GovernanceRuleOwnerSource.java | 4 + .../models/GovernanceRulesOperations.java | 39 +--- .../HttpC2DMessagesNotInAllowedRange.java | 4 + ...pC2DRejectedMessagesNotInAllowedRange.java | 4 + .../HttpD2CMessagesNotInAllowedRange.java | 4 + .../HybridComputeSettingsProperties.java | 4 + .../InformationProtectionAwsOffering.java | 4 + ...ctionAwsOfferingInformationProtection.java | 4 + .../models/InformationProtectionKeyword.java | 4 + .../models/InformationProtectionPolicies.java | 12 +- .../InformationProtectionPolicyList.java | 4 + .../security/models/InformationType.java | 4 + .../models/IngestionConnectionString.java | 4 + .../security/models/IngestionSetting.java | 24 +-- .../security/models/IngestionSettingList.java | 4 + .../security/models/IngestionSettings.java | 38 ++-- .../IoTSecurityAggregatedAlertList.java | 4 + ...atedAlertPropertiesTopDevicesListItem.java | 4 + ...TSecurityAggregatedRecommendationList.java | 4 + .../models/IoTSecurityAlertedDevice.java | 4 + .../models/IoTSecurityDeviceAlert.java | 4 + .../IoTSecurityDeviceRecommendation.java | 4 + ...ticsModelPropertiesDevicesMetricsItem.java | 4 + .../models/IoTSecuritySolutionsList.java | 4 + .../security/models/IoTSeverityMetrics.java | 4 + .../models/IotSecuritySolutionAnalytics.java | 24 +-- .../security/models/IotSecuritySolutions.java | 20 +-- ...itySolutionsAnalyticsAggregatedAlerts.java | 22 +-- ...ritySolutionsAnalyticsRecommendations.java | 14 +- .../models/JitNetworkAccessPolicies.java | 38 ++-- .../models/JitNetworkAccessPoliciesList.java | 4 + .../JitNetworkAccessPolicyInitiatePort.java | 4 + ...JitNetworkAccessPolicyInitiateRequest.java | 4 + ...orkAccessPolicyInitiateVirtualMachine.java | 4 + .../JitNetworkAccessPolicyVirtualMachine.java | 4 + .../models/JitNetworkAccessPortRule.java | 4 + .../models/JitNetworkAccessRequestPort.java | 4 + ...JitNetworkAccessRequestVirtualMachine.java | 4 + .../security/models/KindAutoGenerated.java | 4 + .../security/models/ListCustomAlertRule.java | 4 + .../security/models/LocalUserNotAllowed.java | 4 + .../security/models/Location.java | 4 + .../security/models/Locations.java | 10 +- .../models/LogAnalyticsIdentifier.java | 4 + .../security/models/MdeOnboardings.java | 24 +-- .../MqttC2DMessagesNotInAllowedRange.java | 4 + ...tC2DRejectedMessagesNotInAllowedRange.java | 4 + .../MqttD2CMessagesNotInAllowedRange.java | 4 + .../models/OnPremiseResourceDetails.java | 4 + .../models/OnPremiseSqlResourceDetails.java | 4 + .../security/models/OperationDisplay.java | 4 + .../security/models/OperationList.java | 4 + .../security/models/PathRecommendation.java | 4 + .../security/models/Pricings.java | 34 ++-- .../security/models/ProcessNotAllowed.java | 4 + .../security/models/ProtectionMode.java | 4 + .../models/ProxyServerProperties.java | 4 + .../security/models/PublisherInfo.java | 4 + .../security/models/QueryCheck.java | 4 + .../models/QueuePurgesNotInAllowedRange.java | 4 + ...RecommendationConfigurationProperties.java | 4 + .../RegulatoryComplianceAssessmentList.java | 4 + .../RegulatoryComplianceAssessments.java | 16 +- .../RegulatoryComplianceControlList.java | 4 + .../models/RegulatoryComplianceControls.java | 12 +- .../RegulatoryComplianceStandardList.java | 4 + .../models/RegulatoryComplianceStandards.java | 10 +- .../security/models/Remediation.java | 4 + .../security/models/RemediationEta.java | 4 + .../security/models/ResourceDetails.java | 4 + .../security/models/ResourceIdentifier.java | 4 + .../resourcemanager/security/models/Rule.java | 4 + .../security/models/RuleResultsInput.java | 4 + .../models/RuleResultsProperties.java | 4 + .../security/models/RulesResultsInput.java | 4 + .../security/models/ScanProperties.java | 4 + .../security/models/ScanResultProperties.java | 4 + .../security/models/ScopeElement.java | 4 + .../SecureScoreControlDefinitionList.java | 4 + .../SecureScoreControlDefinitionSource.java | 4 + .../models/SecureScoreControlList.java | 4 + .../security/models/SecureScores.java | 12 +- .../security/models/SecureScoresList.java | 4 + .../security/models/SecurityAssessment.java | 4 + .../models/SecurityAssessmentList.java | 4 + ...SecurityAssessmentMetadataPartnerData.java | 4 + ...etadataPropertiesResponsePublishDates.java | 4 + ...ecurityAssessmentMetadataResponseList.java | 4 + .../models/SecurityAssessmentPartnerData.java | 4 + .../SecurityAssessmentPropertiesBase.java | 4 + ...ecurityConnectorApplicationOperations.java | 42 ++--- ...ityConnectorGovernanceRulesOperations.java | 42 ++--- .../security/models/SecurityConnectors.java | 21 +-- .../models/SecurityConnectorsList.java | 4 + .../security/models/SecurityContactList.java | 4 + ...tyContactPropertiesAlertNotifications.java | 4 + ...yContactPropertiesNotificationsByRole.java | 4 + .../security/models/SecurityContacts.java | 18 +- .../security/models/SecuritySolutionList.java | 4 + .../security/models/SecuritySolutions.java | 12 +- .../SecuritySolutionsReferenceData.java | 4 + .../SecuritySolutionsReferenceDatas.java | 22 +-- .../models/SecuritySubAssessmentList.java | 4 + .../security/models/SecurityTaskList.java | 4 + .../models/SecurityTaskParameters.java | 4 + .../security/models/SensitivityLabel.java | 4 + .../ServerVulnerabilityAssessments.java | 44 ++--- .../models/ServerVulnerabilityProperties.java | 4 + .../models/ServicePrincipalProperties.java | 4 + .../security/models/Settings.java | 20 +-- .../security/models/SettingsList.java | 4 + .../security/models/SoftwareInventories.java | 16 +- .../security/models/SoftwaresList.java | 4 + .../SqlServerVulnerabilityProperties.java | 4 + ...lVulnerabilityAssessmentBaselineRules.java | 42 ++--- ...SqlVulnerabilityAssessmentScanResults.java | 22 +-- .../SqlVulnerabilityAssessmentScans.java | 20 +-- .../security/models/SubAssessmentStatus.java | 4 + .../security/models/SubAssessments.java | 12 +- .../models/SuppressionAlertsScope.java | 4 + .../resourcemanager/security/models/Tags.java | 4 + .../security/models/TagsResource.java | 4 + .../security/models/Tasks.java | 54 +++--- .../models/ThresholdCustomAlertRule.java | 4 + .../models/TimeWindowCustomAlertRule.java | 4 + .../security/models/Topologies.java | 12 +- .../security/models/TopologyList.java | 4 + .../models/TopologySingleResource.java | 4 + .../models/TopologySingleResourceChild.java | 4 + .../models/TopologySingleResourceParent.java | 4 + .../security/models/TrackedResource.java | 4 + .../models/TwinUpdatesNotInAllowedRange.java | 4 + ...authorizedOperationsNotInAllowedRange.java | 4 + .../models/UpdateIotSecuritySolutionData.java | 4 + .../UserDefinedResourcesProperties.java | 4 + .../security/models/UserRecommendation.java | 4 + .../security/models/VaRule.java | 4 + .../security/models/VendorReference.java | 4 + .../security/models/VmRecommendation.java | 4 + .../security/models/WorkspaceSettingList.java | 4 + .../security/models/WorkspaceSettings.java | 18 +- ...ptiveApplicationControlsDeleteSamples.java | 2 +- .../generated/AssessmentsDeleteSamples.java | 2 +- .../generated/AutomationsDeleteSamples.java | 2 +- ...tomAssessmentAutomationsDeleteSamples.java | 2 +- ...omEntityStoreAssignmentsDeleteSamples.java | 3 +- .../DeviceSecurityGroupsDeleteSamples.java | 2 +- .../IotSecuritySolutionDeleteSamples.java | 2 +- .../SecurityConnectorsDeleteSamples.java | 2 +- 591 files changed, 4754 insertions(+), 3391 deletions(-) diff --git a/sdk/security/azure-resourcemanager-security/CHANGELOG.md b/sdk/security/azure-resourcemanager-security/CHANGELOG.md index 0dc7d3440584f..b56365132d4ab 100644 --- a/sdk/security/azure-resourcemanager-security/CHANGELOG.md +++ b/sdk/security/azure-resourcemanager-security/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.3 (Unreleased) +## 1.0.0-beta.1 (2022-10-27) + +- 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). ### Features Added diff --git a/sdk/security/azure-resourcemanager-security/README.md b/sdk/security/azure-resourcemanager-security/README.md index 5049f5e61582c..10dfaf1d157d8 100644 --- a/sdk/security/azure-resourcemanager-security/README.md +++ b/sdk/security/azure-resourcemanager-security/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-security - 1.0.0-beta.2 + 1.0.0-beta.3 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/security/azure-resourcemanager-security/SAMPLE.md b/sdk/security/azure-resourcemanager-security/SAMPLE.md index 090878aeb8e6f..b02598010e686 100644 --- a/sdk/security/azure-resourcemanager-security/SAMPLE.md +++ b/sdk/security/azure-resourcemanager-security/SAMPLE.md @@ -396,7 +396,7 @@ public final class AdaptiveApplicationControlsDeleteSamples { */ public static void deleteAnApplicationControlMachineGroup( com.azure.resourcemanager.security.SecurityManager manager) { - manager.adaptiveApplicationControls().deleteWithResponse("centralus", "GROUP1", Context.NONE); + manager.adaptiveApplicationControls().deleteByResourceGroupWithResponse("centralus", "GROUP1", Context.NONE); } } ``` @@ -1485,7 +1485,7 @@ public final class AssessmentsDeleteSamples { com.azure.resourcemanager.security.SecurityManager manager) { manager .assessments() - .deleteWithResponse( + .deleteByResourceGroupWithResponse( "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2", "8bb8be0a-6010-4789-812f-e4d661c4ed0e", Context.NONE); @@ -1985,7 +1985,7 @@ public final class AutomationsDeleteSamples { * @param manager Entry point to SecurityManager. */ public static void deleteASecurityAutomation(com.azure.resourcemanager.security.SecurityManager manager) { - manager.automations().deleteWithResponse("myRg", "myAutomationName", Context.NONE); + manager.automations().deleteByResourceGroupWithResponse("myRg", "myAutomationName", Context.NONE); } } ``` @@ -2486,7 +2486,7 @@ public final class CustomAssessmentAutomationsDeleteSamples { public static void deleteACustomAssessmentAutomation(com.azure.resourcemanager.security.SecurityManager manager) { manager .customAssessmentAutomations() - .deleteWithResponse("TestResourceGroup", "MyCustomAssessmentAutomation", Context.NONE); + .deleteByResourceGroupWithResponse("TestResourceGroup", "MyCustomAssessmentAutomation", Context.NONE); } } ``` @@ -2600,7 +2600,8 @@ public final class CustomEntityStoreAssignmentsDeleteSamples { public static void deleteACustomEntityStoreAssignment(com.azure.resourcemanager.security.SecurityManager manager) { manager .customEntityStoreAssignments() - .deleteWithResponse("TestResourceGroup", "33e7cc6e-a139-4723-a0e5-76993aee0771", Context.NONE); + .deleteByResourceGroupWithResponse( + "TestResourceGroup", "33e7cc6e-a139-4723-a0e5-76993aee0771", Context.NONE); } } ``` @@ -2728,7 +2729,7 @@ public final class DeviceSecurityGroupsDeleteSamples { com.azure.resourcemanager.security.SecurityManager manager) { manager .deviceSecurityGroups() - .deleteWithResponse( + .deleteByResourceGroupWithResponse( "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Devices/iotHubs/sampleiothub", "samplesecuritygroup", Context.NONE); @@ -3587,7 +3588,7 @@ public final class IotSecuritySolutionDeleteSamples { * @param manager Entry point to SecurityManager. */ public static void deleteAnIoTSecuritySolution(com.azure.resourcemanager.security.SecurityManager manager) { - manager.iotSecuritySolutions().deleteWithResponse("MyGroup", "default", Context.NONE); + manager.iotSecuritySolutions().deleteByResourceGroupWithResponse("MyGroup", "default", Context.NONE); } } ``` @@ -4948,7 +4949,7 @@ public final class SecurityConnectorsDeleteSamples { * @param manager Entry point to SecurityManager. */ public static void deleteASecurityConnector(com.azure.resourcemanager.security.SecurityManager manager) { - manager.securityConnectors().deleteWithResponse("myRg", "mySecurityConnectorName", Context.NONE); + manager.securityConnectors().deleteByResourceGroupWithResponse("myRg", "mySecurityConnectorName", Context.NONE); } } ``` 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 ab08068107769..e3b473420ea62 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 @@ -439,7 +439,7 @@ public SecurityManager authenticate(TokenCredential credential, AzureProfile pro .append("-") .append("com.azure.resourcemanager.security") .append("/") - .append("1.0.0-beta.2"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdaptiveApplicationControlsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdaptiveApplicationControlsClient.java index 720c79b2ac3f9..26e579af6d381 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdaptiveApplicationControlsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdaptiveApplicationControlsClient.java @@ -13,16 +13,6 @@ /** An instance of this class provides access to all the operations defined in AdaptiveApplicationControlsClient. */ public interface AdaptiveApplicationControlsClient { - /** - * Gets a list of application control machine groups for the subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of application control machine groups for the subscription. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - AdaptiveApplicationControlGroupsInner list(); - /** * Gets a list of application control machine groups for the subscription. * @@ -39,18 +29,14 @@ Response listWithResponse( Boolean includePathRecommendations, Boolean summary, Context context); /** - * Gets an application control VM/server group. + * Gets a list of application control machine groups for the subscription. * - * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get - * locations. - * @param groupName Name of an application control machine group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 application control VM/server group. + * @return a list of application control machine groups for the subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - AdaptiveApplicationControlGroupInner get(String ascLocation, String groupName); + AdaptiveApplicationControlGroupsInner list(); /** * Gets an application control VM/server group. @@ -69,20 +55,18 @@ Response getWithResponse( String ascLocation, String groupName, Context context); /** - * Update an application control machine group. + * Gets an application control VM/server group. * * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param groupName Name of an application control machine group. - * @param body The body 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 response. + * @return an application control VM/server group. */ @ServiceMethod(returns = ReturnType.SINGLE) - AdaptiveApplicationControlGroupInner put( - String ascLocation, String groupName, AdaptiveApplicationControlGroupInner body); + AdaptiveApplicationControlGroupInner get(String ascLocation, String groupName); /** * Update an application control machine group. @@ -102,17 +86,20 @@ Response putWithResponse( String ascLocation, String groupName, AdaptiveApplicationControlGroupInner body, Context context); /** - * Delete an application control machine group. + * Update an application control machine group. * * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param groupName Name of an application control machine group. + * @param body The body 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 response. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String ascLocation, String groupName); + AdaptiveApplicationControlGroupInner put( + String ascLocation, String groupName, AdaptiveApplicationControlGroupInner body); /** * Delete an application control machine group. @@ -128,4 +115,17 @@ Response putWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse(String ascLocation, String groupName, Context context); + + /** + * Delete an application control machine group. + * + * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get + * locations. + * @param groupName Name of an application control machine group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.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 ascLocation, String groupName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdaptiveNetworkHardeningsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdaptiveNetworkHardeningsClient.java index 57d481e23e34b..9a39539b447e7 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdaptiveNetworkHardeningsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdaptiveNetworkHardeningsClient.java @@ -62,18 +62,20 @@ PagedIterable listByExtendedResource( * @param resourceType The type of the resource. * @param resourceName Name of the resource. * @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening 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 single Adaptive Network Hardening resource. + * @return a single Adaptive Network Hardening resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AdaptiveNetworkHardeningInner get( + Response getWithResponse( String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, - String adaptiveNetworkHardeningResourceName); + String adaptiveNetworkHardeningResourceName, + Context context); /** * Gets a single Adaptive Network Hardening resource. @@ -84,20 +86,18 @@ AdaptiveNetworkHardeningInner get( * @param resourceType The type of the resource. * @param resourceName Name of the resource. * @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening 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 single Adaptive Network Hardening resource along with {@link Response}. + * @return a single Adaptive Network Hardening resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( + AdaptiveNetworkHardeningInner get( String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, - String adaptiveNetworkHardeningResourceName, - Context context); + String adaptiveNetworkHardeningResourceName); /** * Enforces the given rules on the NSG(s) listed in the request. 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 be005c45f468b..df0146bcab8f7 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 @@ -16,53 +16,53 @@ public interface AdvancedThreatProtectionsClient { * Gets the Advanced Threat Protection settings for the specified 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 the Advanced Threat Protection settings for the specified resource. + * @return the Advanced Threat Protection settings for the specified resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AdvancedThreatProtectionSettingInner get(String resourceId); + Response getWithResponse(String resourceId, Context context); /** * Gets the Advanced Threat Protection settings for the specified 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 the Advanced Threat Protection settings for the specified resource along with {@link Response}. + * @return the Advanced Threat Protection settings for the specified resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceId, Context context); + AdvancedThreatProtectionSettingInner get(String resourceId); /** * Creates or updates the Advanced Threat Protection settings on a specified resource. * * @param resourceId The 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. * @throws com.azure.core.management.exception.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 Advanced Threat Protection resource. + * @return the Advanced Threat Protection resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AdvancedThreatProtectionSettingInner create( - String resourceId, AdvancedThreatProtectionSettingInner advancedThreatProtectionSetting); + Response createWithResponse( + String resourceId, AdvancedThreatProtectionSettingInner advancedThreatProtectionSetting, Context context); /** * Creates or updates the Advanced Threat Protection settings on a specified resource. * * @param resourceId The 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. * @throws com.azure.core.management.exception.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 Advanced Threat Protection resource along with {@link Response}. + * @return the Advanced Threat Protection resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createWithResponse( - String resourceId, AdvancedThreatProtectionSettingInner advancedThreatProtectionSetting, Context context); + AdvancedThreatProtectionSettingInner create( + String resourceId, AdvancedThreatProtectionSettingInner advancedThreatProtectionSetting); } 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 8ec11098cb0e6..6a8b01d63a827 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 @@ -124,20 +124,6 @@ public interface AlertsClient { PagedIterable listResourceGroupLevelByRegion( String ascLocation, String resourceGroupName, Context context); - /** - * 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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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); - /** * Get an alert that is associated with a subscription. * @@ -154,20 +140,18 @@ PagedIterable listResourceGroupLevelByRegion( Response getSubscriptionLevelWithResponse(String ascLocation, String alertName, Context context); /** - * Get an alert that is associated a resource group or a resource in a 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 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. + * @return an alert that is associated with a subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - AlertInner getResourceGroupLevel(String resourceGroupName, String ascLocation, String alertName); + AlertInner getSubscriptionLevel(String ascLocation, String alertName); /** * Get an alert that is associated a resource group or a resource in a resource group. @@ -189,17 +173,20 @@ 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 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) - void updateSubscriptionLevelStateToDismiss(String ascLocation, String alertName); + AlertInner getResourceGroupLevel(String resourceGroupName, String ascLocation, String alertName); /** * Update the alert's state. @@ -228,7 +215,7 @@ Response updateSubscriptionLevelStateToDismissWithResponse( * @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 updateSubscriptionLevelStateToDismiss(String ascLocation, String alertName); /** * Update the alert's state. @@ -257,7 +244,7 @@ Response updateSubscriptionLevelStateToResolveWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void updateSubscriptionLevelStateToActivate(String ascLocation, String alertName); + void updateSubscriptionLevelStateToResolve(String ascLocation, String alertName); /** * Update the alert's state. @@ -286,7 +273,7 @@ Response updateSubscriptionLevelStateToActivateWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void updateSubscriptionLevelStateToInProgress(String ascLocation, String alertName); + void updateSubscriptionLevelStateToActivate(String ascLocation, String alertName); /** * Update the alert's state. @@ -307,8 +294,6 @@ Response updateSubscriptionLevelStateToInProgressWithResponse( /** * 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. @@ -317,7 +302,7 @@ Response updateSubscriptionLevelStateToInProgressWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void updateResourceGroupLevelStateToResolve(String resourceGroupName, String ascLocation, String alertName); + void updateSubscriptionLevelStateToInProgress(String ascLocation, String alertName); /** * Update the alert's state. @@ -350,7 +335,7 @@ Response updateResourceGroupLevelStateToResolveWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void updateResourceGroupLevelStateToDismiss(String resourceGroupName, String ascLocation, String alertName); + void updateResourceGroupLevelStateToResolve(String resourceGroupName, String ascLocation, String alertName); /** * Update the alert's state. @@ -383,7 +368,7 @@ Response updateResourceGroupLevelStateToDismissWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void updateResourceGroupLevelStateToActivate(String resourceGroupName, String ascLocation, String alertName); + void updateResourceGroupLevelStateToDismiss(String resourceGroupName, String ascLocation, String alertName); /** * Update the alert's state. @@ -416,7 +401,7 @@ Response updateResourceGroupLevelStateToActivateWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void updateResourceGroupLevelStateToInProgress(String resourceGroupName, String ascLocation, String alertName); + void updateResourceGroupLevelStateToActivate(String resourceGroupName, String ascLocation, String alertName); /** * Update the alert's state. @@ -436,6 +421,21 @@ Response updateResourceGroupLevelStateToActivateWithResponse( Response updateResourceGroupLevelStateToInProgressWithResponse( String resourceGroupName, String ascLocation, String alertName, 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 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void updateResourceGroupLevelStateToInProgress(String resourceGroupName, String ascLocation, String alertName); + /** * Simulate security alerts. * 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 index 5ac06107ec554..64f7db01f3cee 100644 --- 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 @@ -40,78 +40,78 @@ 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. + * @return dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription along with {@link + * Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AlertsSuppressionRuleInner get(String alertsSuppressionRuleName); + 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. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. + * @return dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String alertsSuppressionRuleName, Context context); + 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. + * @return describes the suppression rule along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AlertsSuppressionRuleInner update( - String alertsSuppressionRuleName, AlertsSuppressionRuleInner alertsSuppressionRule); + 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. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. + * @return describes the suppression rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse( - String alertsSuppressionRuleName, AlertsSuppressionRuleInner alertsSuppressionRule, Context context); + 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) - void delete(String alertsSuppressionRuleName); + Response deleteWithResponse(String alertsSuppressionRuleName, Context context); /** * 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); + void delete(String alertsSuppressionRuleName); } 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 b3d217b64efb9..021776947464f 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 @@ -76,14 +76,16 @@ public interface AllowedConnectionsClient { * @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. + * type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AllowedConnectionsResourceInner get(String resourceGroupName, String ascLocation, ConnectionType connectionType); + Response getWithResponse( + String resourceGroupName, String ascLocation, ConnectionType connectionType, Context context); /** * Gets the list of all possible traffic between resources for the subscription and location, based on connection @@ -94,14 +96,12 @@ public interface AllowedConnectionsClient { * @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}. + * type. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String ascLocation, ConnectionType connectionType, Context context); + AllowedConnectionsResourceInner get(String resourceGroupName, String ascLocation, ConnectionType connectionType); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApplicationOperationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApplicationOperationsClient.java index 8ad231303db78..1454ded262341 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApplicationOperationsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApplicationOperationsClient.java @@ -16,76 +16,76 @@ public interface ApplicationOperationsClient { * Get a specific application for the requested scope by applicationId. * * @param applicationId The security Application key - unique key for the standard application. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specific application for the requested scope by applicationId. + * @return a specific application for the requested scope by applicationId along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ApplicationInner get(String applicationId); + 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. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. + * @return a specific application for the requested scope by applicationId. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String applicationId, Context context); + 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. + * @return security Application over a given scope along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ApplicationInner createOrUpdate(String applicationId, ApplicationInner application); + 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. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. + * @return security Application over a given scope. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String applicationId, ApplicationInner application, Context context); + 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) - void delete(String applicationId); + 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. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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); + void delete(String applicationId); } 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 4df089f9e4e88..ea903c0cc61a4 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 @@ -49,29 +49,29 @@ public interface AssessmentsClient { * * @param resourceId The 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a security assessment on your scanned resource. + * @return a security assessment on your scanned resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SecurityAssessmentResponseInner get(String resourceId, String assessmentName); + Response getWithResponse( + String resourceId, String assessmentName, ExpandEnum expand, Context context); /** * Get a security assessment on your scanned resource. * * @param resourceId The 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a security assessment on your scanned resource along with {@link Response}. + * @return a security assessment on your scanned resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceId, String assessmentName, ExpandEnum expand, Context context); + SecurityAssessmentResponseInner get(String resourceId, String assessmentName); /** * Create a security assessment on your resource. An assessment metadata that describes this assessment must be @@ -80,14 +80,15 @@ Response getWithResponse( * @param resourceId The 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security assessment on a resource - response format. + * @return security assessment on a resource - response format along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SecurityAssessmentResponseInner createOrUpdate( - String resourceId, String assessmentName, SecurityAssessment assessment); + Response createOrUpdateWithResponse( + String resourceId, String assessmentName, SecurityAssessment assessment, Context context); /** * Create a security assessment on your resource. An assessment metadata that describes this assessment must be @@ -96,15 +97,14 @@ SecurityAssessmentResponseInner createOrUpdate( * @param resourceId The 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security assessment on a resource - response format along with {@link Response}. + * @return security assessment on a resource - response format. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceId, String assessmentName, SecurityAssessment assessment, Context context); + SecurityAssessmentResponseInner createOrUpdate( + String resourceId, String assessmentName, SecurityAssessment assessment); /** * Delete a security assessment on your resource. An assessment metadata that describes this assessment must be @@ -112,12 +112,14 @@ Response createOrUpdateWithResponse( * * @param resourceId The 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. * @throws com.azure.core.management.exception.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) - void delete(String resourceId, String assessmentName); + Response deleteWithResponse(String resourceId, String assessmentName, Context context); /** * Delete a security assessment on your resource. An assessment metadata that describes this assessment must be @@ -125,12 +127,10 @@ Response createOrUpdateWithResponse( * * @param resourceId The 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. * @throws com.azure.core.management.exception.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 resourceId, String assessmentName, Context context); + void delete(String resourceId, String assessmentName); } 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 99d65486e61f9..d2d08e0c5684f 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 @@ -39,26 +39,26 @@ public interface AssessmentsMetadatasClient { * Get metadata information on an assessment type. * * @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. + * @return metadata information on an assessment type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SecurityAssessmentMetadataResponseInner get(String assessmentMetadataName); + Response getWithResponse(String assessmentMetadataName, Context context); /** * Get metadata information on an assessment type. * * @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 along with {@link Response}. + * @return metadata information on an assessment type. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String assessmentMetadataName, Context context); + SecurityAssessmentMetadataResponseInner get(String assessmentMetadataName); /** * Get metadata information on all assessment types in a specific subscription. @@ -88,80 +88,80 @@ public interface AssessmentsMetadatasClient { * 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 an assessment type in a specific subscription. + * @return metadata information on an assessment type in a specific subscription along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SecurityAssessmentMetadataResponseInner getInSubscription(String assessmentMetadataName); + Response getInSubscriptionWithResponse( + String assessmentMetadataName, Context context); /** * 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 an assessment type in a specific subscription along with {@link Response}. + * @return metadata information on an assessment type in a specific subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getInSubscriptionWithResponse( - String assessmentMetadataName, Context context); + SecurityAssessmentMetadataResponseInner getInSubscription(String assessmentMetadataName); /** * 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 security assessment metadata response. + * @return security assessment metadata response along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SecurityAssessmentMetadataResponseInner createInSubscription( - String assessmentMetadataName, SecurityAssessmentMetadataResponseInner assessmentMetadata); + Response createInSubscriptionWithResponse( + String assessmentMetadataName, SecurityAssessmentMetadataResponseInner assessmentMetadata, Context context); /** * 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 security assessment metadata response along with {@link Response}. + * @return security assessment metadata response. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createInSubscriptionWithResponse( - String assessmentMetadataName, SecurityAssessmentMetadataResponseInner assessmentMetadata, Context context); + SecurityAssessmentMetadataResponseInner createInSubscription( + String assessmentMetadataName, SecurityAssessmentMetadataResponseInner assessmentMetadata); /** * 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 the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void deleteInSubscription(String assessmentMetadataName); + Response deleteInSubscriptionWithResponse(String assessmentMetadataName, Context context); /** * 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 the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteInSubscriptionWithResponse(String assessmentMetadataName, Context context); + void deleteInSubscription(String assessmentMetadataName); } 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 index 20fc64c0b7566..7d93098d7d099 100644 --- 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 @@ -39,52 +39,52 @@ 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. + * @return auto provisioning setting along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AutoProvisioningSettingInner get(String settingName); + Response getWithResponse(String settingName, Context context); /** * Details of a specific setting. * * @param settingName Auto provisioning setting key. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return auto provisioning setting along with {@link Response}. + * @return auto provisioning setting. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String settingName, Context context); + 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. + * @return auto provisioning setting along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AutoProvisioningSettingInner create(String settingName, AutoProvisioningSettingInner setting); + 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. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. + * @return auto provisioning setting. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createWithResponse( - String settingName, AutoProvisioningSettingInner setting, Context context); + AutoProvisioningSettingInner create(String settingName, AutoProvisioningSettingInner setting); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AutomationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AutomationsClient.java index 3dc571ab2398d..cfbcb6c5613d9 100644 --- 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 @@ -73,13 +73,15 @@ public interface AutomationsClient { * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param automationName The security automation name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the security automation resource. + * @return the security automation resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AutomationInner getByResourceGroup(String resourceGroupName, String automationName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String automationName, Context context); /** * Retrieves information about the model of a security automation. @@ -87,15 +89,13 @@ public interface AutomationsClient { * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param automationName The security automation name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the security automation resource along with {@link Response}. + * @return the security automation resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String automationName, Context context); + AutomationInner getByResourceGroup(String resourceGroupName, String automationName); /** * Creates or updates a security automation. If a security automation is already created and a subsequent request is @@ -105,13 +105,15 @@ Response getByResourceGroupWithResponse( * 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. + * @return the security automation resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AutomationInner createOrUpdate(String resourceGroupName, String automationName, AutomationInner automation); + 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 @@ -121,15 +123,13 @@ Response getByResourceGroupWithResponse( * 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}. + * @return the security automation resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, String automationName, AutomationInner automation, Context context); + AutomationInner createOrUpdate(String resourceGroupName, String automationName, AutomationInner automation); /** * Deletes a security automation. @@ -137,12 +137,14 @@ Response createOrUpdateWithResponse( * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param automationName The security automation name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String automationName); + Response deleteWithResponse(String resourceGroupName, String automationName, Context context); /** * Deletes a security automation. @@ -150,14 +152,12 @@ Response createOrUpdateWithResponse( * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param automationName The security automation name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse(String resourceGroupName, String automationName, Context context); + void delete(String resourceGroupName, String automationName); /** * Validates the security automation model before create or update. Any validation errors are returned to the @@ -167,14 +167,15 @@ Response createOrUpdateWithResponse( * 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. + * @return the security automation model state property bag along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AutomationValidationStatusInner validate( - String resourceGroupName, String automationName, AutomationInner automation); + 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 @@ -184,13 +185,12 @@ AutomationValidationStatusInner validate( * 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}. + * @return the security automation model state property bag. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response validateWithResponse( - String resourceGroupName, String automationName, AutomationInner automation, Context context); + AutomationValidationStatusInner validate( + String resourceGroupName, String automationName, AutomationInner automation); } 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 f818008c0fc19..834cf0990b35a 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 @@ -45,25 +45,25 @@ public interface ComplianceResultsClient { * * @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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 a compliance result along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ComplianceResultInner get(String resourceId, String complianceResultName); + Response getWithResponse(String resourceId, String complianceResultName, Context context); /** * Security Compliance Result. * * @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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 a compliance result. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceId, String complianceResultName, Context context); + ComplianceResultInner get(String resourceId, String complianceResultName); } 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 index caf2bc4ee26a1..7914ab6d42930 100644 --- 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 @@ -46,13 +46,14 @@ public interface CompliancesClient { * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or * management group (/providers/Microsoft.Management/managementGroups/mgName). * @param complianceName name of the Compliance. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return compliance of a scope. + * @return compliance of a scope along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ComplianceInner get(String scope, String complianceName); + Response getWithResponse(String scope, String complianceName, Context context); /** * Details of a specific Compliance. @@ -60,12 +61,11 @@ public interface CompliancesClient { * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or * management group (/providers/Microsoft.Management/managementGroups/mgName). * @param complianceName name of the Compliance. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return compliance of a scope along with {@link Response}. + * @return compliance of a scope. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String scope, String complianceName, Context context); + ComplianceInner get(String scope, String complianceName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ConnectorsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ConnectorsClient.java index 79ba0649f2bf7..fc3073c4ec5a4 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ConnectorsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ConnectorsClient.java @@ -41,26 +41,26 @@ public interface ConnectorsClient { * Details of a specific cloud account connector. * * @param connectorName Name of the cloud account connector. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the connector setting. + * @return the connector setting along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ConnectorSettingInner get(String connectorName); + Response getWithResponse(String connectorName, Context context); /** * Details of a specific cloud account connector. * * @param connectorName Name of the cloud account connector. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the connector setting along with {@link Response}. + * @return the connector setting. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String connectorName, Context context); + ConnectorSettingInner get(String connectorName); /** * Create a cloud account connector or update an existing one. Connect to your cloud account. For AWS, use either @@ -68,13 +68,15 @@ public interface ConnectorsClient { * * @param connectorName Name of the cloud account connector. * @param connectorSetting Settings for the cloud account connector. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the connector setting. + * @return the connector setting along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ConnectorSettingInner createOrUpdate(String connectorName, ConnectorSettingInner connectorSetting); + Response createOrUpdateWithResponse( + String connectorName, ConnectorSettingInner connectorSetting, Context context); /** * Create a cloud account connector or update an existing one. Connect to your cloud account. For AWS, use either @@ -82,37 +84,35 @@ public interface ConnectorsClient { * * @param connectorName Name of the cloud account connector. * @param connectorSetting Settings for the cloud account connector. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the connector setting along with {@link Response}. + * @return the connector setting. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String connectorName, ConnectorSettingInner connectorSetting, Context context); + ConnectorSettingInner createOrUpdate(String connectorName, ConnectorSettingInner connectorSetting); /** * Delete a cloud account connector from a subscription. * * @param connectorName Name of the cloud account connector. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String connectorName); + Response deleteWithResponse(String connectorName, Context context); /** * Delete a cloud account connector from a subscription. * * @param connectorName Name of the cloud account connector. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse(String connectorName, Context context); + void delete(String connectorName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomAssessmentAutomationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomAssessmentAutomationsClient.java index 6ec47893cf49c..cdd6a0b7a94f7 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomAssessmentAutomationsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomAssessmentAutomationsClient.java @@ -22,13 +22,16 @@ public interface CustomAssessmentAutomationsClient { * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param customAssessmentAutomationName Name of the Custom Assessment Automation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a single custom assessment automation by name for the provided subscription and resource group. + * @return a single custom assessment automation by name for the provided subscription and resource group along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - CustomAssessmentAutomationInner getByResourceGroup(String resourceGroupName, String customAssessmentAutomationName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String customAssessmentAutomationName, Context context); /** * Gets a custom assessment automation @@ -38,16 +41,13 @@ public interface CustomAssessmentAutomationsClient { * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param customAssessmentAutomationName Name of the Custom Assessment Automation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a single custom assessment automation by name for the provided subscription and resource group along with - * {@link Response}. + * @return a single custom assessment automation by name for the provided subscription and resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String customAssessmentAutomationName, Context context); + CustomAssessmentAutomationInner getByResourceGroup(String resourceGroupName, String customAssessmentAutomationName); /** * Creates a custom assessment automation @@ -59,16 +59,18 @@ Response getByResourceGroupWithResponse( * insensitive. * @param customAssessmentAutomationName Name of the Custom Assessment Automation. * @param customAssessmentAutomationBody Custom Assessment Automation body. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return custom Assessment Automation. + * @return custom Assessment Automation along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - CustomAssessmentAutomationInner create( + Response createWithResponse( String resourceGroupName, String customAssessmentAutomationName, - CustomAssessmentAutomationRequest customAssessmentAutomationBody); + CustomAssessmentAutomationRequest customAssessmentAutomationBody, + Context context); /** * Creates a custom assessment automation @@ -80,18 +82,16 @@ CustomAssessmentAutomationInner create( * insensitive. * @param customAssessmentAutomationName Name of the Custom Assessment Automation. * @param customAssessmentAutomationBody Custom Assessment Automation body. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return custom Assessment Automation along with {@link Response}. + * @return custom Assessment Automation. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createWithResponse( + CustomAssessmentAutomationInner create( String resourceGroupName, String customAssessmentAutomationName, - CustomAssessmentAutomationRequest customAssessmentAutomationBody, - Context context); + CustomAssessmentAutomationRequest customAssessmentAutomationBody); /** * Deletes a custom assessment automation @@ -101,12 +101,14 @@ Response createWithResponse( * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param customAssessmentAutomationName Name of the Custom Assessment Automation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String customAssessmentAutomationName); + Response deleteWithResponse(String resourceGroupName, String customAssessmentAutomationName, Context context); /** * Deletes a custom assessment automation @@ -116,14 +118,12 @@ Response createWithResponse( * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param customAssessmentAutomationName Name of the Custom Assessment Automation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse(String resourceGroupName, String customAssessmentAutomationName, Context context); + void delete(String resourceGroupName, String customAssessmentAutomationName); /** * List custom assessment automations in a subscription and a resource group diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomEntityStoreAssignmentsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomEntityStoreAssignmentsClient.java index eb45aec5f7508..5f7d062043ade 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomEntityStoreAssignmentsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomEntityStoreAssignmentsClient.java @@ -22,14 +22,16 @@ public interface CustomEntityStoreAssignmentsClient { * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a single custom entity store assignment by name for the provided subscription and resource group. + * @return a single custom entity store assignment by name for the provided subscription and resource group along + * with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - CustomEntityStoreAssignmentInner getByResourceGroup( - String resourceGroupName, String customEntityStoreAssignmentName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String customEntityStoreAssignmentName, Context context); /** * Gets a custom entity store assignment @@ -39,16 +41,14 @@ CustomEntityStoreAssignmentInner getByResourceGroup( * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a single custom entity store assignment by name for the provided subscription and resource group along - * with {@link Response}. + * @return a single custom entity store assignment by name for the provided subscription and resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String customEntityStoreAssignmentName, Context context); + CustomEntityStoreAssignmentInner getByResourceGroup( + String resourceGroupName, String customEntityStoreAssignmentName); /** * Creates a custom entity store assignment @@ -59,16 +59,18 @@ Response getByResourceGroupWithResponse( * insensitive. * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID. * @param customEntityStoreAssignmentRequestBody Custom entity store assignment body. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return custom entity store assignment. + * @return custom entity store assignment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - CustomEntityStoreAssignmentInner create( + Response createWithResponse( String resourceGroupName, String customEntityStoreAssignmentName, - CustomEntityStoreAssignmentRequest customEntityStoreAssignmentRequestBody); + CustomEntityStoreAssignmentRequest customEntityStoreAssignmentRequestBody, + Context context); /** * Creates a custom entity store assignment @@ -79,18 +81,16 @@ CustomEntityStoreAssignmentInner create( * insensitive. * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID. * @param customEntityStoreAssignmentRequestBody Custom entity store assignment body. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return custom entity store assignment along with {@link Response}. + * @return custom entity store assignment. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createWithResponse( + CustomEntityStoreAssignmentInner create( String resourceGroupName, String customEntityStoreAssignmentName, - CustomEntityStoreAssignmentRequest customEntityStoreAssignmentRequestBody, - Context context); + CustomEntityStoreAssignmentRequest customEntityStoreAssignmentRequestBody); /** * Deleted a custom entity store assignment @@ -100,12 +100,15 @@ Response createWithResponse( * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String customEntityStoreAssignmentName); + Response deleteWithResponse( + String resourceGroupName, String customEntityStoreAssignmentName, Context context); /** * Deleted a custom entity store assignment @@ -115,15 +118,12 @@ Response createWithResponse( * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, String customEntityStoreAssignmentName, Context context); + void delete(String resourceGroupName, String customEntityStoreAssignmentName); /** * List custom entity store assignments in a subscription and a resource group 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 655b153a06d73..e03cd1b990c0e 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 @@ -38,20 +38,6 @@ public interface DeviceSecurityGroupsClient { @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 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. - * @throws com.azure.core.management.exception.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 device security group resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DeviceSecurityGroupInner get(String resourceId, String deviceSecurityGroupName); - /** * Use this method to get the device security group for the specified IoT Hub resource. * @@ -69,20 +55,18 @@ Response getWithResponse( String resourceId, String deviceSecurityGroupName, Context context); /** - * Use this method to creates or updates the device security group on a specified IoT Hub resource. + * Use this method to get the device security group for the specified IoT Hub resource. * * @param resourceId The 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 device security group resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - DeviceSecurityGroupInner createOrUpdate( - String resourceId, String deviceSecurityGroupName, DeviceSecurityGroupInner deviceSecurityGroup); + DeviceSecurityGroupInner get(String resourceId, String deviceSecurityGroupName); /** * Use this method to creates or updates the device security group on a specified IoT Hub resource. @@ -105,17 +89,20 @@ Response createOrUpdateWithResponse( Context context); /** - * User this method to deletes the device security group. + * 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 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 device security group resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceId, String deviceSecurityGroupName); + DeviceSecurityGroupInner createOrUpdate( + String resourceId, String deviceSecurityGroupName, DeviceSecurityGroupInner deviceSecurityGroup); /** * User this method to deletes the device security group. @@ -131,4 +118,17 @@ Response createOrUpdateWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse(String resourceId, String deviceSecurityGroupName, Context context); + + /** + * User this method to deletes the device security group. + * + * @param resourceId The 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. + * @throws com.azure.core.management.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 resourceId, String deviceSecurityGroupName); } 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 89dd8c7ddaf7f..692eeaf708ccb 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 @@ -74,14 +74,15 @@ public interface DiscoveredSecuritySolutionsClient { * @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 specific discovered Security Solution along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - DiscoveredSecuritySolutionInner get( - String resourceGroupName, String ascLocation, String discoveredSecuritySolutionName); + Response getWithResponse( + String resourceGroupName, String ascLocation, String discoveredSecuritySolutionName, Context context); /** * Gets a specific discovered Security Solution. @@ -91,13 +92,12 @@ DiscoveredSecuritySolutionInner get( * @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 specific discovered Security Solution. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String ascLocation, String discoveredSecuritySolutionName, Context context); + DiscoveredSecuritySolutionInner get( + String resourceGroupName, String ascLocation, String discoveredSecuritySolutionName); } 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 af4fd44d08804..ace625003ab69 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 @@ -74,14 +74,15 @@ public interface ExternalSecuritySolutionsClient { * @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 specific external Security Solution along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ExternalSecuritySolutionInner get( - String resourceGroupName, String ascLocation, String externalSecuritySolutionsName); + Response getWithResponse( + String resourceGroupName, String ascLocation, String externalSecuritySolutionsName, Context context); /** * Gets a specific external Security Solution. @@ -91,13 +92,12 @@ ExternalSecuritySolutionInner get( * @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 specific external Security Solution. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String ascLocation, String externalSecuritySolutionsName, Context context); + ExternalSecuritySolutionInner get( + String resourceGroupName, String ascLocation, String externalSecuritySolutionsName); } 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 index 4803aa06cf7c4..611311e8ef0b1 100644 --- 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 @@ -52,13 +52,15 @@ public interface GovernanceAssignmentsClient { * @param assessmentName The Assessment Key - Unique key for the assessment type. * @param assignmentKey The security governance assignment key - the assessment key of the required governance * assignment. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specific governanceAssignment for the requested scope by AssignmentKey. + * @return a specific governanceAssignment for the requested scope by AssignmentKey along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - GovernanceAssignmentInner get(String scope, String assessmentName, String assignmentKey); + Response getWithResponse( + String scope, String assessmentName, String assignmentKey, Context context); /** * Get a specific governanceAssignment for the requested scope by AssignmentKey. @@ -68,15 +70,13 @@ public interface GovernanceAssignmentsClient { * @param assessmentName The Assessment Key - Unique key for the assessment type. * @param assignmentKey The security governance assignment key - the assessment key of the required governance * assignment. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specific governanceAssignment for the requested scope by AssignmentKey along with {@link Response}. + * @return a specific governanceAssignment for the requested scope by AssignmentKey. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String scope, String assessmentName, String assignmentKey, Context context); + GovernanceAssignmentInner get(String scope, String assessmentName, String assignmentKey); /** * Creates or update a security GovernanceAssignment on the given subscription. @@ -87,14 +87,19 @@ Response getWithResponse( * @param assignmentKey The security governance assignment key - the assessment key of the required governance * assignment. * @param governanceAssignment GovernanceAssignment 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 GovernanceAssignment over a given scope. + * @return security GovernanceAssignment over a given scope along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - GovernanceAssignmentInner createOrUpdate( - String scope, String assessmentName, String assignmentKey, GovernanceAssignmentInner governanceAssignment); + Response createOrUpdateWithResponse( + String scope, + String assessmentName, + String assignmentKey, + GovernanceAssignmentInner governanceAssignment, + Context context); /** * Creates or update a security GovernanceAssignment on the given subscription. @@ -105,19 +110,14 @@ GovernanceAssignmentInner createOrUpdate( * @param assignmentKey The security governance assignment key - the assessment key of the required governance * assignment. * @param governanceAssignment GovernanceAssignment 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 GovernanceAssignment over a given scope along with {@link Response}. + * @return security GovernanceAssignment over a given scope. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String scope, - String assessmentName, - String assignmentKey, - GovernanceAssignmentInner governanceAssignment, - Context context); + GovernanceAssignmentInner createOrUpdate( + String scope, String assessmentName, String assignmentKey, GovernanceAssignmentInner governanceAssignment); /** * Delete a GovernanceAssignment over a given scope. @@ -127,12 +127,14 @@ Response createOrUpdateWithResponse( * @param assessmentName The Assessment Key - Unique key for the assessment type. * @param assignmentKey The security governance assignment key - the assessment key of the required governance * assignment. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String scope, String assessmentName, String assignmentKey); + Response deleteWithResponse(String scope, String assessmentName, String assignmentKey, Context context); /** * Delete a GovernanceAssignment over a given scope. @@ -142,12 +144,10 @@ Response createOrUpdateWithResponse( * @param assessmentName The Assessment Key - Unique key for the assessment type. * @param assignmentKey The security governance assignment key - the assessment key of the required governance * assignment. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse(String scope, String assessmentName, String assignmentKey, Context context); + void delete(String scope, String assessmentName, String assignmentKey); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceRulesOperationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceRulesOperationsClient.java index 1349ed21eaaa3..e178e1f24eaf3 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceRulesOperationsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceRulesOperationsClient.java @@ -15,18 +15,6 @@ /** An instance of this class provides access to all the operations defined in GovernanceRulesOperationsClient. */ public interface GovernanceRulesOperationsClient { - /** - * Get a specific governanceRule for the requested scope by ruleId. - * - * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 governanceRule for the requested scope by ruleId. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - GovernanceRuleInner get(String ruleId); - /** * Get a specific governanceRule for the requested scope by ruleId. * @@ -41,17 +29,16 @@ public interface GovernanceRulesOperationsClient { Response getWithResponse(String ruleId, Context context); /** - * Creates or update a security GovernanceRule on the given subscription. + * Get a specific governanceRule for the requested scope by ruleId. * * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. - * @param governanceRule GovernanceRule 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 GovernanceRule over a given scope. + * @return a specific governanceRule for the requested scope by ruleId. */ @ServiceMethod(returns = ReturnType.SINGLE) - GovernanceRuleInner createOrUpdate(String ruleId, GovernanceRuleInner governanceRule); + GovernanceRuleInner get(String ruleId); /** * Creates or update a security GovernanceRule on the given subscription. @@ -69,15 +56,17 @@ Response createOrUpdateWithResponse( String ruleId, GovernanceRuleInner governanceRule, Context context); /** - * Delete a GovernanceRule over a given scope. + * Creates or update a security GovernanceRule on the given subscription. * * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. + * @param governanceRule GovernanceRule 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 GovernanceRule over a given scope. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String ruleId); + GovernanceRuleInner createOrUpdate(String ruleId, GovernanceRuleInner governanceRule); /** * Delete a GovernanceRule over a given scope. @@ -93,45 +82,42 @@ Response createOrUpdateWithResponse( Response deleteWithResponse(String ruleId, Context context); /** - * Execute a security GovernanceRule on the given subscription. + * Delete a GovernanceRule over a given scope. * * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. - * @param executeGovernanceRuleParams GovernanceRule 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 the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRuleIdExecuteSingleSubscription( - String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams); + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String ruleId); /** * Execute a security GovernanceRule on the given subscription. * * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. - * @param executeGovernanceRuleParams GovernanceRule 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 the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRuleIdExecuteSingleSubscription( - String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams, Context context); + SyncPoller, Void> beginRuleIdExecuteSingleSubscription(String ruleId); /** * Execute a security GovernanceRule on the given subscription. * * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. * @param executeGovernanceRuleParams GovernanceRule 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 the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void ruleIdExecuteSingleSubscription(String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginRuleIdExecuteSingleSubscription( + String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams, Context context); /** * Execute a security GovernanceRule on the given subscription. @@ -165,7 +151,6 @@ void ruleIdExecuteSingleSubscription( * insensitive. * @param securityConnectorName The security connector name. * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. - * @param executeGovernanceRuleParams GovernanceRule 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. @@ -173,10 +158,7 @@ void ruleIdExecuteSingleSubscription( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginRuleIdExecuteSingleSecurityConnector( - String resourceGroupName, - String securityConnectorName, - String ruleId, - ExecuteGovernanceRuleParams executeGovernanceRuleParams); + String resourceGroupName, String securityConnectorName, String ruleId); /** * Execute a security GovernanceRule on the given security connector. @@ -200,25 +182,6 @@ SyncPoller, Void> beginRuleIdExecuteSingleSecurityConnector( ExecuteGovernanceRuleParams executeGovernanceRuleParams, Context context); - /** - * Execute a security GovernanceRule on the given security connector. - * - * @param resourceGroupName The name of the resource group within the user's subscription. The name is case - * insensitive. - * @param securityConnectorName The security connector name. - * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. - * @param executeGovernanceRuleParams GovernanceRule 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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void ruleIdExecuteSingleSecurityConnector( - String resourceGroupName, - String securityConnectorName, - String ruleId, - ExecuteGovernanceRuleParams executeGovernanceRuleParams); - /** * Execute a security GovernanceRule on the given security connector. * 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 index 330110c0857ac..a43e048fb2faf 100644 --- 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 @@ -20,13 +20,15 @@ public interface InformationProtectionPoliciesClient { * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or * management group (/providers/Microsoft.Management/managementGroups/mgName). * @param informationProtectionPolicyName Name of the information protection policy. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information protection policy. + * @return information protection policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - InformationProtectionPolicyInner get(String scope, InformationProtectionPolicyName informationProtectionPolicyName); + Response getWithResponse( + String scope, InformationProtectionPolicyName informationProtectionPolicyName, Context context); /** * Details of the information protection policy. @@ -34,15 +36,13 @@ public interface InformationProtectionPoliciesClient { * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or * management group (/providers/Microsoft.Management/managementGroups/mgName). * @param informationProtectionPolicyName Name of the information protection policy. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information protection policy along with {@link Response}. + * @return information protection policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String scope, InformationProtectionPolicyName informationProtectionPolicyName, Context context); + InformationProtectionPolicyInner get(String scope, InformationProtectionPolicyName informationProtectionPolicyName); /** * Details of the information protection policy. @@ -51,16 +51,18 @@ Response getWithResponse( * management group (/providers/Microsoft.Management/managementGroups/mgName). * @param informationProtectionPolicyName Name of the information protection policy. * @param informationProtectionPolicy Information protection policy. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information protection policy. + * @return information protection policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - InformationProtectionPolicyInner createOrUpdate( + Response createOrUpdateWithResponse( String scope, InformationProtectionPolicyName informationProtectionPolicyName, - InformationProtectionPolicyInner informationProtectionPolicy); + InformationProtectionPolicyInner informationProtectionPolicy, + Context context); /** * Details of the information protection policy. @@ -69,18 +71,16 @@ InformationProtectionPolicyInner createOrUpdate( * management group (/providers/Microsoft.Management/managementGroups/mgName). * @param informationProtectionPolicyName Name of the information protection policy. * @param informationProtectionPolicy Information protection policy. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information protection policy along with {@link Response}. + * @return information protection policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( + InformationProtectionPolicyInner createOrUpdate( String scope, InformationProtectionPolicyName informationProtectionPolicyName, - InformationProtectionPolicyInner informationProtectionPolicy, - Context context); + InformationProtectionPolicyInner informationProtectionPolicy); /** * Information protection policies of a specific management group. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IngestionSettingsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IngestionSettingsClient.java index 8c9a31992fbf8..c0765e68586c8 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IngestionSettingsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IngestionSettingsClient.java @@ -37,18 +37,6 @@ public interface IngestionSettingsClient { @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); - /** - * Settings for ingesting security data and logs to correlate with resources associated with the subscription. - * - * @param ingestionSettingName Name of the ingestion setting. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return configures how to correlate scan data and logs with resources associated with the subscription. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - IngestionSettingInner get(String ingestionSettingName); - /** * Settings for ingesting security data and logs to correlate with resources associated with the subscription. * @@ -64,17 +52,16 @@ public interface IngestionSettingsClient { Response getWithResponse(String ingestionSettingName, Context context); /** - * Create setting for ingesting security data and logs to correlate with resources associated with the subscription. + * Settings for ingesting security data and logs to correlate with resources associated with the subscription. * * @param ingestionSettingName Name of the ingestion setting. - * @param ingestionSetting Ingestion setting object. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return configures how to correlate scan data and logs with resources associated with the subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - IngestionSettingInner create(String ingestionSettingName, IngestionSettingInner ingestionSetting); + IngestionSettingInner get(String ingestionSettingName); /** * Create setting for ingesting security data and logs to correlate with resources associated with the subscription. @@ -93,15 +80,17 @@ Response createWithResponse( String ingestionSettingName, IngestionSettingInner ingestionSetting, Context context); /** - * Deletes the ingestion settings for this subscription. + * Create setting for ingesting security data and logs to correlate with resources associated with the subscription. * * @param ingestionSettingName Name of the ingestion setting. + * @param ingestionSetting Ingestion setting object. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return configures how to correlate scan data and logs with resources associated with the subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String ingestionSettingName); + IngestionSettingInner create(String ingestionSettingName, IngestionSettingInner ingestionSetting); /** * Deletes the ingestion settings for this subscription. @@ -117,16 +106,15 @@ Response createWithResponse( Response deleteWithResponse(String ingestionSettingName, Context context); /** - * Returns the token that is used for correlating ingested telemetry with the resources in the subscription. + * Deletes the ingestion settings for this subscription. * * @param ingestionSettingName Name of the ingestion setting. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return configures how to correlate scan data and logs with resources associated with the subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - IngestionSettingTokenInner listTokens(String ingestionSettingName); + void delete(String ingestionSettingName); /** * Returns the token that is used for correlating ingested telemetry with the resources in the subscription. @@ -143,16 +131,16 @@ Response createWithResponse( Response listTokensWithResponse(String ingestionSettingName, Context context); /** - * Connection strings for ingesting security scan logs and data. + * Returns the token that is used for correlating ingested telemetry with the resources in the subscription. * * @param ingestionSettingName Name of the ingestion setting. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connection string for ingesting security data and logs. + * @return configures how to correlate scan data and logs with resources associated with the subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - ConnectionStringsInner listConnectionStrings(String ingestionSettingName); + IngestionSettingTokenInner listTokens(String ingestionSettingName); /** * Connection strings for ingesting security scan logs and data. @@ -166,4 +154,16 @@ Response createWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) Response listConnectionStringsWithResponse(String ingestionSettingName, Context context); + + /** + * Connection strings for ingesting security scan logs and data. + * + * @param ingestionSettingName Name of the ingestion setting. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connection string for ingesting security data and logs. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ConnectionStringsInner listConnectionStrings(String ingestionSettingName); } 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 6510a19b52925..25a019f2f016c 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 @@ -19,13 +19,15 @@ public interface IotSecuritySolutionAnalyticsClient { * @param resourceGroupName The name of the resource group within the user's subscription. 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. + * @return list of Security analytics of your IoT Security solution along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - IoTSecuritySolutionAnalyticsModelListInner list(String resourceGroupName, String solutionName); + Response listWithResponse( + String resourceGroupName, String solutionName, Context context); /** * Use this method to get IoT security Analytics metrics in an array. @@ -33,15 +35,13 @@ public interface IotSecuritySolutionAnalyticsClient { * @param resourceGroupName The name of the resource group within the user's subscription. 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 list of Security analytics of your IoT Security solution. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listWithResponse( - String resourceGroupName, String solutionName, Context context); + IoTSecuritySolutionAnalyticsModelListInner list(String resourceGroupName, String solutionName); /** * Use this method to get IoT Security Analytics metrics. @@ -49,13 +49,15 @@ Response listWithResponse( * @param resourceGroupName The name of the resource group within the user's subscription. 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. + * @return security analytics of your IoT Security solution along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - IoTSecuritySolutionAnalyticsModelInner get(String resourceGroupName, String solutionName); + Response getWithResponse( + String resourceGroupName, String solutionName, Context context); /** * Use this method to get IoT Security Analytics metrics. @@ -63,13 +65,11 @@ Response listWithResponse( * @param resourceGroupName The name of the resource group within the user's subscription. 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 security analytics of your IoT Security solution. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String solutionName, Context context); + IoTSecuritySolutionAnalyticsModelInner get(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 8c099ffa53756..1ea68d2ece5c7 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 @@ -55,13 +55,15 @@ PagedIterable list( * 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. + * @return security Solution Aggregated Alert information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - IoTSecurityAggregatedAlertInner get(String resourceGroupName, String solutionName, String aggregatedAlertName); + Response getWithResponse( + String resourceGroupName, String solutionName, String aggregatedAlertName, Context context); /** * Use this method to get a single the aggregated alert of yours IoT Security solution. This aggregation is @@ -71,15 +73,13 @@ PagedIterable list( * 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 security Solution Aggregated Alert information. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String solutionName, String aggregatedAlertName, Context context); + IoTSecurityAggregatedAlertInner get(String resourceGroupName, String solutionName, String aggregatedAlertName); /** * Use this method to dismiss an aggregated IoT Security Solution Alert. @@ -88,12 +88,15 @@ Response getWithResponse( * 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 the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void dismiss(String resourceGroupName, String solutionName, String aggregatedAlertName); + Response dismissWithResponse( + String resourceGroupName, String solutionName, String aggregatedAlertName, Context context); /** * Use this method to dismiss an aggregated IoT Security Solution Alert. @@ -102,13 +105,10 @@ Response getWithResponse( * 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 the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response dismissWithResponse( - String resourceGroupName, String solutionName, String aggregatedAlertName, Context context); + void dismiss(String resourceGroupName, String solutionName, String aggregatedAlertName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionsAnalyticsRecommendationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionsAnalyticsRecommendationsClient.java index bc4e6c3923388..1e534a2b033ea 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionsAnalyticsRecommendationsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionsAnalyticsRecommendationsClient.java @@ -24,14 +24,15 @@ public interface IotSecuritySolutionsAnalyticsRecommendationsClient { * insensitive. * @param solutionName The name of the IoT Security solution. * @param aggregatedRecommendationName Name of the recommendation aggregated for this query. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return ioT Security solution recommendation information. + * @return ioT Security solution recommendation information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - IoTSecurityAggregatedRecommendationInner get( - String resourceGroupName, String solutionName, String aggregatedRecommendationName); + Response getWithResponse( + String resourceGroupName, String solutionName, String aggregatedRecommendationName, Context context); /** * Use this method to get the aggregated security analytics recommendation of yours IoT Security solution. This @@ -41,15 +42,14 @@ IoTSecurityAggregatedRecommendationInner get( * insensitive. * @param solutionName The name of the IoT Security solution. * @param aggregatedRecommendationName Name of the recommendation aggregated for this query. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return ioT Security solution recommendation information along with {@link Response}. + * @return ioT Security solution recommendation information. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String solutionName, String aggregatedRecommendationName, Context context); + IoTSecurityAggregatedRecommendationInner get( + String resourceGroupName, String solutionName, String aggregatedRecommendationName); /** * Use this method to get the list of aggregated security analytics recommendations of yours IoT Security solution. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionsClient.java index 47cc6aaef08f8..140ffd6f2f623 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionsClient.java @@ -66,20 +66,6 @@ public interface IotSecuritySolutionsClient { PagedIterable listByResourceGroup( String resourceGroupName, String filter, Context context); - /** - * User this method to get details of a specific IoT Security solution based on solution name. - * - * @param resourceGroupName The name of the resource group within the user's subscription. 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 ioT Security solution configuration and resource information. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - IoTSecuritySolutionModelInner getByResourceGroup(String resourceGroupName, String solutionName); - /** * User this method to get details of a specific IoT Security solution based on solution name. * @@ -97,20 +83,18 @@ Response getByResourceGroupWithResponse( String resourceGroupName, String solutionName, Context context); /** - * Use this method to create or update yours IoT Security solution. + * User this method to get details of a specific IoT Security solution based on solution name. * * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param solutionName The name of the IoT Security solution. - * @param iotSecuritySolutionData The security solution data. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return ioT Security solution configuration and resource information. */ @ServiceMethod(returns = ReturnType.SINGLE) - IoTSecuritySolutionModelInner createOrUpdate( - String resourceGroupName, String solutionName, IoTSecuritySolutionModelInner iotSecuritySolutionData); + IoTSecuritySolutionModelInner getByResourceGroup(String resourceGroupName, String solutionName); /** * Use this method to create or update yours IoT Security solution. @@ -133,21 +117,20 @@ Response createOrUpdateWithResponse( Context context); /** - * Use this method to update existing IoT Security solution tags or user defined resources. To update other fields - * use the CreateOrUpdate method. + * Use this method to create or update yours IoT Security solution. * * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param solutionName The name of the IoT Security solution. - * @param updateIotSecuritySolutionData The security solution data. + * @param iotSecuritySolutionData The security solution data. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return ioT Security solution configuration and resource information. */ @ServiceMethod(returns = ReturnType.SINGLE) - IoTSecuritySolutionModelInner update( - String resourceGroupName, String solutionName, UpdateIotSecuritySolutionData updateIotSecuritySolutionData); + IoTSecuritySolutionModelInner createOrUpdate( + String resourceGroupName, String solutionName, IoTSecuritySolutionModelInner iotSecuritySolutionData); /** * Use this method to update existing IoT Security solution tags or user defined resources. To update other fields @@ -171,17 +154,21 @@ Response updateWithResponse( Context context); /** - * Use this method to delete yours IoT Security solution. + * Use this method to update existing IoT Security solution tags or user defined resources. To update other fields + * use the CreateOrUpdate method. * * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param solutionName The name of the IoT Security solution. + * @param updateIotSecuritySolutionData The security solution data. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return ioT Security solution configuration and resource information. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String solutionName); + IoTSecuritySolutionModelInner update( + String resourceGroupName, String solutionName, UpdateIotSecuritySolutionData updateIotSecuritySolutionData); /** * Use this method to delete yours IoT Security solution. @@ -197,4 +184,17 @@ Response updateWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse(String resourceGroupName, String solutionName, Context context); + + /** + * Use this method to delete yours IoT Security solution. + * + * @param resourceGroupName The name of the resource group within the user's subscription. 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String solutionName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/JitNetworkAccessPoliciesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/JitNetworkAccessPoliciesClient.java index 8cfaff49d8c26..3170b606a0ed5 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/JitNetworkAccessPoliciesClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/JitNetworkAccessPoliciesClient.java @@ -132,13 +132,15 @@ PagedIterable listByResourceGroupAndRegion( * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration 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 the response. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - JitNetworkAccessPolicyInner get(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName); + Response getWithResponse( + String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, Context context); /** * Policies for protecting resources using Just-in-Time access control for the subscription, location. @@ -148,15 +150,13 @@ PagedIterable listByResourceGroupAndRegion( * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration 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 the response body along with {@link Response}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, Context context); + JitNetworkAccessPolicyInner get(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName); /** * Create a policy for protecting resources using Just-in-Time access control. @@ -167,17 +167,19 @@ Response getWithResponse( * locations. * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. * @param body The body 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 the response. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - JitNetworkAccessPolicyInner createOrUpdate( + Response createOrUpdateWithResponse( String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, - JitNetworkAccessPolicyInner body); + JitNetworkAccessPolicyInner body, + Context context); /** * Create a policy for protecting resources using Just-in-Time access control. @@ -188,19 +190,17 @@ JitNetworkAccessPolicyInner createOrUpdate( * locations. * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. * @param body The body 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 the response body along with {@link Response}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( + JitNetworkAccessPolicyInner createOrUpdate( String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, - JitNetworkAccessPolicyInner body, - Context context); + JitNetworkAccessPolicyInner body); /** * Delete a Just-in-Time access control policy. @@ -210,12 +210,15 @@ Response createOrUpdateWithResponse( * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration 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 the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName); + Response deleteWithResponse( + String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, Context context); /** * Delete a Just-in-Time access control policy. @@ -225,15 +228,12 @@ Response createOrUpdateWithResponse( * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration 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 the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, Context context); + void delete(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName); /** * Initiate a JIT access from a specific Just-in-Time policy configuration. @@ -244,17 +244,19 @@ Response deleteWithResponse( * locations. * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. * @param body The body 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 the response. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - JitNetworkAccessRequestInner initiate( + Response initiateWithResponse( String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, - JitNetworkAccessPolicyInitiateRequest body); + JitNetworkAccessPolicyInitiateRequest body, + Context context); /** * Initiate a JIT access from a specific Just-in-Time policy configuration. @@ -265,17 +267,15 @@ JitNetworkAccessRequestInner initiate( * locations. * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. * @param body The body 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 the response body along with {@link Response}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response initiateWithResponse( + JitNetworkAccessRequestInner initiate( String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, - JitNetworkAccessPolicyInitiateRequest body, - Context context); + JitNetworkAccessPolicyInitiateRequest body); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/LocationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/LocationsClient.java index e7bb6fe5268f1..9215df9982263 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/LocationsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/LocationsClient.java @@ -44,25 +44,25 @@ public interface LocationsClient { * * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the ASC location of the subscription is in the "name" field. + * @return the ASC location of the subscription is in the "name" field along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AscLocationInner get(String ascLocation); + Response getWithResponse(String ascLocation, Context context); /** * Details of a specific location. * * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the ASC location of the subscription is in the "name" field along with {@link Response}. + * @return the ASC location of the subscription is in the "name" field. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String ascLocation, Context context); + AscLocationInner get(String ascLocation); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/MdeOnboardingsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/MdeOnboardingsClient.java index dd967b001c2ef..f1a31c9a245a4 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/MdeOnboardingsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/MdeOnboardingsClient.java @@ -13,16 +13,6 @@ /** An instance of this class provides access to all the operations defined in MdeOnboardingsClient. */ public interface MdeOnboardingsClient { - /** - * The configuration or data needed to onboard the machine to MDE. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of all MDE onboarding data resources. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - MdeOnboardingDataListInner list(); - /** * The configuration or data needed to onboard the machine to MDE. * @@ -36,14 +26,14 @@ public interface MdeOnboardingsClient { Response listWithResponse(Context context); /** - * The default configuration or data needed to onboard the machine to MDE. + * The configuration or data needed to onboard the machine to MDE. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the resource of the configuration or data needed to onboard the machine to MDE. + * @return list of all MDE onboarding data resources. */ @ServiceMethod(returns = ReturnType.SINGLE) - MdeOnboardingDataInner get(); + MdeOnboardingDataListInner list(); /** * The default configuration or data needed to onboard the machine to MDE. @@ -57,4 +47,14 @@ public interface MdeOnboardingsClient { */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse(Context context); + + /** + * The default configuration or data needed to onboard the machine to MDE. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the resource of the configuration or data needed to onboard the machine to MDE. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MdeOnboardingDataInner get(); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/PricingsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/PricingsClient.java index 510edc4d0869f..7179613a2b17c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/PricingsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/PricingsClient.java @@ -16,77 +16,77 @@ public interface PricingsClient { /** * Lists Microsoft Defender for Cloud pricing configurations in 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 pricing configurations response. + * @return list of pricing configurations response along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PricingListInner list(); + Response listWithResponse(Context context); /** * Lists Microsoft Defender for Cloud pricing configurations in 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 pricing configurations response along with {@link Response}. + * @return list of pricing configurations response. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listWithResponse(Context context); + PricingListInner list(); /** * Gets a provided Microsoft Defender for Cloud pricing configuration in the subscription. * * @param pricingName name of the pricing configuration. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a provided Microsoft Defender for Cloud pricing configuration in the subscription. + * @return a provided Microsoft Defender for Cloud pricing configuration in the subscription along with {@link + * Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PricingInner get(String pricingName); + Response getWithResponse(String pricingName, Context context); /** * Gets a provided Microsoft Defender for Cloud pricing configuration in the subscription. * * @param pricingName name of the pricing configuration. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a provided Microsoft Defender for Cloud pricing configuration in the subscription along with {@link - * Response}. + * @return a provided Microsoft Defender for Cloud pricing configuration in the subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String pricingName, Context context); + PricingInner get(String pricingName); /** * Updates a provided Microsoft Defender for Cloud pricing configuration in the subscription. * * @param pricingName name of the pricing configuration. * @param pricing Pricing 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 microsoft Defender for Cloud is provided in two pricing tiers: free and standard, with the standard tier - * available with a trial period. + * available with a trial period along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PricingInner update(String pricingName, PricingInner pricing); + Response updateWithResponse(String pricingName, PricingInner pricing, Context context); /** * Updates a provided Microsoft Defender for Cloud pricing configuration in the subscription. * * @param pricingName name of the pricing configuration. * @param pricing Pricing 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 microsoft Defender for Cloud is provided in two pricing tiers: free and standard, with the standard tier - * available with a trial period along with {@link Response}. + * available with a trial period. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse(String pricingName, PricingInner pricing, Context context); + PricingInner update(String pricingName, PricingInner pricing); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceAssessmentsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceAssessmentsClient.java index 76eab2ac3280f..fb3daa044da5a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceAssessmentsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceAssessmentsClient.java @@ -52,16 +52,18 @@ PagedIterable list( * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object. * @param regulatoryComplianceControlName Name of the regulatory compliance control object. * @param regulatoryComplianceAssessmentName Name of the regulatory compliance assessment object. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return regulatory compliance assessment details and state. + * @return regulatory compliance assessment details and state along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - RegulatoryComplianceAssessmentInner get( + Response getWithResponse( String regulatoryComplianceStandardName, String regulatoryComplianceControlName, - String regulatoryComplianceAssessmentName); + String regulatoryComplianceAssessmentName, + Context context); /** * Supported regulatory compliance details and state for selected assessment. @@ -69,16 +71,14 @@ RegulatoryComplianceAssessmentInner get( * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object. * @param regulatoryComplianceControlName Name of the regulatory compliance control object. * @param regulatoryComplianceAssessmentName Name of the regulatory compliance assessment object. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return regulatory compliance assessment details and state along with {@link Response}. + * @return regulatory compliance assessment details and state. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( + RegulatoryComplianceAssessmentInner get( String regulatoryComplianceStandardName, String regulatoryComplianceControlName, - String regulatoryComplianceAssessmentName, - Context context); + String regulatoryComplianceAssessmentName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceControlsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceControlsClient.java index 3722f0bd2c5be..d7f732d0cdb62 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceControlsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceControlsClient.java @@ -45,27 +45,27 @@ PagedIterable list( * * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object. * @param regulatoryComplianceControlName Name of the regulatory compliance control object. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return regulatory compliance control details and state. + * @return regulatory compliance control details and state along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - RegulatoryComplianceControlInner get( - String regulatoryComplianceStandardName, String regulatoryComplianceControlName); + Response getWithResponse( + String regulatoryComplianceStandardName, String regulatoryComplianceControlName, Context context); /** * Selected regulatory compliance control details and state. * * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object. * @param regulatoryComplianceControlName Name of the regulatory compliance control object. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return regulatory compliance control details and state along with {@link Response}. + * @return regulatory compliance control details and state. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String regulatoryComplianceStandardName, String regulatoryComplianceControlName, Context context); + RegulatoryComplianceControlInner get( + String regulatoryComplianceStandardName, String regulatoryComplianceControlName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceStandardsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceStandardsClient.java index e3f34b0e10b71..8bb55a3a903c3 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceStandardsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceStandardsClient.java @@ -40,25 +40,25 @@ public interface RegulatoryComplianceStandardsClient { * Supported regulatory compliance details state for selected standard. * * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return regulatory compliance standard details and state. + * @return regulatory compliance standard details and state along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - RegulatoryComplianceStandardInner get(String regulatoryComplianceStandardName); + Response getWithResponse( + String regulatoryComplianceStandardName, Context context); /** * Supported regulatory compliance details state for selected standard. * * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return regulatory compliance standard details and state along with {@link Response}. + * @return regulatory compliance standard details and state. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String regulatoryComplianceStandardName, Context context); + RegulatoryComplianceStandardInner get(String regulatoryComplianceStandardName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecureScoresClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecureScoresClient.java index b101e8c1fe43d..777ef62405f00 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecureScoresClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecureScoresClient.java @@ -41,13 +41,15 @@ public interface SecureScoresClient { * * @param secureScoreName The initiative name. For the ASC Default initiative, use 'ascScore' as in the sample * request below. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return secure score for a specific Microsoft Defender for Cloud initiative within your current scope. + * @return secure score for a specific Microsoft Defender for Cloud initiative within your current scope along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SecureScoreItemInner get(String secureScoreName); + Response getWithResponse(String secureScoreName, Context context); /** * Get secure score for a specific Microsoft Defender for Cloud initiative within your current scope. For the ASC @@ -55,13 +57,11 @@ public interface SecureScoresClient { * * @param secureScoreName The initiative name. For the ASC Default initiative, use 'ascScore' as in the sample * request below. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return secure score for a specific Microsoft Defender for Cloud initiative within your current scope along with - * {@link Response}. + * @return secure score for a specific Microsoft Defender for Cloud initiative within your current scope. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String secureScoreName, Context context); + SecureScoreItemInner get(String secureScoreName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorApplicationOperationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorApplicationOperationsClient.java index 340a08892400e..019e8eefacc01 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorApplicationOperationsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorApplicationOperationsClient.java @@ -15,21 +15,6 @@ * SecurityConnectorApplicationOperationsClient. */ public interface SecurityConnectorApplicationOperationsClient { - /** - * Get a specific application for the requested scope by applicationId. - * - * @param resourceGroupName The name of the resource group within the user's subscription. The name is case - * insensitive. - * @param securityConnectorName The security connector name. - * @param applicationId The security Application key - unique key for the standard application. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specific application for the requested scope by applicationId. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ApplicationInner get(String resourceGroupName, String securityConnectorName, String applicationId); - /** * Get a specific application for the requested scope by applicationId. * @@ -48,21 +33,19 @@ Response getWithResponse( String resourceGroupName, String securityConnectorName, String applicationId, Context context); /** - * Creates or update a security Application on the given security connector. + * Get a specific application for the requested scope by applicationId. * * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param securityConnectorName The security connector name. * @param applicationId The security Application key - unique key for the standard application. - * @param 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. + * @return a specific application for the requested scope by applicationId. */ @ServiceMethod(returns = ReturnType.SINGLE) - ApplicationInner createOrUpdate( - String resourceGroupName, String securityConnectorName, String applicationId, ApplicationInner application); + ApplicationInner get(String resourceGroupName, String securityConnectorName, String applicationId); /** * Creates or update a security Application on the given security connector. @@ -87,18 +70,21 @@ Response createOrUpdateWithResponse( Context context); /** - * Delete an Application over a given scope. + * Creates or update a security Application on the given security connector. * * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param securityConnectorName The security connector name. * @param applicationId The security Application key - unique key for the standard application. + * @param application Application over a subscription scope. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return security Application over a given scope. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String securityConnectorName, String applicationId); + ApplicationInner createOrUpdate( + String resourceGroupName, String securityConnectorName, String applicationId, ApplicationInner application); /** * Delete an Application over a given scope. @@ -116,4 +102,18 @@ Response createOrUpdateWithResponse( @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse( String resourceGroupName, String securityConnectorName, String applicationId, Context context); + + /** + * Delete an Application over a given scope. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param securityConnectorName The security connector name. + * @param applicationId The security Application key - unique key for the standard application. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String securityConnectorName, String applicationId); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorGovernanceRulesOperationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorGovernanceRulesOperationsClient.java index 4113042a21551..f2963ac0d5842 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorGovernanceRulesOperationsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorGovernanceRulesOperationsClient.java @@ -15,21 +15,6 @@ * SecurityConnectorGovernanceRulesOperationsClient. */ public interface SecurityConnectorGovernanceRulesOperationsClient { - /** - * Get a specific governanceRule for the requested scope by ruleId. - * - * @param resourceGroupName The name of the resource group within the user's subscription. The name is case - * insensitive. - * @param securityConnectorName The security connector name. - * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 governanceRule for the requested scope by ruleId. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - GovernanceRuleInner get(String resourceGroupName, String securityConnectorName, String ruleId); - /** * Get a specific governanceRule for the requested scope by ruleId. * @@ -48,21 +33,19 @@ Response getWithResponse( String resourceGroupName, String securityConnectorName, String ruleId, Context context); /** - * Creates or update a security GovernanceRule on the given security connector. + * Get a specific governanceRule for the requested scope by ruleId. * * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param securityConnectorName The security connector name. * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. - * @param governanceRule GovernanceRule 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 GovernanceRule over a given scope. + * @return a specific governanceRule for the requested scope by ruleId. */ @ServiceMethod(returns = ReturnType.SINGLE) - GovernanceRuleInner createOrUpdate( - String resourceGroupName, String securityConnectorName, String ruleId, GovernanceRuleInner governanceRule); + GovernanceRuleInner get(String resourceGroupName, String securityConnectorName, String ruleId); /** * Creates or update a security GovernanceRule on the given security connector. @@ -87,18 +70,21 @@ Response createOrUpdateWithResponse( Context context); /** - * Delete a GovernanceRule over a given scope. + * Creates or update a security GovernanceRule on the given security connector. * * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param securityConnectorName The security connector name. * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. + * @param governanceRule GovernanceRule 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 GovernanceRule over a given scope. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String securityConnectorName, String ruleId); + GovernanceRuleInner createOrUpdate( + String resourceGroupName, String securityConnectorName, String ruleId, GovernanceRuleInner governanceRule); /** * Delete a GovernanceRule over a given scope. @@ -116,4 +102,18 @@ Response createOrUpdateWithResponse( @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse( String resourceGroupName, String securityConnectorName, String ruleId, Context context); + + /** + * Delete a GovernanceRule over a given scope. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param securityConnectorName The security connector name. + * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String securityConnectorName, String ruleId); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorsClient.java index a1af013c36902..a1a51a3fcf9cb 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorsClient.java @@ -66,20 +66,6 @@ public interface SecurityConnectorsClient { @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); - /** - * Retrieves details of a specific security connector. - * - * @param resourceGroupName The name of the resource group within the user's subscription. The name is case - * insensitive. - * @param securityConnectorName The security connector name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the security connector resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - SecurityConnectorInner getByResourceGroup(String resourceGroupName, String securityConnectorName); - /** * Retrieves details of a specific security connector. * @@ -97,21 +83,18 @@ Response getByResourceGroupWithResponse( String resourceGroupName, String securityConnectorName, Context context); /** - * Creates or updates a security connector. If a security connector is already created and a subsequent request is - * issued for the same security connector id, then it will be updated. + * Retrieves details of a specific security connector. * * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param securityConnectorName The security connector name. - * @param securityConnector The security connector resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the security connector resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - SecurityConnectorInner createOrUpdate( - String resourceGroupName, String securityConnectorName, SecurityConnectorInner securityConnector); + SecurityConnectorInner getByResourceGroup(String resourceGroupName, String securityConnectorName); /** * Creates or updates a security connector. If a security connector is already created and a subsequent request is @@ -135,7 +118,8 @@ Response createOrUpdateWithResponse( Context context); /** - * Updates a security connector. + * Creates or updates a security connector. If a security connector is already created and a subsequent request is + * issued for the same security connector id, then it will be updated. * * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. @@ -147,7 +131,7 @@ Response createOrUpdateWithResponse( * @return the security connector resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - SecurityConnectorInner update( + SecurityConnectorInner createOrUpdate( String resourceGroupName, String securityConnectorName, SecurityConnectorInner securityConnector); /** @@ -171,17 +155,20 @@ Response updateWithResponse( Context context); /** - * Deletes a security connector. + * Updates a security connector. * * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param securityConnectorName The security connector name. + * @param securityConnector The security connector resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the security connector resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String securityConnectorName); + SecurityConnectorInner update( + String resourceGroupName, String securityConnectorName, SecurityConnectorInner securityConnector); /** * Deletes a security connector. @@ -197,4 +184,17 @@ Response updateWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse(String resourceGroupName, String securityConnectorName, Context context); + + /** + * Deletes a security connector. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param securityConnectorName The security connector name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String securityConnectorName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityContactsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityContactsClient.java index ff28397622247..ab1c6851f948f 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityContactsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityContactsClient.java @@ -39,77 +39,77 @@ public interface SecurityContactsClient { * Get Default Security contact configurations for the subscription. * * @param securityContactName Name of the security contact object. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return default Security contact configurations for the subscription. + * @return default Security contact configurations for the subscription along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SecurityContactInner get(String securityContactName); + Response getWithResponse(String securityContactName, Context context); /** * Get Default Security contact configurations for the subscription. * * @param securityContactName Name of the security contact object. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return default Security contact configurations for the subscription along with {@link Response}. + * @return default Security contact configurations for the subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String securityContactName, Context context); + SecurityContactInner get(String securityContactName); /** * Create security contact configurations for the subscription. * * @param securityContactName Name of the security contact object. * @param securityContact Security contact object. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return contact details and configurations for notifications coming from Microsoft Defender for Cloud. + * @return contact details and configurations for notifications coming from Microsoft Defender for Cloud along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SecurityContactInner create(String securityContactName, SecurityContactInner securityContact); + Response createWithResponse( + String securityContactName, SecurityContactInner securityContact, Context context); /** * Create security contact configurations for the subscription. * * @param securityContactName Name of the security contact object. * @param securityContact Security contact object. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return contact details and configurations for notifications coming from Microsoft Defender for Cloud along with - * {@link Response}. + * @return contact details and configurations for notifications coming from Microsoft Defender for Cloud. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createWithResponse( - String securityContactName, SecurityContactInner securityContact, Context context); + SecurityContactInner create(String securityContactName, SecurityContactInner securityContact); /** * Delete security contact configurations for the subscription. * * @param securityContactName Name of the security contact object. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String securityContactName); + Response deleteWithResponse(String securityContactName, Context context); /** * Delete security contact configurations for the subscription. * * @param securityContactName Name of the security contact object. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse(String securityContactName, Context context); + void delete(String securityContactName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecuritySolutionsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecuritySolutionsClient.java index f4ee9f9cb5fa5..172a35c22dd14 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecuritySolutionsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecuritySolutionsClient.java @@ -43,13 +43,15 @@ public interface SecuritySolutionsClient { * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param securitySolutionName Name of 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 Security Solution. + * @return a specific Security Solution along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SecuritySolutionInner get(String resourceGroupName, String ascLocation, String securitySolutionName); + Response getWithResponse( + String resourceGroupName, String ascLocation, String securitySolutionName, Context context); /** * Gets a specific Security Solution. @@ -59,13 +61,11 @@ public interface SecuritySolutionsClient { * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param securitySolutionName Name of 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 Security Solution along with {@link Response}. + * @return a specific Security Solution. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String ascLocation, String securitySolutionName, Context context); + SecuritySolutionInner get(String resourceGroupName, String ascLocation, String securitySolutionName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecuritySolutionsReferenceDatasClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecuritySolutionsReferenceDatasClient.java index 5b138c13e69e7..2e07125883e6c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecuritySolutionsReferenceDatasClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecuritySolutionsReferenceDatasClient.java @@ -15,49 +15,49 @@ public interface SecuritySolutionsReferenceDatasClient { /** * Gets a list of all supported Security Solutions for the subscription. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all supported Security Solutions for the subscription. + * @return a list of all supported Security Solutions for the subscription along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SecuritySolutionsReferenceDataListInner list(); + Response listWithResponse(Context context); /** * Gets a list of all supported Security Solutions for the subscription. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all supported Security Solutions for the subscription along with {@link Response}. + * @return a list of all supported Security Solutions for the subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listWithResponse(Context context); + SecuritySolutionsReferenceDataListInner list(); /** * Gets list of all supported Security Solutions for subscription and location. * * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of all supported Security Solutions for subscription and location. + * @return list of all supported Security Solutions for subscription and location along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SecuritySolutionsReferenceDataListInner listByHomeRegion(String ascLocation); + Response listByHomeRegionWithResponse(String ascLocation, Context context); /** * Gets list of all supported Security Solutions for subscription and location. * * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of all supported Security Solutions for subscription and location along with {@link Response}. + * @return list of all supported Security Solutions for subscription and location. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listByHomeRegionWithResponse(String ascLocation, Context context); + SecuritySolutionsReferenceDataListInner listByHomeRegion(String ascLocation); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ServerVulnerabilityAssessmentsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ServerVulnerabilityAssessmentsClient.java index 3341b7c2f91bc..26e9c4152c359 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ServerVulnerabilityAssessmentsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ServerVulnerabilityAssessmentsClient.java @@ -23,14 +23,16 @@ public interface ServerVulnerabilityAssessmentsClient { * @param resourceNamespace The Namespace of the resource. * @param resourceType The type of the resource. * @param resourceName Name of the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of server vulnerability assessment onboarding statuses on a given resource. + * @return a list of server vulnerability assessment onboarding statuses on a given resource along with {@link + * Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ServerVulnerabilityAssessmentsListInner listByExtendedResource( - String resourceGroupName, String resourceNamespace, String resourceType, String resourceName); + Response listByExtendedResourceWithResponse( + String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context); /** * Gets a list of server vulnerability assessment onboarding statuses on a given resource. @@ -40,16 +42,14 @@ ServerVulnerabilityAssessmentsListInner listByExtendedResource( * @param resourceNamespace The Namespace of the resource. * @param resourceType The type of the resource. * @param resourceName Name of the resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of server vulnerability assessment onboarding statuses on a given resource along with {@link - * Response}. + * @return a list of server vulnerability assessment onboarding statuses on a given resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listByExtendedResourceWithResponse( - String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context); + ServerVulnerabilityAssessmentsListInner listByExtendedResource( + String resourceGroupName, String resourceNamespace, String resourceType, String resourceName); /** * Gets a server vulnerability assessment onboarding statuses on a given resource. @@ -59,14 +59,15 @@ Response listByExtendedResourceWithResp * @param resourceNamespace The Namespace of the resource. * @param resourceType The type of the resource. * @param resourceName Name of the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a server vulnerability assessment onboarding statuses on a given resource. + * @return a server vulnerability assessment onboarding statuses on a given resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ServerVulnerabilityAssessmentInner get( - String resourceGroupName, String resourceNamespace, String resourceType, String resourceName); + Response getWithResponse( + String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context); /** * Gets a server vulnerability assessment onboarding statuses on a given resource. @@ -76,15 +77,14 @@ ServerVulnerabilityAssessmentInner get( * @param resourceNamespace The Namespace of the resource. * @param resourceType The type of the resource. * @param resourceName Name of the resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a server vulnerability assessment onboarding statuses on a given resource along with {@link Response}. + * @return a server vulnerability assessment onboarding statuses on a given resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context); + ServerVulnerabilityAssessmentInner get( + String resourceGroupName, String resourceNamespace, String resourceType, String resourceName); /** * Creating a server vulnerability assessment on a resource, which will onboard a resource for having a @@ -95,14 +95,15 @@ Response getWithResponse( * @param resourceNamespace The Namespace of the resource. * @param resourceType The type of the resource. * @param resourceName Name of the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the server vulnerability assessment details on a resource. + * @return describes the server vulnerability assessment details on a resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ServerVulnerabilityAssessmentInner createOrUpdate( - String resourceGroupName, String resourceNamespace, String resourceType, String resourceName); + Response createOrUpdateWithResponse( + String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context); /** * Creating a server vulnerability assessment on a resource, which will onboard a resource for having a @@ -113,15 +114,14 @@ ServerVulnerabilityAssessmentInner createOrUpdate( * @param resourceNamespace The Namespace of the resource. * @param resourceType The type of the resource. * @param resourceName Name of the resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the server vulnerability assessment details on a resource along with {@link Response}. + * @return describes the server vulnerability assessment details on a resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context); + ServerVulnerabilityAssessmentInner createOrUpdate( + String resourceGroupName, String resourceNamespace, String resourceType, String resourceName); /** * Removing server vulnerability assessment from a resource. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SettingsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SettingsClient.java index 8037354bfe774..1d2ca46fd4b9a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SettingsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SettingsClient.java @@ -40,51 +40,51 @@ public interface SettingsClient { * Settings of different configurations in Microsoft Defender for Cloud. * * @param settingName The name of the setting. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the kind of the security setting. + * @return the kind of the security setting along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SettingInner get(SettingName settingName); + Response getWithResponse(SettingName settingName, Context context); /** * Settings of different configurations in Microsoft Defender for Cloud. * * @param settingName The name of the setting. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the kind of the security setting along with {@link Response}. + * @return the kind of the security setting. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(SettingName settingName, Context context); + SettingInner get(SettingName settingName); /** * updating settings about different configurations in Microsoft Defender for Cloud. * * @param settingName The name of the setting. * @param setting Setting object. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the kind of the security setting. + * @return the kind of the security setting along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SettingInner update(SettingName settingName, SettingInner setting); + Response updateWithResponse(SettingName settingName, SettingInner setting, Context context); /** * updating settings about different configurations in Microsoft Defender for Cloud. * * @param settingName The name of the setting. * @param setting Setting object. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the kind of the security setting along with {@link Response}. + * @return the kind of the security setting. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse(SettingName settingName, SettingInner setting, Context context); + SettingInner update(SettingName settingName, SettingInner setting); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SoftwareInventoriesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SoftwareInventoriesClient.java index 115eb06002026..68430027e1942 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SoftwareInventoriesClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SoftwareInventoriesClient.java @@ -81,18 +81,20 @@ PagedIterable listByExtendedResource( * @param resourceType The type of the resource. * @param resourceName Name of the resource. * @param softwareName Name of the installed software. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a single software data of the virtual machine. + * @return a single software data of the virtual machine along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SoftwareInner get( + Response getWithResponse( String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, - String softwareName); + String softwareName, + Context context); /** * Gets a single software data of the virtual machine. @@ -103,18 +105,16 @@ SoftwareInner get( * @param resourceType The type of the resource. * @param resourceName Name of the resource. * @param softwareName Name of the installed software. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a single software data of the virtual machine along with {@link Response}. + * @return a single software data of the virtual machine. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( + SoftwareInner get( String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, - String softwareName, - Context context); + String softwareName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentBaselineRulesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentBaselineRulesClient.java index 1c3f3bfb22e35..01e57856a5c64 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentBaselineRulesClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentBaselineRulesClient.java @@ -18,20 +18,6 @@ * SqlVulnerabilityAssessmentBaselineRulesClient. */ public interface SqlVulnerabilityAssessmentBaselineRulesClient { - /** - * Creates a Baseline for a rule in a database. Will overwrite any previously existing results. - * - * @param ruleId The rule Id. - * @param workspaceId The workspace Id. - * @param resourceId The identifier of the resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return rule results. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - RuleResultsInner createOrUpdate(String ruleId, String workspaceId, String resourceId); - /** * Creates a Baseline for a rule in a database. Will overwrite any previously existing results. * @@ -50,7 +36,7 @@ Response createOrUpdateWithResponse( String ruleId, String workspaceId, String resourceId, RuleResultsInput body, Context context); /** - * Gets the results for a given rule in the Baseline. + * Creates a Baseline for a rule in a database. Will overwrite any previously existing results. * * @param ruleId The rule Id. * @param workspaceId The workspace Id. @@ -58,10 +44,10 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the results for a given rule in the Baseline. + * @return rule results. */ @ServiceMethod(returns = ReturnType.SINGLE) - RuleResultsInner get(String ruleId, String workspaceId, String resourceId); + RuleResultsInner createOrUpdate(String ruleId, String workspaceId, String resourceId); /** * Gets the results for a given rule in the Baseline. @@ -79,7 +65,7 @@ Response createOrUpdateWithResponse( Response getWithResponse(String ruleId, String workspaceId, String resourceId, Context context); /** - * Deletes a rule from the Baseline of a given database. + * Gets the results for a given rule in the Baseline. * * @param ruleId The rule Id. * @param workspaceId The workspace Id. @@ -87,9 +73,10 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the results for a given rule in the Baseline. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String ruleId, String workspaceId, String resourceId); + RuleResultsInner get(String ruleId, String workspaceId, String resourceId); /** * Deletes a rule from the Baseline of a given database. @@ -107,17 +94,17 @@ Response createOrUpdateWithResponse( Response deleteWithResponse(String ruleId, String workspaceId, String resourceId, Context context); /** - * Gets the results for all rules in the Baseline. + * Deletes a rule from the Baseline of a given database. * + * @param ruleId The rule Id. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the results for all rules in the Baseline. */ @ServiceMethod(returns = ReturnType.SINGLE) - RulesResultsInner list(String workspaceId, String resourceId); + void delete(String ruleId, String workspaceId, String resourceId); /** * Gets the results for all rules in the Baseline. @@ -134,17 +121,17 @@ Response createOrUpdateWithResponse( Response listWithResponse(String workspaceId, String resourceId, Context context); /** - * Add a list of baseline rules. Will overwrite any previously existing results (for all rules). + * Gets the results for all rules in the Baseline. * * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of rules results. + * @return the results for all rules in the Baseline. */ @ServiceMethod(returns = ReturnType.SINGLE) - RulesResultsInner add(String workspaceId, String resourceId); + RulesResultsInner list(String workspaceId, String resourceId); /** * Add a list of baseline rules. Will overwrite any previously existing results (for all rules). @@ -161,4 +148,17 @@ Response createOrUpdateWithResponse( @ServiceMethod(returns = ReturnType.SINGLE) Response addWithResponse( String workspaceId, String resourceId, RulesResultsInput body, Context context); + + /** + * Add a list of baseline rules. Will overwrite any previously existing results (for all rules). + * + * @param workspaceId The workspace Id. + * @param resourceId The identifier of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of rules results. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + RulesResultsInner add(String workspaceId, String resourceId); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentScanResultsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentScanResultsClient.java index 06108659d1149..9ab7d96a286fc 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentScanResultsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentScanResultsClient.java @@ -23,13 +23,15 @@ public interface SqlVulnerabilityAssessmentScanResultsClient { * @param scanResultId The rule Id of the results. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the scan results of a single rule in a scan record. + * @return the scan results of a single rule in a scan record along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ScanResultInner get(String scanId, String scanResultId, String workspaceId, String resourceId); + Response getWithResponse( + String scanId, String scanResultId, String workspaceId, String resourceId, Context context); /** * Gets the scan results of a single rule in a scan record. @@ -38,15 +40,13 @@ public interface SqlVulnerabilityAssessmentScanResultsClient { * @param scanResultId The rule Id of the results. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the scan results of a single rule in a scan record along with {@link Response}. + * @return the scan results of a single rule in a scan record. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String scanId, String scanResultId, String workspaceId, String resourceId, Context context); + ScanResultInner get(String scanId, String scanResultId, String workspaceId, String resourceId); /** * Gets a list of scan results for a single scan record. @@ -54,13 +54,14 @@ Response getWithResponse( * @param scanId The scan Id. Type 'latest' to get the scan results for the latest scan. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of scan results for a single scan record. + * @return a list of scan results for a single scan record along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ScanResultsInner list(String scanId, String workspaceId, String resourceId); + Response listWithResponse(String scanId, String workspaceId, String resourceId, Context context); /** * Gets a list of scan results for a single scan record. @@ -68,12 +69,11 @@ Response getWithResponse( * @param scanId The scan Id. Type 'latest' to get the scan results for the latest scan. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of scan results for a single scan record along with {@link Response}. + * @return a list of scan results for a single scan record. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listWithResponse(String scanId, String workspaceId, String resourceId, Context context); + ScanResultsInner list(String scanId, String workspaceId, String resourceId); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentScansClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentScansClient.java index f0a9faf39c822..c586949d0f773 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentScansClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentScansClient.java @@ -19,13 +19,14 @@ public interface SqlVulnerabilityAssessmentScansClient { * @param scanId The scan Id. Type 'latest' to get the scan record for the latest scan. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the scan details of a single scan record. + * @return the scan details of a single scan record along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ScanInner get(String scanId, String workspaceId, String resourceId); + Response getWithResponse(String scanId, String workspaceId, String resourceId, Context context); /** * Gets the scan details of a single scan record. @@ -33,39 +34,38 @@ public interface SqlVulnerabilityAssessmentScansClient { * @param scanId The scan Id. Type 'latest' to get the scan record for the latest scan. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the scan details of a single scan record along with {@link Response}. + * @return the scan details of a single scan record. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String scanId, String workspaceId, String resourceId, Context context); + ScanInner get(String scanId, String workspaceId, String resourceId); /** * Gets a list of scan records. * * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of scan records. + * @return a list of scan records along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ScansInner list(String workspaceId, String resourceId); + Response listWithResponse(String workspaceId, String resourceId, Context context); /** * Gets a list of scan records. * * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of scan records along with {@link Response}. + * @return a list of scan records. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listWithResponse(String workspaceId, String resourceId, Context context); + ScansInner list(String workspaceId, String resourceId); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SubAssessmentsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SubAssessmentsClient.java index c148cd23838bb..84dfe1f4ca079 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SubAssessmentsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SubAssessmentsClient.java @@ -80,13 +80,15 @@ public interface SubAssessmentsClient { * management group (/providers/Microsoft.Management/managementGroups/mgName). * @param assessmentName The Assessment Key - Unique key for the assessment type. * @param subAssessmentName The Sub-Assessment Key - Unique key for the sub-assessment type. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a security sub-assessment on your scanned resource. + * @return a security sub-assessment on your scanned resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SecuritySubAssessmentInner get(String scope, String assessmentName, String subAssessmentName); + Response getWithResponse( + String scope, String assessmentName, String subAssessmentName, Context context); /** * Get a security sub-assessment on your scanned resource. @@ -95,13 +97,11 @@ public interface SubAssessmentsClient { * management group (/providers/Microsoft.Management/managementGroups/mgName). * @param assessmentName The Assessment Key - Unique key for the assessment type. * @param subAssessmentName The Sub-Assessment Key - Unique key for the sub-assessment type. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a security sub-assessment on your scanned resource along with {@link Response}. + * @return a security sub-assessment on your scanned resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String scope, String assessmentName, String subAssessmentName, Context context); + SecuritySubAssessmentInner get(String scope, String assessmentName, String subAssessmentName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/TasksClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/TasksClient.java index 7a16e74cb3075..a2c5a01a49be2 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/TasksClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/TasksClient.java @@ -71,13 +71,15 @@ public interface TasksClient { * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param taskName Name of the task object, will be a GUID. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security task that we recommend to do in order to strengthen security. + * @return security task that we recommend to do in order to strengthen security along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SecurityTaskInner getSubscriptionLevelTask(String ascLocation, String taskName); + Response getSubscriptionLevelTaskWithResponse( + String ascLocation, String taskName, Context context); /** * Recommended tasks that will help improve the security of the subscription proactively. @@ -85,15 +87,13 @@ public interface TasksClient { * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param taskName Name of the task object, will be a GUID. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security task that we recommend to do in order to strengthen security along with {@link Response}. + * @return security task that we recommend to do in order to strengthen security. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getSubscriptionLevelTaskWithResponse( - String ascLocation, String taskName, Context context); + SecurityTaskInner getSubscriptionLevelTask(String ascLocation, String taskName); /** * Recommended tasks that will help improve the security of the subscription proactively. @@ -102,13 +102,15 @@ Response getSubscriptionLevelTaskWithResponse( * locations. * @param taskName Name of the task object, will be a GUID. * @param taskUpdateActionType Type of the action to do on the task. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void updateSubscriptionLevelTaskState( - String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType); + Response updateSubscriptionLevelTaskStateWithResponse( + String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType, Context context); /** * Recommended tasks that will help improve the security of the subscription proactively. @@ -117,15 +119,13 @@ void updateSubscriptionLevelTaskState( * locations. * @param taskName Name of the task object, will be a GUID. * @param taskUpdateActionType Type of the action to do on the task. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateSubscriptionLevelTaskStateWithResponse( - String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType, Context context); + void updateSubscriptionLevelTaskState( + String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType); /** * Recommended tasks that will help improve the security of the subscription proactively. @@ -168,13 +168,15 @@ PagedIterable listByResourceGroup( * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param taskName Name of the task object, will be a GUID. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security task that we recommend to do in order to strengthen security. + * @return security task that we recommend to do in order to strengthen security along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SecurityTaskInner getResourceGroupLevelTask(String resourceGroupName, String ascLocation, String taskName); + Response getResourceGroupLevelTaskWithResponse( + String resourceGroupName, String ascLocation, String taskName, Context context); /** * Recommended tasks that will help improve the security of the subscription proactively. @@ -184,15 +186,13 @@ PagedIterable listByResourceGroup( * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param taskName Name of the task object, will be a GUID. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security task that we recommend to do in order to strengthen security along with {@link Response}. + * @return security task that we recommend to do in order to strengthen security. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getResourceGroupLevelTaskWithResponse( - String resourceGroupName, String ascLocation, String taskName, Context context); + SecurityTaskInner getResourceGroupLevelTask(String resourceGroupName, String ascLocation, String taskName); /** * Recommended tasks that will help improve the security of the subscription proactively. @@ -203,13 +203,19 @@ Response getResourceGroupLevelTaskWithResponse( * locations. * @param taskName Name of the task object, will be a GUID. * @param taskUpdateActionType Type of the action to do on the task. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void updateResourceGroupLevelTaskState( - String resourceGroupName, String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType); + Response updateResourceGroupLevelTaskStateWithResponse( + String resourceGroupName, + String ascLocation, + String taskName, + TaskUpdateActionType taskUpdateActionType, + Context context); /** * Recommended tasks that will help improve the security of the subscription proactively. @@ -220,17 +226,11 @@ void updateResourceGroupLevelTaskState( * locations. * @param taskName Name of the task object, will be a GUID. * @param taskUpdateActionType Type of the action to do on the task. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateResourceGroupLevelTaskStateWithResponse( - String resourceGroupName, - String ascLocation, - String taskName, - TaskUpdateActionType taskUpdateActionType, - Context context); + void updateResourceGroupLevelTaskState( + String resourceGroupName, String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/TopologiesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/TopologiesClient.java index a859dd811d4a4..2af153a9fd5d2 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/TopologiesClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/TopologiesClient.java @@ -74,13 +74,15 @@ public interface TopologiesClient { * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param topologyResourceName Name of a topology resources collection. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 topology component. + * @return a specific topology component along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - TopologyResourceInner get(String resourceGroupName, String ascLocation, String topologyResourceName); + Response getWithResponse( + String resourceGroupName, String ascLocation, String topologyResourceName, Context context); /** * Gets a specific topology component. @@ -90,13 +92,11 @@ public interface TopologiesClient { * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param topologyResourceName Name of a topology resources collection. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 topology component along with {@link Response}. + * @return a specific topology component. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String ascLocation, String topologyResourceName, Context context); + TopologyResourceInner get(String resourceGroupName, String ascLocation, String topologyResourceName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/WorkspaceSettingsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/WorkspaceSettingsClient.java index 15a52bf2bb1b2..4aeb551884764 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/WorkspaceSettingsClient.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/WorkspaceSettingsClient.java @@ -37,19 +37,6 @@ public interface WorkspaceSettingsClient { @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); - /** - * Settings about where we should store your security data and logs. If the result is empty, it means that no - * custom-workspace configuration was set. - * - * @param workspaceSettingName Name of the security setting. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return configures where to store the OMS agent data for workspaces under a scope. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - WorkspaceSettingInner get(String workspaceSettingName); - /** * Settings about where we should store your security data and logs. If the result is empty, it means that no * custom-workspace configuration was set. @@ -65,17 +52,17 @@ public interface WorkspaceSettingsClient { Response getWithResponse(String workspaceSettingName, Context context); /** - * creating settings about where we should store your security data and logs. + * Settings about where we should store your security data and logs. If the result is empty, it means that no + * custom-workspace configuration was set. * * @param workspaceSettingName Name of the security setting. - * @param workspaceSetting Security data setting object. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return configures where to store the OMS agent data for workspaces under a scope. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkspaceSettingInner create(String workspaceSettingName, WorkspaceSettingInner workspaceSetting); + WorkspaceSettingInner get(String workspaceSettingName); /** * creating settings about where we should store your security data and logs. @@ -93,7 +80,7 @@ Response createWithResponse( String workspaceSettingName, WorkspaceSettingInner workspaceSetting, Context context); /** - * Settings about where we should store your security data and logs. + * creating settings about where we should store your security data and logs. * * @param workspaceSettingName Name of the security setting. * @param workspaceSetting Security data setting object. @@ -103,7 +90,7 @@ Response createWithResponse( * @return configures where to store the OMS agent data for workspaces under a scope. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkspaceSettingInner update(String workspaceSettingName, WorkspaceSettingInner workspaceSetting); + WorkspaceSettingInner create(String workspaceSettingName, WorkspaceSettingInner workspaceSetting); /** * Settings about where we should store your security data and logs. @@ -121,15 +108,17 @@ Response updateWithResponse( String workspaceSettingName, WorkspaceSettingInner workspaceSetting, Context context); /** - * Deletes the custom workspace settings for this subscription. new VMs will report to the default workspace. + * Settings about where we should store your security data and logs. * * @param workspaceSettingName Name of the security setting. + * @param workspaceSetting Security data setting object. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return configures where to store the OMS agent data for workspaces under a scope. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String workspaceSettingName); + WorkspaceSettingInner update(String workspaceSettingName, WorkspaceSettingInner workspaceSetting); /** * Deletes the custom workspace settings for this subscription. new VMs will report to the default workspace. @@ -143,4 +132,15 @@ Response updateWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse(String workspaceSettingName, Context context); + + /** + * Deletes the custom workspace settings for this subscription. new VMs will report to the default workspace. + * + * @param workspaceSettingName Name of the security setting. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String workspaceSettingName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveApplicationControlGroupData.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveApplicationControlGroupData.java index b59c862744d16..de1ccc31bb952 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveApplicationControlGroupData.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveApplicationControlGroupData.java @@ -68,6 +68,10 @@ public final class AdaptiveApplicationControlGroupData { @JsonProperty(value = "pathRecommendations") private List pathRecommendations; + /** Creates an instance of AdaptiveApplicationControlGroupData class. */ + public AdaptiveApplicationControlGroupData() { + } + /** * Get the enforcementMode property: The application control policy enforcement/protection mode of the machine * group. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveApplicationControlGroupInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveApplicationControlGroupInner.java index b1fccc879a217..56eca9ad39ce5 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveApplicationControlGroupInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveApplicationControlGroupInner.java @@ -33,6 +33,10 @@ public final class AdaptiveApplicationControlGroupInner extends ProxyResource { @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY) private String location; + /** Creates an instance of AdaptiveApplicationControlGroupInner class. */ + public AdaptiveApplicationControlGroupInner() { + } + /** * Get the innerProperties property: Represents a machines group and set of rules to be allowed running on a * machine. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveApplicationControlGroupsInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveApplicationControlGroupsInner.java index 7f6475611440e..95c0019d7688c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveApplicationControlGroupsInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveApplicationControlGroupsInner.java @@ -20,6 +20,10 @@ public final class AdaptiveApplicationControlGroupsInner { @JsonProperty(value = "value") private List value; + /** Creates an instance of AdaptiveApplicationControlGroupsInner class. */ + public AdaptiveApplicationControlGroupsInner() { + } + /** * Get the value property: The value property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveNetworkHardeningInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveNetworkHardeningInner.java index 0ee4bb6b5e9aa..463cfd2949913 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveNetworkHardeningInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveNetworkHardeningInner.java @@ -21,6 +21,10 @@ public final class AdaptiveNetworkHardeningInner extends ProxyResource { @JsonProperty(value = "properties") private AdaptiveNetworkHardeningProperties innerProperties; + /** Creates an instance of AdaptiveNetworkHardeningInner class. */ + public AdaptiveNetworkHardeningInner() { + } + /** * Get the innerProperties property: Properties of the Adaptive Network Hardening resource. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveNetworkHardeningProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveNetworkHardeningProperties.java index 02a066f23f1f9..d674845c04923 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveNetworkHardeningProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdaptiveNetworkHardeningProperties.java @@ -32,6 +32,10 @@ public final class AdaptiveNetworkHardeningProperties { @JsonProperty(value = "effectiveNetworkSecurityGroups") private List effectiveNetworkSecurityGroups; + /** Creates an instance of AdaptiveNetworkHardeningProperties class. */ + public AdaptiveNetworkHardeningProperties() { + } + /** * Get the rules property: The security rules which are recommended to be effective on the VM. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdvancedThreatProtectionProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdvancedThreatProtectionProperties.java index 4c1de6cf6e20d..3255fbeb3048b 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdvancedThreatProtectionProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdvancedThreatProtectionProperties.java @@ -16,6 +16,10 @@ public final class AdvancedThreatProtectionProperties { @JsonProperty(value = "isEnabled") private Boolean isEnabled; + /** Creates an instance of AdvancedThreatProtectionProperties class. */ + public AdvancedThreatProtectionProperties() { + } + /** * Get the isEnabled property: Indicates whether Advanced Threat Protection is enabled. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdvancedThreatProtectionSettingInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdvancedThreatProtectionSettingInner.java index 5475dc0cb83c9..fb63249f6d372 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdvancedThreatProtectionSettingInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AdvancedThreatProtectionSettingInner.java @@ -17,6 +17,10 @@ public final class AdvancedThreatProtectionSettingInner extends ProxyResource { @JsonProperty(value = "properties") private AdvancedThreatProtectionProperties innerProperties; + /** Creates an instance of AdvancedThreatProtectionSettingInner class. */ + public AdvancedThreatProtectionSettingInner() { + } + /** * Get the innerProperties property: The Advanced Threat Protection settings. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertInner.java index 41d360ce48aac..70d189e707ead 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertInner.java @@ -26,6 +26,10 @@ public final class AlertInner extends ProxyResource { @JsonProperty(value = "properties") private AlertProperties innerProperties; + /** Creates an instance of AlertInner class. */ + public AlertInner() { + } + /** * Get the innerProperties property: describes security alert properties. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertProperties.java index 9e69bb4e03cf3..2ad9696f5d25c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertProperties.java @@ -190,6 +190,10 @@ public final class AlertProperties { @JsonProperty(value = "supportingEvidence") private AlertPropertiesSupportingEvidence supportingEvidence; + /** Creates an instance of AlertProperties class. */ + public AlertProperties() { + } + /** * Get the version property: Schema version. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertSyncSettingProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertSyncSettingProperties.java index 4918e42769d78..fe3186458ebb7 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertSyncSettingProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertSyncSettingProperties.java @@ -16,6 +16,10 @@ public final class AlertSyncSettingProperties { @JsonProperty(value = "enabled", required = true) private boolean enabled; + /** Creates an instance of AlertSyncSettingProperties class. */ + public AlertSyncSettingProperties() { + } + /** * Get the enabled property: Is the alert sync setting enabled. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertsSuppressionRuleInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertsSuppressionRuleInner.java index d3d4911e5bac6..110197b8998b2 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertsSuppressionRuleInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertsSuppressionRuleInner.java @@ -20,6 +20,10 @@ public final class AlertsSuppressionRuleInner extends ProxyResource { @JsonProperty(value = "properties") private AlertsSuppressionRuleProperties innerProperties; + /** Creates an instance of AlertsSuppressionRuleInner class. */ + public AlertsSuppressionRuleInner() { + } + /** * Get the innerProperties property: describes AlertsSuppressionRule properties. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertsSuppressionRuleProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertsSuppressionRuleProperties.java index a1041ee17dbba..3ec48688de442 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertsSuppressionRuleProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertsSuppressionRuleProperties.java @@ -57,6 +57,10 @@ public final class AlertsSuppressionRuleProperties { @JsonProperty(value = "suppressionAlertsScope") private SuppressionAlertsScope suppressionAlertsScope; + /** Creates an instance of AlertsSuppressionRuleProperties class. */ + public AlertsSuppressionRuleProperties() { + } + /** * Get the alertType property: Type of the alert to automatically suppress. For all alert types, use '*'. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AllowedConnectionsResourceInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AllowedConnectionsResourceInner.java index af320758d98bb..7c222562dfcb1 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AllowedConnectionsResourceInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AllowedConnectionsResourceInner.java @@ -26,6 +26,10 @@ public final class AllowedConnectionsResourceInner extends ProxyResource { @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY) private String location; + /** Creates an instance of AllowedConnectionsResourceInner class. */ + public AllowedConnectionsResourceInner() { + } + /** * Get the innerProperties property: Describes the allowed traffic between Azure resources. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AllowedConnectionsResourceProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AllowedConnectionsResourceProperties.java index 3db8771bdc339..26132bd10a555 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AllowedConnectionsResourceProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AllowedConnectionsResourceProperties.java @@ -25,6 +25,10 @@ public final class AllowedConnectionsResourceProperties { @JsonProperty(value = "connectableResources", access = JsonProperty.Access.WRITE_ONLY) private List connectableResources; + /** Creates an instance of AllowedConnectionsResourceProperties class. */ + public AllowedConnectionsResourceProperties() { + } + /** * Get the calculatedDateTime property: The UTC time on which the allowed connections resource was calculated. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ApplicationInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ApplicationInner.java index 8e7114002394b..52bda95475adf 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ApplicationInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ApplicationInner.java @@ -19,6 +19,10 @@ public final class ApplicationInner extends ProxyResource { @JsonProperty(value = "properties") private ApplicationProperties innerProperties; + /** Creates an instance of ApplicationInner class. */ + public ApplicationInner() { + } + /** * Get the innerProperties property: Properties of a security application. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ApplicationProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ApplicationProperties.java index 5fc0aa7f3ae70..bace1b11b0a5f 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ApplicationProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ApplicationProperties.java @@ -37,6 +37,10 @@ public final class ApplicationProperties { @JsonProperty(value = "conditionSets", required = true) private List conditionSets; + /** Creates an instance of ApplicationProperties class. */ + public ApplicationProperties() { + } + /** * Get the displayName property: display name of the application. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AscLocationInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AscLocationInner.java index 19b88585cbb2b..351e2b24190fc 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AscLocationInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AscLocationInner.java @@ -17,6 +17,10 @@ public final class AscLocationInner extends ProxyResource { @JsonProperty(value = "properties") private Object properties; + /** Creates an instance of AscLocationInner class. */ + public AscLocationInner() { + } + /** * Get the properties property: An empty set of properties. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AutoProvisioningSettingInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AutoProvisioningSettingInner.java index 092f1640e85de..8360f8b33cc30 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AutoProvisioningSettingInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AutoProvisioningSettingInner.java @@ -18,6 +18,10 @@ public final class AutoProvisioningSettingInner extends ProxyResource { @JsonProperty(value = "properties") private AutoProvisioningSettingProperties innerProperties; + /** Creates an instance of AutoProvisioningSettingInner class. */ + public AutoProvisioningSettingInner() { + } + /** * Get the innerProperties property: Auto provisioning setting data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AutoProvisioningSettingProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AutoProvisioningSettingProperties.java index 8666190728f94..52a8ebeec0129 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AutoProvisioningSettingProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AutoProvisioningSettingProperties.java @@ -18,6 +18,10 @@ public final class AutoProvisioningSettingProperties { @JsonProperty(value = "autoProvision", required = true) private AutoProvision autoProvision; + /** Creates an instance of AutoProvisioningSettingProperties class. */ + public AutoProvisioningSettingProperties() { + } + /** * Get the autoProvision property: Describes what kind of security agent provisioning action to take. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AutomationInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AutomationInner.java index 99d927d4fb928..3881c341098ce 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AutomationInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AutomationInner.java @@ -22,6 +22,10 @@ public final class AutomationInner extends Resource { @JsonProperty(value = "properties") private AutomationProperties innerProperties; + /** Creates an instance of AutomationInner class. */ + public AutomationInner() { + } + /** * Get the innerProperties property: Security automation data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AutomationProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AutomationProperties.java index 32ce1aac194d7..c84b9645e4287 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AutomationProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AutomationProperties.java @@ -49,6 +49,10 @@ public final class AutomationProperties { @JsonProperty(value = "actions") private List actions; + /** Creates an instance of AutomationProperties class. */ + public AutomationProperties() { + } + /** * Get the description property: The security automation description. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AutomationValidationStatusInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AutomationValidationStatusInner.java index a431b7644bf86..a43555c19211a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AutomationValidationStatusInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AutomationValidationStatusInner.java @@ -22,6 +22,10 @@ public final class AutomationValidationStatusInner { @JsonProperty(value = "message") private String message; + /** Creates an instance of AutomationValidationStatusInner class. */ + public AutomationValidationStatusInner() { + } + /** * Get the isValid property: Indicates whether the model is valid or not. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ComplianceInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ComplianceInner.java index 9d42e52d7a5ff..4017d627a9d07 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ComplianceInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ComplianceInner.java @@ -4,7 +4,7 @@ package com.azure.resourcemanager.security.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.ProxyResource; import com.azure.resourcemanager.security.models.ComplianceSegment; import com.fasterxml.jackson.annotation.JsonProperty; @@ -12,7 +12,7 @@ import java.util.List; /** Compliance of a scope. */ -@Fluent +@Immutable public final class ComplianceInner extends ProxyResource { /* * Compliance data @@ -20,6 +20,10 @@ public final class ComplianceInner extends ProxyResource { @JsonProperty(value = "properties") private ComplianceProperties innerProperties; + /** Creates an instance of ComplianceInner class. */ + public ComplianceInner() { + } + /** * Get the innerProperties property: Compliance data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ComplianceProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ComplianceProperties.java index a9f7d44a2e82a..8eb6d80114fc8 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ComplianceProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ComplianceProperties.java @@ -36,6 +36,10 @@ public final class ComplianceProperties { @JsonProperty(value = "assessmentResult", access = JsonProperty.Access.WRITE_ONLY) private List assessmentResult; + /** Creates an instance of ComplianceProperties class. */ + public ComplianceProperties() { + } + /** * Get the assessmentTimestampUtcDate property: The timestamp when the Compliance calculation was conducted. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ComplianceResultInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ComplianceResultInner.java index 9777cd0e8b81b..4487e681da9ba 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ComplianceResultInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ComplianceResultInner.java @@ -4,13 +4,13 @@ package com.azure.resourcemanager.security.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.ProxyResource; import com.azure.resourcemanager.security.models.ResourceStatus; import com.fasterxml.jackson.annotation.JsonProperty; /** a compliance result. */ -@Fluent +@Immutable public final class ComplianceResultInner extends ProxyResource { /* * Compliance result data @@ -18,6 +18,10 @@ public final class ComplianceResultInner extends ProxyResource { @JsonProperty(value = "properties") private ComplianceResultProperties innerProperties; + /** Creates an instance of ComplianceResultInner class. */ + public ComplianceResultInner() { + } + /** * Get the innerProperties property: Compliance result data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ComplianceResultProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ComplianceResultProperties.java index 0e83c3057a872..743f7fe1a8b7b 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ComplianceResultProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ComplianceResultProperties.java @@ -17,6 +17,10 @@ public final class ComplianceResultProperties { @JsonProperty(value = "resourceStatus", access = JsonProperty.Access.WRITE_ONLY) private ResourceStatus resourceStatus; + /** Creates an instance of ComplianceResultProperties class. */ + public ComplianceResultProperties() { + } + /** * Get the resourceStatus property: The status of the resource regarding a single assessment. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ConnectionStringsInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ConnectionStringsInner.java index 17e8ac2b176d7..4e21ee921fae2 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ConnectionStringsInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ConnectionStringsInner.java @@ -19,6 +19,10 @@ public final class ConnectionStringsInner { @JsonProperty(value = "value", required = true) private List value; + /** Creates an instance of ConnectionStringsInner class. */ + public ConnectionStringsInner() { + } + /** * Get the value property: Connection strings. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ConnectorSettingInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ConnectorSettingInner.java index e4694c72e86aa..423238e44dabf 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ConnectorSettingInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ConnectorSettingInner.java @@ -19,6 +19,10 @@ public final class ConnectorSettingInner extends ProxyResource { @JsonProperty(value = "properties") private ConnectorSettingProperties innerProperties; + /** Creates an instance of ConnectorSettingInner class. */ + public ConnectorSettingInner() { + } + /** * Get the innerProperties property: Connector setting data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ConnectorSettingProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ConnectorSettingProperties.java index 458f1c76104e1..5a6a558eed594 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ConnectorSettingProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ConnectorSettingProperties.java @@ -24,6 +24,10 @@ public final class ConnectorSettingProperties { @JsonProperty(value = "authenticationDetails") private AuthenticationDetailsProperties authenticationDetails; + /** Creates an instance of ConnectorSettingProperties class. */ + public ConnectorSettingProperties() { + } + /** * Get the hybridComputeSettings property: Settings for hybrid compute management. These settings are relevant only * for Arc autoProvision (Hybrid Compute). diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/CustomAssessmentAutomationInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/CustomAssessmentAutomationInner.java index 33b1960c81640..77f1347c266e5 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/CustomAssessmentAutomationInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/CustomAssessmentAutomationInner.java @@ -26,6 +26,10 @@ public final class CustomAssessmentAutomationInner extends ProxyResource { @JsonProperty(value = "properties") private CustomAssessmentAutomationProperties innerProperties; + /** Creates an instance of CustomAssessmentAutomationInner class. */ + public CustomAssessmentAutomationInner() { + } + /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/CustomAssessmentAutomationProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/CustomAssessmentAutomationProperties.java index e976449e3fb8a..9e8384522a946 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/CustomAssessmentAutomationProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/CustomAssessmentAutomationProperties.java @@ -54,6 +54,10 @@ public final class CustomAssessmentAutomationProperties { @JsonProperty(value = "assessmentKey") private String assessmentKey; + /** Creates an instance of CustomAssessmentAutomationProperties class. */ + public CustomAssessmentAutomationProperties() { + } + /** * Get the compressedQuery property: GZip encoded KQL query representing the assessment automation results required. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/CustomAssessmentAutomationRequestProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/CustomAssessmentAutomationRequestProperties.java index aaa4ed3b68466..524a5c5db165c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/CustomAssessmentAutomationRequestProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/CustomAssessmentAutomationRequestProperties.java @@ -48,6 +48,10 @@ public final class CustomAssessmentAutomationRequestProperties { @JsonProperty(value = "remediationDescription") private String remediationDescription; + /** Creates an instance of CustomAssessmentAutomationRequestProperties class. */ + public CustomAssessmentAutomationRequestProperties() { + } + /** * Get the compressedQuery property: Base 64 encoded KQL query representing the assessment automation results * required. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/CustomEntityStoreAssignmentInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/CustomEntityStoreAssignmentInner.java index 07cef74f3fe96..0ac905684d259 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/CustomEntityStoreAssignmentInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/CustomEntityStoreAssignmentInner.java @@ -24,6 +24,10 @@ public final class CustomEntityStoreAssignmentInner extends ProxyResource { @JsonProperty(value = "properties") private CustomEntityStoreAssignmentProperties innerProperties; + /** Creates an instance of CustomEntityStoreAssignmentInner class. */ + public CustomEntityStoreAssignmentInner() { + } + /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/CustomEntityStoreAssignmentProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/CustomEntityStoreAssignmentProperties.java index d32be1787300d..cf2b86ebd137c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/CustomEntityStoreAssignmentProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/CustomEntityStoreAssignmentProperties.java @@ -22,6 +22,10 @@ public final class CustomEntityStoreAssignmentProperties { @JsonProperty(value = "entityStoreDatabaseLink") private String entityStoreDatabaseLink; + /** Creates an instance of CustomEntityStoreAssignmentProperties class. */ + public CustomEntityStoreAssignmentProperties() { + } + /** * Get the principal property: The principal assigned with entity store. Format of principal is: [AAD * type]=[PrincipalObjectId];[TenantId]. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/CustomEntityStoreAssignmentRequestProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/CustomEntityStoreAssignmentRequestProperties.java index 9d927bfba5518..fc9ebcd59cabe 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/CustomEntityStoreAssignmentRequestProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/CustomEntityStoreAssignmentRequestProperties.java @@ -17,6 +17,10 @@ public final class CustomEntityStoreAssignmentRequestProperties { @JsonProperty(value = "principal") private String principal; + /** Creates an instance of CustomEntityStoreAssignmentRequestProperties class. */ + public CustomEntityStoreAssignmentRequestProperties() { + } + /** * Get the principal property: The principal assigned with entity store. If not provided, will use caller principal. * Format of principal is: [AAD type]=[PrincipalObjectId];[TenantId]. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/DataExportSettingProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/DataExportSettingProperties.java index a35df11e5cfd4..5f8daf7eabc5f 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/DataExportSettingProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/DataExportSettingProperties.java @@ -16,6 +16,10 @@ public final class DataExportSettingProperties { @JsonProperty(value = "enabled", required = true) private boolean enabled; + /** Creates an instance of DataExportSettingProperties class. */ + public DataExportSettingProperties() { + } + /** * Get the enabled property: Is the data export setting enabled. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/DeviceSecurityGroupInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/DeviceSecurityGroupInner.java index 895efd6232407..29aa17350b738 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/DeviceSecurityGroupInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/DeviceSecurityGroupInner.java @@ -22,6 +22,10 @@ public final class DeviceSecurityGroupInner extends ProxyResource { @JsonProperty(value = "properties") private DeviceSecurityGroupProperties innerProperties; + /** Creates an instance of DeviceSecurityGroupInner class. */ + public DeviceSecurityGroupInner() { + } + /** * Get the innerProperties property: Device Security group data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/DeviceSecurityGroupProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/DeviceSecurityGroupProperties.java index 912c492472154..0ee8520c518c5 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/DeviceSecurityGroupProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/DeviceSecurityGroupProperties.java @@ -39,6 +39,10 @@ public final class DeviceSecurityGroupProperties { @JsonProperty(value = "denylistRules") private List denylistRules; + /** Creates an instance of DeviceSecurityGroupProperties class. */ + public DeviceSecurityGroupProperties() { + } + /** * Get the thresholdRules property: The list of custom alert threshold rules. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/DiscoveredSecuritySolutionInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/DiscoveredSecuritySolutionInner.java index 654cc518acc6c..b98b3bfd5ad57 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/DiscoveredSecuritySolutionInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/DiscoveredSecuritySolutionInner.java @@ -25,6 +25,10 @@ public final class DiscoveredSecuritySolutionInner extends ProxyResource { @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY) private String location; + /** Creates an instance of DiscoveredSecuritySolutionInner class. */ + public DiscoveredSecuritySolutionInner() { + } + /** * Get the innerProperties property: The properties property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/DiscoveredSecuritySolutionProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/DiscoveredSecuritySolutionProperties.java index c21a0f9fa9277..ff76f3379b9d8 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/DiscoveredSecuritySolutionProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/DiscoveredSecuritySolutionProperties.java @@ -36,6 +36,10 @@ public final class DiscoveredSecuritySolutionProperties { @JsonProperty(value = "sku", required = true) private String sku; + /** Creates an instance of DiscoveredSecuritySolutionProperties class. */ + public DiscoveredSecuritySolutionProperties() { + } + /** * Get the securityFamily property: The security family of the discovered solution. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ExecuteRuleStatusInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ExecuteRuleStatusInner.java index 10c2ebc4b9a6c..da82adde26341 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ExecuteRuleStatusInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ExecuteRuleStatusInner.java @@ -16,6 +16,10 @@ public final class ExecuteRuleStatusInner { @JsonProperty(value = "operationId", access = JsonProperty.Access.WRITE_ONLY) private String operationId; + /** Creates an instance of ExecuteRuleStatusInner class. */ + public ExecuteRuleStatusInner() { + } + /** * Get the operationId property: Unique key for the execution of GovernanceRule. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ExternalSecuritySolutionInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ExternalSecuritySolutionInner.java index 1286c1e7a2725..7c61d67956c52 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ExternalSecuritySolutionInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ExternalSecuritySolutionInner.java @@ -37,6 +37,10 @@ public class ExternalSecuritySolutionInner extends ProxyResource { @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY) private String location; + /** Creates an instance of ExternalSecuritySolutionInner class. */ + public ExternalSecuritySolutionInner() { + } + /** * Get the location property: Location where the resource is stored. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GovernanceAssignmentInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GovernanceAssignmentInner.java index 4f90f1ab6625a..c828bf76ff264 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GovernanceAssignmentInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GovernanceAssignmentInner.java @@ -21,6 +21,10 @@ public final class GovernanceAssignmentInner extends ProxyResource { @JsonProperty(value = "properties") private GovernanceAssignmentProperties innerProperties; + /** Creates an instance of GovernanceAssignmentInner class. */ + public GovernanceAssignmentInner() { + } + /** * Get the innerProperties property: Properties of a security governanceAssignment. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GovernanceAssignmentProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GovernanceAssignmentProperties.java index 5c72143b818dc..4fe799c627982 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GovernanceAssignmentProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GovernanceAssignmentProperties.java @@ -52,6 +52,10 @@ public final class GovernanceAssignmentProperties { @JsonProperty(value = "additionalData") private GovernanceAssignmentAdditionalData additionalData; + /** Creates an instance of GovernanceAssignmentProperties class. */ + public GovernanceAssignmentProperties() { + } + /** * Get the owner property: The Owner for the governance assignment - e.g. user@contoso.com - see example. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GovernanceRuleInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GovernanceRuleInner.java index 4b4059a12ebf7..2a763d38f7877 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GovernanceRuleInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GovernanceRuleInner.java @@ -22,6 +22,10 @@ public final class GovernanceRuleInner extends ProxyResource { @JsonProperty(value = "properties") private GovernanceRuleProperties innerProperties; + /** Creates an instance of GovernanceRuleInner class. */ + public GovernanceRuleInner() { + } + /** * Get the innerProperties property: Properties of a security governanceRule. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GovernanceRuleProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GovernanceRuleProperties.java index 4e4f55ca150ea..202b506fbfe21 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GovernanceRuleProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GovernanceRuleProperties.java @@ -85,6 +85,10 @@ public final class GovernanceRuleProperties { @JsonProperty(value = "governanceEmailNotification") private GovernanceRuleEmailNotification governanceEmailNotification; + /** Creates an instance of GovernanceRuleProperties class. */ + public GovernanceRuleProperties() { + } + /** * Get the displayName property: display name of the governanceRule. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/InformationProtectionPolicyInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/InformationProtectionPolicyInner.java index 2c2c70ef082e0..f146e90386f24 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/InformationProtectionPolicyInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/InformationProtectionPolicyInner.java @@ -21,6 +21,10 @@ public final class InformationProtectionPolicyInner extends ProxyResource { @JsonProperty(value = "properties") private InformationProtectionPolicyProperties innerProperties; + /** Creates an instance of InformationProtectionPolicyInner class. */ + public InformationProtectionPolicyInner() { + } + /** * Get the innerProperties property: Information protection policy data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/InformationProtectionPolicyProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/InformationProtectionPolicyProperties.java index 0a7c0b8ffe841..6cbcb454c1969 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/InformationProtectionPolicyProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/InformationProtectionPolicyProperties.java @@ -41,6 +41,10 @@ public final class InformationProtectionPolicyProperties { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map informationTypes; + /** Creates an instance of InformationProtectionPolicyProperties class. */ + public InformationProtectionPolicyProperties() { + } + /** * Get the lastModifiedUtc property: Describes the last UTC time the policy was modified. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IngestionSettingInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IngestionSettingInner.java index fc09c5ae11208..6bf368c4d2018 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IngestionSettingInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IngestionSettingInner.java @@ -17,6 +17,10 @@ public final class IngestionSettingInner extends ProxyResource { @JsonProperty(value = "properties") private Object properties; + /** Creates an instance of IngestionSettingInner class. */ + public IngestionSettingInner() { + } + /** * Get the properties property: Ingestion setting data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IngestionSettingTokenInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IngestionSettingTokenInner.java index 28b00e07c1b9a..dd95c8c94ce6d 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IngestionSettingTokenInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IngestionSettingTokenInner.java @@ -16,6 +16,10 @@ public final class IngestionSettingTokenInner { @JsonProperty(value = "token", access = JsonProperty.Access.WRITE_ONLY) private String token; + /** Creates an instance of IngestionSettingTokenInner class. */ + public IngestionSettingTokenInner() { + } + /** * Get the token property: The token is used for correlating security data and logs with the resources in the * subscription. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecurityAggregatedAlertInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecurityAggregatedAlertInner.java index 117d7ee0c0dd1..d6ac39d9089d5 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecurityAggregatedAlertInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecurityAggregatedAlertInner.java @@ -30,6 +30,10 @@ public final class IoTSecurityAggregatedAlertInner extends ProxyResource { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; + /** Creates an instance of IoTSecurityAggregatedAlertInner class. */ + public IoTSecurityAggregatedAlertInner() { + } + /** * Get the innerProperties property: IoT Security solution aggregated alert details. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecurityAggregatedAlertProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecurityAggregatedAlertProperties.java index 0a5b6c06d9156..7413ba8442dbd 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecurityAggregatedAlertProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecurityAggregatedAlertProperties.java @@ -92,6 +92,10 @@ public final class IoTSecurityAggregatedAlertProperties { @JsonProperty(value = "topDevicesList", access = JsonProperty.Access.WRITE_ONLY) private List topDevicesList; + /** Creates an instance of IoTSecurityAggregatedAlertProperties class. */ + public IoTSecurityAggregatedAlertProperties() { + } + /** * Get the alertType property: Name of the alert type. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecurityAggregatedRecommendationInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecurityAggregatedRecommendationInner.java index 92ca02728dcef..9d9a7c3beb311 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecurityAggregatedRecommendationInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecurityAggregatedRecommendationInner.java @@ -27,6 +27,10 @@ public final class IoTSecurityAggregatedRecommendationInner extends ProxyResourc @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; + /** Creates an instance of IoTSecurityAggregatedRecommendationInner class. */ + public IoTSecurityAggregatedRecommendationInner() { + } + /** * Get the innerProperties property: Security Solution data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecurityAggregatedRecommendationProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecurityAggregatedRecommendationProperties.java index 1ea011b54ba45..9ee9660781831 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecurityAggregatedRecommendationProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecurityAggregatedRecommendationProperties.java @@ -71,6 +71,10 @@ public final class IoTSecurityAggregatedRecommendationProperties { @JsonProperty(value = "logAnalyticsQuery", access = JsonProperty.Access.WRITE_ONLY) private String logAnalyticsQuery; + /** Creates an instance of IoTSecurityAggregatedRecommendationProperties class. */ + public IoTSecurityAggregatedRecommendationProperties() { + } + /** * Get the recommendationName property: Name of the recommendation. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionAnalyticsModelInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionAnalyticsModelInner.java index 66c9cf17f3838..fb70db188a5e4 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionAnalyticsModelInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionAnalyticsModelInner.java @@ -23,6 +23,10 @@ public final class IoTSecuritySolutionAnalyticsModelInner extends ProxyResource @JsonProperty(value = "properties") private IoTSecuritySolutionAnalyticsModelProperties innerProperties; + /** Creates an instance of IoTSecuritySolutionAnalyticsModelInner class. */ + public IoTSecuritySolutionAnalyticsModelInner() { + } + /** * Get the innerProperties property: Security Solution Aggregated Alert data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionAnalyticsModelListInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionAnalyticsModelListInner.java index 6b56cdad6c041..05ebcd73f079a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionAnalyticsModelListInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionAnalyticsModelListInner.java @@ -24,6 +24,10 @@ public final class IoTSecuritySolutionAnalyticsModelListInner { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of IoTSecuritySolutionAnalyticsModelListInner class. */ + public IoTSecuritySolutionAnalyticsModelListInner() { + } + /** * Get the value property: List of Security analytics of your IoT Security solution. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionAnalyticsModelProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionAnalyticsModelProperties.java index 91008f64ef543..6ca28aeb9f29a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionAnalyticsModelProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionAnalyticsModelProperties.java @@ -52,6 +52,10 @@ public final class IoTSecuritySolutionAnalyticsModelProperties { @JsonProperty(value = "mostPrevalentDeviceRecommendations") private List mostPrevalentDeviceRecommendations; + /** Creates an instance of IoTSecuritySolutionAnalyticsModelProperties class. */ + public IoTSecuritySolutionAnalyticsModelProperties() { + } + /** * Get the metrics property: Security analytics of your IoT Security solution. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionModelInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionModelInner.java index c7ce82e7b3ac3..6659bf29c42b7 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionModelInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionModelInner.java @@ -47,6 +47,10 @@ public final class IoTSecuritySolutionModelInner extends ProxyResource { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; + /** Creates an instance of IoTSecuritySolutionModelInner class. */ + public IoTSecuritySolutionModelInner() { + } + /** * Get the location property: The resource location. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionProperties.java index 31e9e6b965197..daddad737073a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionProperties.java @@ -85,6 +85,10 @@ public final class IoTSecuritySolutionProperties { @JsonProperty(value = "additionalWorkspaces") private List additionalWorkspaces; + /** Creates an instance of IoTSecuritySolutionProperties class. */ + public IoTSecuritySolutionProperties() { + } + /** * Get the workspace property: Workspace resource ID. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/JitNetworkAccessPolicyInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/JitNetworkAccessPolicyInner.java index ccb24b345025c..7b307820330e5 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/JitNetworkAccessPolicyInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/JitNetworkAccessPolicyInner.java @@ -32,6 +32,10 @@ public final class JitNetworkAccessPolicyInner extends ProxyResource { @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY) private String location; + /** Creates an instance of JitNetworkAccessPolicyInner class. */ + public JitNetworkAccessPolicyInner() { + } + /** * Get the innerProperties property: The properties property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/JitNetworkAccessPolicyProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/JitNetworkAccessPolicyProperties.java index 3e00389490745..4d120daa91775 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/JitNetworkAccessPolicyProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/JitNetworkAccessPolicyProperties.java @@ -31,6 +31,10 @@ public final class JitNetworkAccessPolicyProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private String provisioningState; + /** Creates an instance of JitNetworkAccessPolicyProperties class. */ + public JitNetworkAccessPolicyProperties() { + } + /** * Get the virtualMachines property: Configurations for Microsoft.Compute/virtualMachines resource type. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/JitNetworkAccessRequestInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/JitNetworkAccessRequestInner.java index ee4163bd1a54f..6864965bacb34 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/JitNetworkAccessRequestInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/JitNetworkAccessRequestInner.java @@ -38,6 +38,10 @@ public final class JitNetworkAccessRequestInner { @JsonProperty(value = "justification") private String justification; + /** Creates an instance of JitNetworkAccessRequestInner class. */ + public JitNetworkAccessRequestInner() { + } + /** * Get the virtualMachines property: The virtualMachines property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/MdeOnboardingDataInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/MdeOnboardingDataInner.java index 7227c316c5aa5..bd385f7c835d3 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/MdeOnboardingDataInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/MdeOnboardingDataInner.java @@ -17,6 +17,10 @@ public final class MdeOnboardingDataInner extends ProxyResource { @JsonProperty(value = "properties") private MdeOnboardingDataProperties innerProperties; + /** Creates an instance of MdeOnboardingDataInner class. */ + public MdeOnboardingDataInner() { + } + /** * Get the innerProperties property: Properties of the MDE configuration or data parameter needed to onboard the * machine to MDE. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/MdeOnboardingDataListInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/MdeOnboardingDataListInner.java index 05ec4e40c5625..b6650c04d95db 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/MdeOnboardingDataListInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/MdeOnboardingDataListInner.java @@ -17,6 +17,10 @@ public final class MdeOnboardingDataListInner { @JsonProperty(value = "value") private List value; + /** Creates an instance of MdeOnboardingDataListInner class. */ + public MdeOnboardingDataListInner() { + } + /** * Get the value property: List of the resources of the configuration or data needed to onboard the machine to MDE. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/MdeOnboardingDataProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/MdeOnboardingDataProperties.java index 93e8ee728deef..b1bae4df584b5 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/MdeOnboardingDataProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/MdeOnboardingDataProperties.java @@ -25,6 +25,10 @@ public final class MdeOnboardingDataProperties { @JsonProperty(value = "onboardingPackageLinux") private byte[] onboardingPackageLinux; + /** Creates an instance of MdeOnboardingDataProperties class. */ + public MdeOnboardingDataProperties() { + } + /** * Get the onboardingPackageWindows property: The onboarding package used to onboard Windows machines to MDE, coded * in base64. This can also be used for onboarding using the dedicated VM Extension. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/OperationInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/OperationInner.java index 0cd8352d61c82..e681d61a3dd22 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/OperationInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/OperationInner.java @@ -29,6 +29,10 @@ public final class OperationInner { @JsonProperty(value = "display") private OperationDisplay display; + /** Creates an instance of OperationInner class. */ + public OperationInner() { + } + /** * Get the name property: Name of the operation. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/PricingInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/PricingInner.java index ef208c9eb5254..979f5106ad8a1 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/PricingInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/PricingInner.java @@ -24,6 +24,10 @@ public final class PricingInner extends ProxyResource { @JsonProperty(value = "properties") private PricingProperties innerProperties; + /** Creates an instance of PricingInner class. */ + public PricingInner() { + } + /** * Get the innerProperties property: Pricing data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/PricingListInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/PricingListInner.java index 70f001666004c..51b2670b30a29 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/PricingListInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/PricingListInner.java @@ -18,6 +18,10 @@ public final class PricingListInner { @JsonProperty(value = "value", required = true) private List value; + /** Creates an instance of PricingListInner class. */ + public PricingListInner() { + } + /** * Get the value property: List of pricing configurations. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/PricingProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/PricingProperties.java index 275193dd8768a..dcf5d895914ac 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/PricingProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/PricingProperties.java @@ -47,6 +47,10 @@ public final class PricingProperties { @JsonProperty(value = "replacedBy", access = JsonProperty.Access.WRITE_ONLY) private List replacedBy; + /** Creates an instance of PricingProperties class. */ + public PricingProperties() { + } + /** * Get the pricingTier property: The pricing tier value. Microsoft Defender for Cloud is provided in two pricing * tiers: free and standard, with the standard tier available with a trial period. The standard tier offers advanced diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RegulatoryComplianceAssessmentInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RegulatoryComplianceAssessmentInner.java index c81635108f20a..308a6f823cecc 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RegulatoryComplianceAssessmentInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RegulatoryComplianceAssessmentInner.java @@ -18,6 +18,10 @@ public final class RegulatoryComplianceAssessmentInner extends ProxyResource { @JsonProperty(value = "properties") private RegulatoryComplianceAssessmentProperties innerProperties; + /** Creates an instance of RegulatoryComplianceAssessmentInner class. */ + public RegulatoryComplianceAssessmentInner() { + } + /** * Get the innerProperties property: Regulatory compliance assessment data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RegulatoryComplianceAssessmentProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RegulatoryComplianceAssessmentProperties.java index 598dfa31ecc50..71a2f73ca1518 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RegulatoryComplianceAssessmentProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RegulatoryComplianceAssessmentProperties.java @@ -59,6 +59,10 @@ public final class RegulatoryComplianceAssessmentProperties { @JsonProperty(value = "unsupportedResources", access = JsonProperty.Access.WRITE_ONLY) private Integer unsupportedResources; + /** Creates an instance of RegulatoryComplianceAssessmentProperties class. */ + public RegulatoryComplianceAssessmentProperties() { + } + /** * Get the description property: The description of the regulatory compliance assessment. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RegulatoryComplianceControlInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RegulatoryComplianceControlInner.java index 94e827e6c4cca..44b3715c5fc67 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RegulatoryComplianceControlInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RegulatoryComplianceControlInner.java @@ -18,6 +18,10 @@ public final class RegulatoryComplianceControlInner extends ProxyResource { @JsonProperty(value = "properties") private RegulatoryComplianceControlProperties innerProperties; + /** Creates an instance of RegulatoryComplianceControlInner class. */ + public RegulatoryComplianceControlInner() { + } + /** * Get the innerProperties property: Regulatory compliance control data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RegulatoryComplianceControlProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RegulatoryComplianceControlProperties.java index 6e1af29582777..fc016649b89ab 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RegulatoryComplianceControlProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RegulatoryComplianceControlProperties.java @@ -41,6 +41,10 @@ public final class RegulatoryComplianceControlProperties { @JsonProperty(value = "skippedAssessments", access = JsonProperty.Access.WRITE_ONLY) private Integer skippedAssessments; + /** Creates an instance of RegulatoryComplianceControlProperties class. */ + public RegulatoryComplianceControlProperties() { + } + /** * Get the description property: The description of the regulatory compliance control. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RegulatoryComplianceStandardInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RegulatoryComplianceStandardInner.java index 068445f801a79..462389336ec01 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RegulatoryComplianceStandardInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RegulatoryComplianceStandardInner.java @@ -18,6 +18,10 @@ public final class RegulatoryComplianceStandardInner extends ProxyResource { @JsonProperty(value = "properties") private RegulatoryComplianceStandardProperties innerProperties; + /** Creates an instance of RegulatoryComplianceStandardInner class. */ + public RegulatoryComplianceStandardInner() { + } + /** * Get the innerProperties property: Regulatory compliance standard data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RegulatoryComplianceStandardProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RegulatoryComplianceStandardProperties.java index d60ad99f52042..a70b722ae82ff 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RegulatoryComplianceStandardProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RegulatoryComplianceStandardProperties.java @@ -42,6 +42,10 @@ public final class RegulatoryComplianceStandardProperties { @JsonProperty(value = "unsupportedControls", access = JsonProperty.Access.WRITE_ONLY) private Integer unsupportedControls; + /** Creates an instance of RegulatoryComplianceStandardProperties class. */ + public RegulatoryComplianceStandardProperties() { + } + /** * Get the state property: Aggregative state based on the standard's supported controls states. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RuleResultsInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RuleResultsInner.java index a4559ce50bb81..2737512d54422 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RuleResultsInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RuleResultsInner.java @@ -18,6 +18,10 @@ public final class RuleResultsInner extends ProxyResource { @JsonProperty(value = "properties") private RuleResultsProperties properties; + /** Creates an instance of RuleResultsInner class. */ + public RuleResultsInner() { + } + /** * Get the properties property: Rule results properties. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RulesResultsInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RulesResultsInner.java index db23b64bb1722..2463dd2b01fa4 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RulesResultsInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/RulesResultsInner.java @@ -17,6 +17,10 @@ public final class RulesResultsInner { @JsonProperty(value = "value") private List value; + /** Creates an instance of RulesResultsInner class. */ + public RulesResultsInner() { + } + /** * Get the value property: List of rule results. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ScanInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ScanInner.java index b08ec6fe93e32..55dba8acba1da 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ScanInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ScanInner.java @@ -18,6 +18,10 @@ public final class ScanInner extends ProxyResource { @JsonProperty(value = "properties") private ScanProperties properties; + /** Creates an instance of ScanInner class. */ + public ScanInner() { + } + /** * Get the properties property: A vulnerability assessment scan record properties. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ScanResultInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ScanResultInner.java index 208c7a07429f8..2878009933cd9 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ScanResultInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ScanResultInner.java @@ -18,6 +18,10 @@ public final class ScanResultInner extends ProxyResource { @JsonProperty(value = "properties") private ScanResultProperties properties; + /** Creates an instance of ScanResultInner class. */ + public ScanResultInner() { + } + /** * Get the properties property: A vulnerability assessment scan result properties for a single rule. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ScanResultsInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ScanResultsInner.java index 77c65fc5775f6..5a1807b5830cc 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ScanResultsInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ScanResultsInner.java @@ -17,6 +17,10 @@ public final class ScanResultsInner { @JsonProperty(value = "value") private List value; + /** Creates an instance of ScanResultsInner class. */ + public ScanResultsInner() { + } + /** * Get the value property: List of vulnerability assessment scan results. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ScansInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ScansInner.java index c7fe09fba031a..18b1d47cef6ac 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ScansInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ScansInner.java @@ -17,6 +17,10 @@ public final class ScansInner { @JsonProperty(value = "value") private List value; + /** Creates an instance of ScansInner class. */ + public ScansInner() { + } + /** * Get the value property: List of vulnerability assessment scan records. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ScoreDetails.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ScoreDetails.java index 895a5de4c8482..86bc7f839e8f2 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ScoreDetails.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ScoreDetails.java @@ -28,6 +28,10 @@ public final class ScoreDetails { @JsonProperty(value = "percentage", access = JsonProperty.Access.WRITE_ONLY) private Double percentage; + /** Creates an instance of ScoreDetails class. */ + public ScoreDetails() { + } + /** * Get the max property: Maximum score available. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecureScoreControlDefinitionItemInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecureScoreControlDefinitionItemInner.java index 09e286c4837b4..01753634ece23 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecureScoreControlDefinitionItemInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecureScoreControlDefinitionItemInner.java @@ -4,7 +4,7 @@ package com.azure.resourcemanager.security.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.ProxyResource; import com.azure.resourcemanager.security.models.AzureResourceLink; import com.azure.resourcemanager.security.models.SecureScoreControlDefinitionSource; @@ -12,7 +12,7 @@ import java.util.List; /** Information about the security control. */ -@Fluent +@Immutable public final class SecureScoreControlDefinitionItemInner extends ProxyResource { /* * Security Control Definition Properties. @@ -20,6 +20,10 @@ public final class SecureScoreControlDefinitionItemInner extends ProxyResource { @JsonProperty(value = "properties") private SecureScoreControlDefinitionItemProperties innerProperties; + /** Creates an instance of SecureScoreControlDefinitionItemInner class. */ + public SecureScoreControlDefinitionItemInner() { + } + /** * Get the innerProperties property: Security Control Definition Properties. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecureScoreControlDefinitionItemProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecureScoreControlDefinitionItemProperties.java index ef96599cabd60..85b8e148b797f 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecureScoreControlDefinitionItemProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecureScoreControlDefinitionItemProperties.java @@ -43,6 +43,10 @@ public final class SecureScoreControlDefinitionItemProperties { @JsonProperty(value = "assessmentDefinitions", access = JsonProperty.Access.WRITE_ONLY) private List assessmentDefinitions; + /** Creates an instance of SecureScoreControlDefinitionItemProperties class. */ + public SecureScoreControlDefinitionItemProperties() { + } + /** * Get the displayName property: User friendly display name of the control. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecureScoreControlDetailsInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecureScoreControlDetailsInner.java index 3d954786da568..bb6d92135d582 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecureScoreControlDetailsInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecureScoreControlDetailsInner.java @@ -17,6 +17,10 @@ public final class SecureScoreControlDetailsInner extends ProxyResource { @JsonProperty(value = "properties") private SecureScoreControlScoreDetailsInner innerProperties; + /** Creates an instance of SecureScoreControlDetailsInner class. */ + public SecureScoreControlDetailsInner() { + } + /** * Get the innerProperties property: Calculation result data in control level. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecureScoreControlScoreDetailsInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecureScoreControlScoreDetailsInner.java index 5c67099c0ea66..2b4dc29cf1f47 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecureScoreControlScoreDetailsInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecureScoreControlScoreDetailsInner.java @@ -53,6 +53,10 @@ public final class SecureScoreControlScoreDetailsInner { @JsonProperty(value = "definition") private SecureScoreControlDefinitionItemInner definition; + /** Creates an instance of SecureScoreControlScoreDetailsInner class. */ + public SecureScoreControlScoreDetailsInner() { + } + /** * Get the displayName property: User friendly display name of the control. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecureScoreItemInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecureScoreItemInner.java index ebbfafa7a06df..c0a9ae5164559 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecureScoreItemInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecureScoreItemInner.java @@ -17,6 +17,10 @@ public final class SecureScoreItemInner extends ProxyResource { @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY) private SecureScoreItemProperties innerProperties; + /** Creates an instance of SecureScoreItemInner class. */ + public SecureScoreItemInner() { + } + /** * Get the innerProperties property: Secure score item. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecureScoreItemProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecureScoreItemProperties.java index 2942b1308bc44..889361f4149e3 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecureScoreItemProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecureScoreItemProperties.java @@ -29,6 +29,10 @@ public final class SecureScoreItemProperties { @JsonProperty(value = "weight", access = JsonProperty.Access.WRITE_ONLY) private Long weight; + /** Creates an instance of SecureScoreItemProperties class. */ + public SecureScoreItemProperties() { + } + /** * Get the displayName property: The initiative’s name. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityAssessmentMetadataProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityAssessmentMetadataProperties.java index 49a80f81f929f..d2452d561791e 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityAssessmentMetadataProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityAssessmentMetadataProperties.java @@ -92,6 +92,10 @@ public class SecurityAssessmentMetadataProperties { @JsonProperty(value = "partnerData") private SecurityAssessmentMetadataPartnerData partnerData; + /** Creates an instance of SecurityAssessmentMetadataProperties class. */ + public SecurityAssessmentMetadataProperties() { + } + /** * Get the displayName property: User friendly display name of the assessment. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityAssessmentMetadataPropertiesResponse.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityAssessmentMetadataPropertiesResponse.java index 79edeb6041a24..eb080f0c54c3f 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityAssessmentMetadataPropertiesResponse.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityAssessmentMetadataPropertiesResponse.java @@ -45,6 +45,10 @@ public final class SecurityAssessmentMetadataPropertiesResponse extends Security @JsonProperty(value = "techniques") private List techniques; + /** Creates an instance of SecurityAssessmentMetadataPropertiesResponse class. */ + public SecurityAssessmentMetadataPropertiesResponse() { + } + /** * Get the publishDates property: The publishDates property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityAssessmentMetadataResponseInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityAssessmentMetadataResponseInner.java index 464d3fd6893e4..1167a0a33df64 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityAssessmentMetadataResponseInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityAssessmentMetadataResponseInner.java @@ -28,6 +28,10 @@ public final class SecurityAssessmentMetadataResponseInner extends ProxyResource @JsonProperty(value = "properties") private SecurityAssessmentMetadataPropertiesResponse innerProperties; + /** Creates an instance of SecurityAssessmentMetadataResponseInner class. */ + public SecurityAssessmentMetadataResponseInner() { + } + /** * Get the innerProperties property: Describes properties of an assessment metadata response. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityAssessmentProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityAssessmentProperties.java index 14b0b4f965233..d5d7b67530e43 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityAssessmentProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityAssessmentProperties.java @@ -22,6 +22,10 @@ public final class SecurityAssessmentProperties extends SecurityAssessmentProper @JsonProperty(value = "status", required = true) private AssessmentStatus status; + /** Creates an instance of SecurityAssessmentProperties class. */ + public SecurityAssessmentProperties() { + } + /** * Get the status property: The result of the assessment. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityAssessmentPropertiesResponse.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityAssessmentPropertiesResponse.java index 77165cd3302c8..9c4c6cdec8b2a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityAssessmentPropertiesResponse.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityAssessmentPropertiesResponse.java @@ -22,6 +22,10 @@ public final class SecurityAssessmentPropertiesResponse extends SecurityAssessme @JsonProperty(value = "status", required = true) private AssessmentStatusResponse status; + /** Creates an instance of SecurityAssessmentPropertiesResponse class. */ + public SecurityAssessmentPropertiesResponse() { + } + /** * Get the status property: The result of the assessment. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityAssessmentResponseInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityAssessmentResponseInner.java index 7a43120bfef56..f3579b78ef478 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityAssessmentResponseInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityAssessmentResponseInner.java @@ -22,6 +22,10 @@ public final class SecurityAssessmentResponseInner extends ProxyResource { @JsonProperty(value = "properties") private SecurityAssessmentPropertiesResponse innerProperties; + /** Creates an instance of SecurityAssessmentResponseInner class. */ + public SecurityAssessmentResponseInner() { + } + /** * Get the innerProperties property: Describes properties of an assessment. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityConnectorInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityConnectorInner.java index f8344e7df9473..a58a7ab73eb4f 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityConnectorInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityConnectorInner.java @@ -30,6 +30,10 @@ public final class SecurityConnectorInner extends Resource { @JsonProperty(value = "properties") private SecurityConnectorProperties innerProperties; + /** Creates an instance of SecurityConnectorInner class. */ + public SecurityConnectorInner() { + } + /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityConnectorProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityConnectorProperties.java index 2cac070f5240d..df14a0076cf6b 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityConnectorProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityConnectorProperties.java @@ -47,6 +47,10 @@ public final class SecurityConnectorProperties { @JsonProperty(value = "environmentData") private EnvironmentData environmentData; + /** Creates an instance of SecurityConnectorProperties class. */ + public SecurityConnectorProperties() { + } + /** * Get the hierarchyIdentifier property: The multi cloud resource identifier (account id in case of AWS connector, * project number in case of GCP connector). diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityContactInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityContactInner.java index 07903281ba4ce..0606139e3bf25 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityContactInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityContactInner.java @@ -19,6 +19,10 @@ public final class SecurityContactInner extends ProxyResource { @JsonProperty(value = "properties") private SecurityContactProperties innerProperties; + /** Creates an instance of SecurityContactInner class. */ + public SecurityContactInner() { + } + /** * Get the innerProperties property: Security contact data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityContactProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityContactProperties.java index 5a39a46643e50..34c16a792122a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityContactProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityContactProperties.java @@ -38,6 +38,10 @@ public final class SecurityContactProperties { @JsonProperty(value = "notificationsByRole") private SecurityContactPropertiesNotificationsByRole notificationsByRole; + /** Creates an instance of SecurityContactProperties class. */ + public SecurityContactProperties() { + } + /** * Get the emails property: List of email addresses which will get notifications from Microsoft Defender for Cloud * by the configurations defined in this security contact. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecuritySolutionInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecuritySolutionInner.java index a15b7c6f85448..8428e621636df 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecuritySolutionInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecuritySolutionInner.java @@ -25,6 +25,10 @@ public final class SecuritySolutionInner extends ProxyResource { @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY) private String location; + /** Creates an instance of SecuritySolutionInner class. */ + public SecuritySolutionInner() { + } + /** * Get the innerProperties property: The properties property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecuritySolutionProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecuritySolutionProperties.java index 81d148558acdd..bc67143e9d6f4 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecuritySolutionProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecuritySolutionProperties.java @@ -37,6 +37,10 @@ public final class SecuritySolutionProperties { @JsonProperty(value = "protectionStatus", required = true) private String protectionStatus; + /** Creates an instance of SecuritySolutionProperties class. */ + public SecuritySolutionProperties() { + } + /** * Get the securityFamily property: The security family of the security solution. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecuritySolutionsReferenceDataListInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecuritySolutionsReferenceDataListInner.java index 45b433136d6ac..be2aebaf7be45 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecuritySolutionsReferenceDataListInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecuritySolutionsReferenceDataListInner.java @@ -18,6 +18,10 @@ public final class SecuritySolutionsReferenceDataListInner { @JsonProperty(value = "value") private List value; + /** Creates an instance of SecuritySolutionsReferenceDataListInner class. */ + public SecuritySolutionsReferenceDataListInner() { + } + /** * Get the value property: The value property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecuritySolutionsReferenceDataProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecuritySolutionsReferenceDataProperties.java index 4f2e70b8234c9..b4a576857f5e9 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecuritySolutionsReferenceDataProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecuritySolutionsReferenceDataProperties.java @@ -54,6 +54,10 @@ public final class SecuritySolutionsReferenceDataProperties { @JsonProperty(value = "template", required = true) private String template; + /** Creates an instance of SecuritySolutionsReferenceDataProperties class. */ + public SecuritySolutionsReferenceDataProperties() { + } + /** * Get the securityFamily property: The security family of the security solution. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecuritySubAssessmentInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecuritySubAssessmentInner.java index a428347dede6f..c85cdd9877f97 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecuritySubAssessmentInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecuritySubAssessmentInner.java @@ -21,6 +21,10 @@ public final class SecuritySubAssessmentInner extends ProxyResource { @JsonProperty(value = "properties") private SecuritySubAssessmentProperties innerProperties; + /** Creates an instance of SecuritySubAssessmentInner class. */ + public SecuritySubAssessmentInner() { + } + /** * Get the innerProperties property: Describes properties of an sub-assessment. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecuritySubAssessmentProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecuritySubAssessmentProperties.java index b25b00770bde3..f4f1e1f44376e 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecuritySubAssessmentProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecuritySubAssessmentProperties.java @@ -74,6 +74,10 @@ public final class SecuritySubAssessmentProperties { @JsonProperty(value = "additionalData") private AdditionalData additionalData; + /** Creates an instance of SecuritySubAssessmentProperties class. */ + public SecuritySubAssessmentProperties() { + } + /** * Get the id property: Vulnerability ID. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityTaskInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityTaskInner.java index cd0739369c831..fa8e115ac63ed 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityTaskInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityTaskInner.java @@ -19,6 +19,10 @@ public final class SecurityTaskInner extends ProxyResource { @JsonProperty(value = "properties") private SecurityTaskProperties innerProperties; + /** Creates an instance of SecurityTaskInner class. */ + public SecurityTaskInner() { + } + /** * Get the innerProperties property: Describes properties of a task. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityTaskProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityTaskProperties.java index d98fc0f152265..9ef646e4b3763 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityTaskProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SecurityTaskProperties.java @@ -42,6 +42,10 @@ public final class SecurityTaskProperties { @JsonProperty(value = "subState", access = JsonProperty.Access.WRITE_ONLY) private String subState; + /** Creates an instance of SecurityTaskProperties class. */ + public SecurityTaskProperties() { + } + /** * Get the state property: State of the task (Active, Resolved etc.). * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ServerVulnerabilityAssessmentInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ServerVulnerabilityAssessmentInner.java index d11962664c9b7..d8d3765bebf7d 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ServerVulnerabilityAssessmentInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ServerVulnerabilityAssessmentInner.java @@ -4,13 +4,13 @@ package com.azure.resourcemanager.security.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.ProxyResource; import com.azure.resourcemanager.security.models.ServerVulnerabilityAssessmentPropertiesProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; /** Describes the server vulnerability assessment details on a resource. */ -@Fluent +@Immutable public final class ServerVulnerabilityAssessmentInner extends ProxyResource { /* * describes ServerVulnerabilityAssessment properties. @@ -18,6 +18,10 @@ public final class ServerVulnerabilityAssessmentInner extends ProxyResource { @JsonProperty(value = "properties") private ServerVulnerabilityAssessmentProperties innerProperties; + /** Creates an instance of ServerVulnerabilityAssessmentInner class. */ + public ServerVulnerabilityAssessmentInner() { + } + /** * Get the innerProperties property: describes ServerVulnerabilityAssessment properties. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ServerVulnerabilityAssessmentProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ServerVulnerabilityAssessmentProperties.java index 45865753c2768..aa33e32ee0b78 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ServerVulnerabilityAssessmentProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ServerVulnerabilityAssessmentProperties.java @@ -17,6 +17,10 @@ public final class ServerVulnerabilityAssessmentProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ServerVulnerabilityAssessmentPropertiesProvisioningState provisioningState; + /** Creates an instance of ServerVulnerabilityAssessmentProperties class. */ + public ServerVulnerabilityAssessmentProperties() { + } + /** * Get the provisioningState property: The provisioningState of the vulnerability assessment capability on the VM. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ServerVulnerabilityAssessmentsListInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ServerVulnerabilityAssessmentsListInner.java index 1ec3b43ba32f9..7c7f8bfb21fe2 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ServerVulnerabilityAssessmentsListInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ServerVulnerabilityAssessmentsListInner.java @@ -17,6 +17,10 @@ public final class ServerVulnerabilityAssessmentsListInner { @JsonProperty(value = "value") private List value; + /** Creates an instance of ServerVulnerabilityAssessmentsListInner class. */ + public ServerVulnerabilityAssessmentsListInner() { + } + /** * Get the value property: The value property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SettingInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SettingInner.java index df5c6637d5a40..b59fbee9d4eb8 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SettingInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SettingInner.java @@ -25,6 +25,10 @@ }) @Immutable public class SettingInner extends ProxyResource { + /** Creates an instance of SettingInner class. */ + public SettingInner() { + } + /** * Validates the instance. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SoftwareInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SoftwareInner.java index ccc82c53c9468..79b16ad3b98bf 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SoftwareInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SoftwareInner.java @@ -19,6 +19,10 @@ public final class SoftwareInner extends ProxyResource { @JsonProperty(value = "properties", required = true) private SoftwareProperties innerProperties = new SoftwareProperties(); + /** Creates an instance of SoftwareInner class. */ + public SoftwareInner() { + } + /** * Get the innerProperties property: Properties of the Software Inventory resource. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SoftwareProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SoftwareProperties.java index 52a74c8e2cb77..7e927b4a03472 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SoftwareProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/SoftwareProperties.java @@ -65,6 +65,10 @@ public final class SoftwareProperties { @JsonProperty(value = "firstSeenAt") private String firstSeenAt; + /** Creates an instance of SoftwareProperties class. */ + public SoftwareProperties() { + } + /** * Get the deviceId property: Unique identifier for the virtual machine in the service. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/TopologyResourceInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/TopologyResourceInner.java index 15f766d137ceb..46ac4e99ca12c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/TopologyResourceInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/TopologyResourceInner.java @@ -26,6 +26,10 @@ public final class TopologyResourceInner extends ProxyResource { @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY) private String location; + /** Creates an instance of TopologyResourceInner class. */ + public TopologyResourceInner() { + } + /** * Get the innerProperties property: The properties property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/TopologyResourceProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/TopologyResourceProperties.java index 3c5937ea8c677..daa7e08a00259 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/TopologyResourceProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/TopologyResourceProperties.java @@ -25,6 +25,10 @@ public final class TopologyResourceProperties { @JsonProperty(value = "topologyResources", access = JsonProperty.Access.WRITE_ONLY) private List topologyResources; + /** Creates an instance of TopologyResourceProperties class. */ + public TopologyResourceProperties() { + } + /** * Get the calculatedDateTime property: The UTC time on which the topology was calculated. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/UpdateIoTSecuritySolutionProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/UpdateIoTSecuritySolutionProperties.java index 34f4d5f707947..f2bf349d65c32 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/UpdateIoTSecuritySolutionProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/UpdateIoTSecuritySolutionProperties.java @@ -25,6 +25,10 @@ public final class UpdateIoTSecuritySolutionProperties { @JsonProperty(value = "recommendationsConfiguration") private List recommendationsConfiguration; + /** Creates an instance of UpdateIoTSecuritySolutionProperties class. */ + public UpdateIoTSecuritySolutionProperties() { + } + /** * Get the userDefinedResources property: Properties of the IoT Security solution's user defined resources. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/WorkspaceSettingInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/WorkspaceSettingInner.java index 47ccd528178a0..d6be77efcba1a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/WorkspaceSettingInner.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/WorkspaceSettingInner.java @@ -17,6 +17,10 @@ public final class WorkspaceSettingInner extends ProxyResource { @JsonProperty(value = "properties") private WorkspaceSettingProperties innerProperties; + /** Creates an instance of WorkspaceSettingInner class. */ + public WorkspaceSettingInner() { + } + /** * Get the innerProperties property: Workspace setting data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/WorkspaceSettingProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/WorkspaceSettingProperties.java index 81854814d8d80..4b9e5b362af56 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/WorkspaceSettingProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/WorkspaceSettingProperties.java @@ -24,6 +24,10 @@ public final class WorkspaceSettingProperties { @JsonProperty(value = "scope", required = true) private String scope; + /** Creates an instance of WorkspaceSettingProperties class. */ + public WorkspaceSettingProperties() { + } + /** * Get the workspaceId property: The full Azure ID of the workspace to save the data in. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdaptiveApplicationControlsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdaptiveApplicationControlsClientImpl.java index 20eee2c3d1664..39caa2beac784 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdaptiveApplicationControlsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdaptiveApplicationControlsClientImpl.java @@ -204,16 +204,15 @@ private Mono> listWithResponseAs /** * Gets a list of application control machine groups for the subscription. * - * @param includePathRecommendations Include the policy rules. - * @param summary Return output in a summarized form. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 application control machine groups for the subscription on successful completion of {@link * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listAsync(Boolean includePathRecommendations, Boolean summary) { + private Mono listAsync() { + final Boolean includePathRecommendations = null; + final Boolean summary = null; return listWithResponseAsync(includePathRecommendations, summary) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -221,17 +220,18 @@ private Mono listAsync(Boolean includePat /** * Gets a list of application control machine groups for the subscription. * + * @param includePathRecommendations Include the policy rules. + * @param summary Return output in a summarized form. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 application control machine groups for the subscription on successful completion of {@link - * Mono}. + * @return a list of application control machine groups for the subscription along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listAsync() { - final Boolean includePathRecommendations = null; - final Boolean summary = null; - return listWithResponseAsync(includePathRecommendations, summary) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Response listWithResponse( + Boolean includePathRecommendations, Boolean summary, Context context) { + return listWithResponseAsync(includePathRecommendations, summary, context).block(); } /** @@ -245,24 +245,7 @@ private Mono listAsync() { public AdaptiveApplicationControlGroupsInner list() { final Boolean includePathRecommendations = null; final Boolean summary = null; - return listAsync(includePathRecommendations, summary).block(); - } - - /** - * Gets a list of application control machine groups for the subscription. - * - * @param includePathRecommendations Include the policy rules. - * @param summary Return output in a summarized form. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 application control machine groups for the subscription along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response listWithResponse( - Boolean includePathRecommendations, Boolean summary, Context context) { - return listWithResponseAsync(includePathRecommendations, summary, context).block(); + return listWithResponse(includePathRecommendations, summary, Context.NONE).getValue(); } /** @@ -385,14 +368,16 @@ private Mono getAsync(String ascLocation, * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param groupName Name of an application control machine group. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 application control VM/server group. + * @return an application control VM/server group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AdaptiveApplicationControlGroupInner get(String ascLocation, String groupName) { - return getAsync(ascLocation, groupName).block(); + public Response getWithResponse( + String ascLocation, String groupName, Context context) { + return getWithResponseAsync(ascLocation, groupName, context).block(); } /** @@ -401,16 +386,14 @@ public AdaptiveApplicationControlGroupInner get(String ascLocation, String group * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param groupName Name of an application control machine group. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 application control VM/server group along with {@link Response}. + * @return an application control VM/server group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String ascLocation, String groupName, Context context) { - return getWithResponseAsync(ascLocation, groupName, context).block(); + public AdaptiveApplicationControlGroupInner get(String ascLocation, String groupName) { + return getWithResponse(ascLocation, groupName, Context.NONE).getValue(); } /** @@ -548,15 +531,16 @@ private Mono putAsync( * locations. * @param groupName Name of an application control machine group. * @param body The body parameter. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AdaptiveApplicationControlGroupInner put( - String ascLocation, String groupName, AdaptiveApplicationControlGroupInner body) { - return putAsync(ascLocation, groupName, body).block(); + public Response putWithResponse( + String ascLocation, String groupName, AdaptiveApplicationControlGroupInner body, Context context) { + return putWithResponseAsync(ascLocation, groupName, body, context).block(); } /** @@ -566,16 +550,15 @@ public AdaptiveApplicationControlGroupInner put( * locations. * @param groupName Name of an application control machine group. * @param body The body parameter. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response putWithResponse( - String ascLocation, String groupName, AdaptiveApplicationControlGroupInner body, Context context) { - return putWithResponseAsync(ascLocation, groupName, body, context).block(); + public AdaptiveApplicationControlGroupInner put( + String ascLocation, String groupName, AdaptiveApplicationControlGroupInner body) { + return putWithResponse(ascLocation, groupName, body, Context.NONE).getValue(); } /** @@ -694,13 +677,15 @@ private Mono deleteAsync(String ascLocation, String groupName) { * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param groupName Name of an application control machine group. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public void delete(String ascLocation, String groupName) { - deleteAsync(ascLocation, groupName).block(); + public Response deleteWithResponse(String ascLocation, String groupName, Context context) { + return deleteWithResponseAsync(ascLocation, groupName, context).block(); } /** @@ -709,14 +694,12 @@ public void delete(String ascLocation, String groupName) { * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param groupName Name of an application control machine group. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public Response deleteWithResponse(String ascLocation, String groupName, Context context) { - return deleteWithResponseAsync(ascLocation, groupName, context).block(); + public void delete(String ascLocation, String groupName) { + deleteWithResponse(ascLocation, groupName, Context.NONE); } } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdaptiveApplicationControlsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdaptiveApplicationControlsImpl.java index d85f2e7347490..df7f0426fc39a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdaptiveApplicationControlsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdaptiveApplicationControlsImpl.java @@ -29,15 +29,6 @@ public AdaptiveApplicationControlsImpl( this.serviceManager = serviceManager; } - public AdaptiveApplicationControlGroups list() { - AdaptiveApplicationControlGroupsInner inner = this.serviceClient().list(); - if (inner != null) { - return new AdaptiveApplicationControlGroupsImpl(inner, this.manager()); - } else { - return null; - } - } - public Response listWithResponse( Boolean includePathRecommendations, Boolean summary, Context context) { Response inner = @@ -53,10 +44,10 @@ public Response listWithResponse( } } - public AdaptiveApplicationControlGroup get(String ascLocation, String groupName) { - AdaptiveApplicationControlGroupInner inner = this.serviceClient().get(ascLocation, groupName); + public AdaptiveApplicationControlGroups list() { + AdaptiveApplicationControlGroupsInner inner = this.serviceClient().list(); if (inner != null) { - return new AdaptiveApplicationControlGroupImpl(inner, this.manager()); + return new AdaptiveApplicationControlGroupsImpl(inner, this.manager()); } else { return null; } @@ -77,14 +68,23 @@ public Response getWithResponse( } } - public void deleteByResourceGroup(String ascLocation, String groupName) { - this.serviceClient().delete(ascLocation, groupName); + public AdaptiveApplicationControlGroup get(String ascLocation, String groupName) { + AdaptiveApplicationControlGroupInner inner = this.serviceClient().get(ascLocation, groupName); + if (inner != null) { + return new AdaptiveApplicationControlGroupImpl(inner, this.manager()); + } else { + return null; + } } - public Response deleteWithResponse(String ascLocation, String groupName, Context context) { + public Response deleteByResourceGroupWithResponse(String ascLocation, String groupName, Context context) { return this.serviceClient().deleteWithResponse(ascLocation, groupName, context); } + public void deleteByResourceGroup(String ascLocation, String groupName) { + this.serviceClient().delete(ascLocation, groupName); + } + public AdaptiveApplicationControlGroup getById(String id) { String ascLocation = Utils.getValueFromIdByName(id, "locations"); if (ascLocation == null) { @@ -145,7 +145,7 @@ public void deleteById(String id) { "The resource ID '%s' is not valid. Missing path segment 'applicationWhitelistings'.", id))); } - this.deleteWithResponse(ascLocation, groupName, Context.NONE); + this.deleteByResourceGroupWithResponse(ascLocation, groupName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { @@ -166,7 +166,7 @@ public Response deleteByIdWithResponse(String id, Context context) { "The resource ID '%s' is not valid. Missing path segment 'applicationWhitelistings'.", id))); } - return this.deleteWithResponse(ascLocation, groupName, context); + return this.deleteByResourceGroupWithResponse(ascLocation, groupName, context); } private AdaptiveApplicationControlsClient serviceClient() { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdaptiveNetworkHardeningsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdaptiveNetworkHardeningsClientImpl.java index f1eec1610396d..907ead74ff459 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdaptiveNetworkHardeningsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdaptiveNetworkHardeningsClientImpl.java @@ -547,20 +547,27 @@ private Mono getAsync( * @param resourceType The type of the resource. * @param resourceName Name of the resource. * @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a single Adaptive Network Hardening resource. + * @return a single Adaptive Network Hardening resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AdaptiveNetworkHardeningInner get( + public Response getWithResponse( String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, - String adaptiveNetworkHardeningResourceName) { - return getAsync( - resourceGroupName, resourceNamespace, resourceType, resourceName, adaptiveNetworkHardeningResourceName) + String adaptiveNetworkHardeningResourceName, + Context context) { + return getWithResponseAsync( + resourceGroupName, + resourceNamespace, + resourceType, + resourceName, + adaptiveNetworkHardeningResourceName, + context) .block(); } @@ -573,28 +580,26 @@ public AdaptiveNetworkHardeningInner get( * @param resourceType The type of the resource. * @param resourceName Name of the resource. * @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a single Adaptive Network Hardening resource along with {@link Response}. + * @return a single Adaptive Network Hardening resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( + public AdaptiveNetworkHardeningInner get( String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, - String adaptiveNetworkHardeningResourceName, - Context context) { - return getWithResponseAsync( + String adaptiveNetworkHardeningResourceName) { + return getWithResponse( resourceGroupName, resourceNamespace, resourceType, resourceName, adaptiveNetworkHardeningResourceName, - context) - .block(); + Context.NONE) + .getValue(); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdaptiveNetworkHardeningsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdaptiveNetworkHardeningsImpl.java index 9a126918a8ab7..afcb58db5f239 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdaptiveNetworkHardeningsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdaptiveNetworkHardeningsImpl.java @@ -47,51 +47,51 @@ public PagedIterable listByExtendedResource( return Utils.mapPage(inner, inner1 -> new AdaptiveNetworkHardeningImpl(inner1, this.manager())); } - public AdaptiveNetworkHardening get( + public Response getWithResponse( String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, - String adaptiveNetworkHardeningResourceName) { - AdaptiveNetworkHardeningInner inner = + String adaptiveNetworkHardeningResourceName, + Context context) { + Response inner = this .serviceClient() - .get( + .getWithResponse( resourceGroupName, resourceNamespace, resourceType, resourceName, - adaptiveNetworkHardeningResourceName); + adaptiveNetworkHardeningResourceName, + context); if (inner != null) { - return new AdaptiveNetworkHardeningImpl(inner, this.manager()); + return new SimpleResponse<>( + inner.getRequest(), + inner.getStatusCode(), + inner.getHeaders(), + new AdaptiveNetworkHardeningImpl(inner.getValue(), this.manager())); } else { return null; } } - public Response getWithResponse( + public AdaptiveNetworkHardening get( String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, - String adaptiveNetworkHardeningResourceName, - Context context) { - Response inner = + String adaptiveNetworkHardeningResourceName) { + AdaptiveNetworkHardeningInner inner = this .serviceClient() - .getWithResponse( + .get( resourceGroupName, resourceNamespace, resourceType, resourceName, - adaptiveNetworkHardeningResourceName, - context); + adaptiveNetworkHardeningResourceName); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new AdaptiveNetworkHardeningImpl(inner.getValue(), this.manager())); + return new AdaptiveNetworkHardeningImpl(inner, this.manager()); } else { return null; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdvancedThreatProtectionsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdvancedThreatProtectionsClientImpl.java index e7db4ab50dc28..95cc69e16d834 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdvancedThreatProtectionsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdvancedThreatProtectionsClientImpl.java @@ -160,29 +160,29 @@ private Mono getAsync(String resourceId) { * Gets the Advanced Threat Protection settings for the specified 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 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 Advanced Threat Protection settings for the specified resource. + * @return the Advanced Threat Protection settings for the specified resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AdvancedThreatProtectionSettingInner get(String resourceId) { - return getAsync(resourceId).block(); + public Response getWithResponse(String resourceId, Context context) { + return getWithResponseAsync(resourceId, context).block(); } /** * Gets the Advanced Threat Protection settings for the specified 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 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 Advanced Threat Protection settings for the specified resource along with {@link Response}. + * @return the Advanced Threat Protection settings for the specified resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceId, Context context) { - return getWithResponseAsync(resourceId, context).block(); + public AdvancedThreatProtectionSettingInner get(String resourceId) { + return getWithResponse(resourceId, Context.NONE).getValue(); } /** @@ -303,15 +303,16 @@ private Mono createAsync( * * @param resourceId The 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. * @throws 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 Advanced Threat Protection resource. + * @return the Advanced Threat Protection resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AdvancedThreatProtectionSettingInner create( - String resourceId, AdvancedThreatProtectionSettingInner advancedThreatProtectionSetting) { - return createAsync(resourceId, advancedThreatProtectionSetting).block(); + public Response createWithResponse( + String resourceId, AdvancedThreatProtectionSettingInner advancedThreatProtectionSetting, Context context) { + return createWithResponseAsync(resourceId, advancedThreatProtectionSetting, context).block(); } /** @@ -319,15 +320,14 @@ public AdvancedThreatProtectionSettingInner create( * * @param resourceId The 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. * @throws 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 Advanced Threat Protection resource along with {@link Response}. + * @return the Advanced Threat Protection resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createWithResponse( - String resourceId, AdvancedThreatProtectionSettingInner advancedThreatProtectionSetting, Context context) { - return createWithResponseAsync(resourceId, advancedThreatProtectionSetting, context).block(); + public AdvancedThreatProtectionSettingInner create( + String resourceId, AdvancedThreatProtectionSettingInner advancedThreatProtectionSetting) { + return createWithResponse(resourceId, advancedThreatProtectionSetting, Context.NONE).getValue(); } } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdvancedThreatProtectionsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdvancedThreatProtectionsImpl.java index 656b13e303168..90cde665e7882 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdvancedThreatProtectionsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdvancedThreatProtectionsImpl.java @@ -27,15 +27,6 @@ public AdvancedThreatProtectionsImpl( this.serviceManager = serviceManager; } - public AdvancedThreatProtectionSetting get(String resourceId) { - AdvancedThreatProtectionSettingInner inner = this.serviceClient().get(resourceId); - if (inner != null) { - return new AdvancedThreatProtectionSettingImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse(String resourceId, Context context) { Response inner = this.serviceClient().getWithResponse(resourceId, context); @@ -50,6 +41,15 @@ public Response getWithResponse(String resource } } + public AdvancedThreatProtectionSetting get(String resourceId) { + AdvancedThreatProtectionSettingInner inner = this.serviceClient().get(resourceId); + if (inner != null) { + return new AdvancedThreatProtectionSettingImpl(inner, this.manager()); + } else { + return null; + } + } + public AdvancedThreatProtectionSetting getById(String id) { String resourceId = Utils diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AlertsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AlertsClientImpl.java index e3ac539cc2100..abb8b0fa5aa03 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AlertsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AlertsClientImpl.java @@ -1103,14 +1103,16 @@ private Mono getSubscriptionLevelAsync(String ascLocation, String al * @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 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. + * @return an alert that is associated with a subscription along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AlertInner getSubscriptionLevel(String ascLocation, String alertName) { - return getSubscriptionLevelAsync(ascLocation, alertName).block(); + public Response getSubscriptionLevelWithResponse( + String ascLocation, String alertName, Context context) { + return getSubscriptionLevelWithResponseAsync(ascLocation, alertName, context).block(); } /** @@ -1119,16 +1121,14 @@ public AlertInner getSubscriptionLevel(String ascLocation, String alertName) { * @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 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 an alert that is associated with a subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getSubscriptionLevelWithResponse( - String ascLocation, String alertName, Context context) { - return getSubscriptionLevelWithResponseAsync(ascLocation, alertName, context).block(); + public AlertInner getSubscriptionLevel(String ascLocation, String alertName) { + return getSubscriptionLevelWithResponse(ascLocation, alertName, Context.NONE).getValue(); } /** @@ -1272,14 +1272,17 @@ private Mono getResourceGroupLevelAsync( * @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 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. + * @return an alert that is associated a resource group or a resource in a resource group along with {@link + * Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AlertInner getResourceGroupLevel(String resourceGroupName, String ascLocation, String alertName) { - return getResourceGroupLevelAsync(resourceGroupName, ascLocation, alertName).block(); + public Response getResourceGroupLevelWithResponse( + String resourceGroupName, String ascLocation, String alertName, Context context) { + return getResourceGroupLevelWithResponseAsync(resourceGroupName, ascLocation, alertName, context).block(); } /** @@ -1290,17 +1293,14 @@ public AlertInner getResourceGroupLevel(String resourceGroupName, String ascLoca * @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 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 an alert that is associated a resource group or a resource in a resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getResourceGroupLevelWithResponse( - String resourceGroupName, String ascLocation, String alertName, Context context) { - return getResourceGroupLevelWithResponseAsync(resourceGroupName, ascLocation, alertName, context).block(); + public AlertInner getResourceGroupLevel(String resourceGroupName, String ascLocation, String alertName) { + return getResourceGroupLevelWithResponse(resourceGroupName, ascLocation, alertName, Context.NONE).getValue(); } /** @@ -1422,13 +1422,16 @@ private Mono updateSubscriptionLevelStateToDismissAsync(String ascLocation * @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 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) - public void updateSubscriptionLevelStateToDismiss(String ascLocation, String alertName) { - updateSubscriptionLevelStateToDismissAsync(ascLocation, alertName).block(); + public Response updateSubscriptionLevelStateToDismissWithResponse( + String ascLocation, String alertName, Context context) { + return updateSubscriptionLevelStateToDismissWithResponseAsync(ascLocation, alertName, context).block(); } /** @@ -1437,16 +1440,13 @@ public void updateSubscriptionLevelStateToDismiss(String ascLocation, String ale * @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 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) - public Response updateSubscriptionLevelStateToDismissWithResponse( - String ascLocation, String alertName, Context context) { - return updateSubscriptionLevelStateToDismissWithResponseAsync(ascLocation, alertName, context).block(); + public void updateSubscriptionLevelStateToDismiss(String ascLocation, String alertName) { + updateSubscriptionLevelStateToDismissWithResponse(ascLocation, alertName, Context.NONE); } /** @@ -1568,13 +1568,16 @@ private Mono updateSubscriptionLevelStateToResolveAsync(String ascLocation * @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 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) - public void updateSubscriptionLevelStateToResolve(String ascLocation, String alertName) { - updateSubscriptionLevelStateToResolveAsync(ascLocation, alertName).block(); + public Response updateSubscriptionLevelStateToResolveWithResponse( + String ascLocation, String alertName, Context context) { + return updateSubscriptionLevelStateToResolveWithResponseAsync(ascLocation, alertName, context).block(); } /** @@ -1583,16 +1586,13 @@ public void updateSubscriptionLevelStateToResolve(String ascLocation, String ale * @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 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) - public Response updateSubscriptionLevelStateToResolveWithResponse( - String ascLocation, String alertName, Context context) { - return updateSubscriptionLevelStateToResolveWithResponseAsync(ascLocation, alertName, context).block(); + public void updateSubscriptionLevelStateToResolve(String ascLocation, String alertName) { + updateSubscriptionLevelStateToResolveWithResponse(ascLocation, alertName, Context.NONE); } /** @@ -1714,13 +1714,16 @@ private Mono updateSubscriptionLevelStateToActivateAsync(String ascLocatio * @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 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) - public void updateSubscriptionLevelStateToActivate(String ascLocation, String alertName) { - updateSubscriptionLevelStateToActivateAsync(ascLocation, alertName).block(); + public Response updateSubscriptionLevelStateToActivateWithResponse( + String ascLocation, String alertName, Context context) { + return updateSubscriptionLevelStateToActivateWithResponseAsync(ascLocation, alertName, context).block(); } /** @@ -1729,16 +1732,13 @@ public void updateSubscriptionLevelStateToActivate(String ascLocation, String al * @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 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) - public Response updateSubscriptionLevelStateToActivateWithResponse( - String ascLocation, String alertName, Context context) { - return updateSubscriptionLevelStateToActivateWithResponseAsync(ascLocation, alertName, context).block(); + public void updateSubscriptionLevelStateToActivate(String ascLocation, String alertName) { + updateSubscriptionLevelStateToActivateWithResponse(ascLocation, alertName, Context.NONE); } /** @@ -1860,13 +1860,16 @@ private Mono updateSubscriptionLevelStateToInProgressAsync(String ascLocat * @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 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) - public void updateSubscriptionLevelStateToInProgress(String ascLocation, String alertName) { - updateSubscriptionLevelStateToInProgressAsync(ascLocation, alertName).block(); + public Response updateSubscriptionLevelStateToInProgressWithResponse( + String ascLocation, String alertName, Context context) { + return updateSubscriptionLevelStateToInProgressWithResponseAsync(ascLocation, alertName, context).block(); } /** @@ -1875,16 +1878,13 @@ public void updateSubscriptionLevelStateToInProgress(String ascLocation, String * @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 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) - public Response updateSubscriptionLevelStateToInProgressWithResponse( - String ascLocation, String alertName, Context context) { - return updateSubscriptionLevelStateToInProgressWithResponseAsync(ascLocation, alertName, context).block(); + public void updateSubscriptionLevelStateToInProgress(String ascLocation, String alertName) { + updateSubscriptionLevelStateToInProgressWithResponse(ascLocation, alertName, Context.NONE); } /** @@ -2025,13 +2025,18 @@ private Mono updateResourceGroupLevelStateToResolveAsync( * @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 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) - public void updateResourceGroupLevelStateToResolve(String resourceGroupName, String ascLocation, String alertName) { - updateResourceGroupLevelStateToResolveAsync(resourceGroupName, ascLocation, alertName).block(); + public Response updateResourceGroupLevelStateToResolveWithResponse( + String resourceGroupName, String ascLocation, String alertName, Context context) { + return updateResourceGroupLevelStateToResolveWithResponseAsync( + resourceGroupName, ascLocation, alertName, context) + .block(); } /** @@ -2042,18 +2047,13 @@ public void updateResourceGroupLevelStateToResolve(String resourceGroupName, Str * @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 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) - public Response updateResourceGroupLevelStateToResolveWithResponse( - String resourceGroupName, String ascLocation, String alertName, Context context) { - return updateResourceGroupLevelStateToResolveWithResponseAsync( - resourceGroupName, ascLocation, alertName, context) - .block(); + public void updateResourceGroupLevelStateToResolve(String resourceGroupName, String ascLocation, String alertName) { + updateResourceGroupLevelStateToResolveWithResponse(resourceGroupName, ascLocation, alertName, Context.NONE); } /** @@ -2194,13 +2194,18 @@ private Mono updateResourceGroupLevelStateToDismissAsync( * @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 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) - public void updateResourceGroupLevelStateToDismiss(String resourceGroupName, String ascLocation, String alertName) { - updateResourceGroupLevelStateToDismissAsync(resourceGroupName, ascLocation, alertName).block(); + public Response updateResourceGroupLevelStateToDismissWithResponse( + String resourceGroupName, String ascLocation, String alertName, Context context) { + return updateResourceGroupLevelStateToDismissWithResponseAsync( + resourceGroupName, ascLocation, alertName, context) + .block(); } /** @@ -2211,18 +2216,13 @@ public void updateResourceGroupLevelStateToDismiss(String resourceGroupName, Str * @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 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) - public Response updateResourceGroupLevelStateToDismissWithResponse( - String resourceGroupName, String ascLocation, String alertName, Context context) { - return updateResourceGroupLevelStateToDismissWithResponseAsync( - resourceGroupName, ascLocation, alertName, context) - .block(); + public void updateResourceGroupLevelStateToDismiss(String resourceGroupName, String ascLocation, String alertName) { + updateResourceGroupLevelStateToDismissWithResponse(resourceGroupName, ascLocation, alertName, Context.NONE); } /** @@ -2363,14 +2363,18 @@ private Mono updateResourceGroupLevelStateToActivateAsync( * @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 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) - public void updateResourceGroupLevelStateToActivate( - String resourceGroupName, String ascLocation, String alertName) { - updateResourceGroupLevelStateToActivateAsync(resourceGroupName, ascLocation, alertName).block(); + public Response updateResourceGroupLevelStateToActivateWithResponse( + String resourceGroupName, String ascLocation, String alertName, Context context) { + return updateResourceGroupLevelStateToActivateWithResponseAsync( + resourceGroupName, ascLocation, alertName, context) + .block(); } /** @@ -2381,18 +2385,14 @@ public void updateResourceGroupLevelStateToActivate( * @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 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) - public Response updateResourceGroupLevelStateToActivateWithResponse( - String resourceGroupName, String ascLocation, String alertName, Context context) { - return updateResourceGroupLevelStateToActivateWithResponseAsync( - resourceGroupName, ascLocation, alertName, context) - .block(); + public void updateResourceGroupLevelStateToActivate( + String resourceGroupName, String ascLocation, String alertName) { + updateResourceGroupLevelStateToActivateWithResponse(resourceGroupName, ascLocation, alertName, Context.NONE); } /** @@ -2533,14 +2533,18 @@ private Mono updateResourceGroupLevelStateToInProgressAsync( * @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 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) - public void updateResourceGroupLevelStateToInProgress( - String resourceGroupName, String ascLocation, String alertName) { - updateResourceGroupLevelStateToInProgressAsync(resourceGroupName, ascLocation, alertName).block(); + public Response updateResourceGroupLevelStateToInProgressWithResponse( + String resourceGroupName, String ascLocation, String alertName, Context context) { + return updateResourceGroupLevelStateToInProgressWithResponseAsync( + resourceGroupName, ascLocation, alertName, context) + .block(); } /** @@ -2551,18 +2555,14 @@ public void updateResourceGroupLevelStateToInProgress( * @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 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) - public Response updateResourceGroupLevelStateToInProgressWithResponse( - String resourceGroupName, String ascLocation, String alertName, Context context) { - return updateResourceGroupLevelStateToInProgressWithResponseAsync( - resourceGroupName, ascLocation, alertName, context) - .block(); + public void updateResourceGroupLevelStateToInProgress( + String resourceGroupName, String ascLocation, String alertName) { + updateResourceGroupLevelStateToInProgressWithResponse(resourceGroupName, ascLocation, alertName, Context.NONE); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AlertsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AlertsImpl.java index 1d25088b7cbff..2256ce9a09cd4 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AlertsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AlertsImpl.java @@ -70,15 +70,6 @@ public PagedIterable listResourceGroupLevelByRegion( return Utils.mapPage(inner, inner1 -> new AlertImpl(inner1, this.manager())); } - public Alert getSubscriptionLevel(String ascLocation, String alertName) { - AlertInner inner = this.serviceClient().getSubscriptionLevel(ascLocation, alertName); - if (inner != null) { - return new AlertImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getSubscriptionLevelWithResponse(String ascLocation, String alertName, Context context) { Response inner = this.serviceClient().getSubscriptionLevelWithResponse(ascLocation, alertName, context); @@ -93,8 +84,8 @@ public Response getSubscriptionLevelWithResponse(String ascLocation, Stri } } - public Alert getResourceGroupLevel(String resourceGroupName, String ascLocation, String alertName) { - AlertInner inner = this.serviceClient().getResourceGroupLevel(resourceGroupName, ascLocation, alertName); + public Alert getSubscriptionLevel(String ascLocation, String alertName) { + AlertInner inner = this.serviceClient().getSubscriptionLevel(ascLocation, alertName); if (inner != null) { return new AlertImpl(inner, this.manager()); } else { @@ -117,8 +108,13 @@ public Response getResourceGroupLevelWithResponse( } } - public void updateSubscriptionLevelStateToDismiss(String ascLocation, String alertName) { - this.serviceClient().updateSubscriptionLevelStateToDismiss(ascLocation, alertName); + public Alert getResourceGroupLevel(String resourceGroupName, String ascLocation, String alertName) { + AlertInner inner = this.serviceClient().getResourceGroupLevel(resourceGroupName, ascLocation, alertName); + if (inner != null) { + return new AlertImpl(inner, this.manager()); + } else { + return null; + } } public Response updateSubscriptionLevelStateToDismissWithResponse( @@ -126,8 +122,8 @@ public Response updateSubscriptionLevelStateToDismissWithResponse( return this.serviceClient().updateSubscriptionLevelStateToDismissWithResponse(ascLocation, alertName, context); } - public void updateSubscriptionLevelStateToResolve(String ascLocation, String alertName) { - this.serviceClient().updateSubscriptionLevelStateToResolve(ascLocation, alertName); + public void updateSubscriptionLevelStateToDismiss(String ascLocation, String alertName) { + this.serviceClient().updateSubscriptionLevelStateToDismiss(ascLocation, alertName); } public Response updateSubscriptionLevelStateToResolveWithResponse( @@ -135,8 +131,8 @@ public Response updateSubscriptionLevelStateToResolveWithResponse( return this.serviceClient().updateSubscriptionLevelStateToResolveWithResponse(ascLocation, alertName, context); } - public void updateSubscriptionLevelStateToActivate(String ascLocation, String alertName) { - this.serviceClient().updateSubscriptionLevelStateToActivate(ascLocation, alertName); + public void updateSubscriptionLevelStateToResolve(String ascLocation, String alertName) { + this.serviceClient().updateSubscriptionLevelStateToResolve(ascLocation, alertName); } public Response updateSubscriptionLevelStateToActivateWithResponse( @@ -144,8 +140,8 @@ public Response updateSubscriptionLevelStateToActivateWithResponse( return this.serviceClient().updateSubscriptionLevelStateToActivateWithResponse(ascLocation, alertName, context); } - public void updateSubscriptionLevelStateToInProgress(String ascLocation, String alertName) { - this.serviceClient().updateSubscriptionLevelStateToInProgress(ascLocation, alertName); + public void updateSubscriptionLevelStateToActivate(String ascLocation, String alertName) { + this.serviceClient().updateSubscriptionLevelStateToActivate(ascLocation, alertName); } public Response updateSubscriptionLevelStateToInProgressWithResponse( @@ -155,8 +151,8 @@ public Response updateSubscriptionLevelStateToInProgressWithResponse( .updateSubscriptionLevelStateToInProgressWithResponse(ascLocation, alertName, context); } - public void updateResourceGroupLevelStateToResolve(String resourceGroupName, String ascLocation, String alertName) { - this.serviceClient().updateResourceGroupLevelStateToResolve(resourceGroupName, ascLocation, alertName); + public void updateSubscriptionLevelStateToInProgress(String ascLocation, String alertName) { + this.serviceClient().updateSubscriptionLevelStateToInProgress(ascLocation, alertName); } public Response updateResourceGroupLevelStateToResolveWithResponse( @@ -166,8 +162,8 @@ public Response updateResourceGroupLevelStateToResolveWithResponse( .updateResourceGroupLevelStateToResolveWithResponse(resourceGroupName, ascLocation, alertName, context); } - public void updateResourceGroupLevelStateToDismiss(String resourceGroupName, String ascLocation, String alertName) { - this.serviceClient().updateResourceGroupLevelStateToDismiss(resourceGroupName, ascLocation, alertName); + public void updateResourceGroupLevelStateToResolve(String resourceGroupName, String ascLocation, String alertName) { + this.serviceClient().updateResourceGroupLevelStateToResolve(resourceGroupName, ascLocation, alertName); } public Response updateResourceGroupLevelStateToDismissWithResponse( @@ -177,9 +173,8 @@ public Response updateResourceGroupLevelStateToDismissWithResponse( .updateResourceGroupLevelStateToDismissWithResponse(resourceGroupName, ascLocation, alertName, context); } - public void updateResourceGroupLevelStateToActivate( - String resourceGroupName, String ascLocation, String alertName) { - this.serviceClient().updateResourceGroupLevelStateToActivate(resourceGroupName, ascLocation, alertName); + public void updateResourceGroupLevelStateToDismiss(String resourceGroupName, String ascLocation, String alertName) { + this.serviceClient().updateResourceGroupLevelStateToDismiss(resourceGroupName, ascLocation, alertName); } public Response updateResourceGroupLevelStateToActivateWithResponse( @@ -189,9 +184,9 @@ public Response updateResourceGroupLevelStateToActivateWithResponse( .updateResourceGroupLevelStateToActivateWithResponse(resourceGroupName, ascLocation, alertName, context); } - public void updateResourceGroupLevelStateToInProgress( + public void updateResourceGroupLevelStateToActivate( String resourceGroupName, String ascLocation, String alertName) { - this.serviceClient().updateResourceGroupLevelStateToInProgress(resourceGroupName, ascLocation, alertName); + this.serviceClient().updateResourceGroupLevelStateToActivate(resourceGroupName, ascLocation, alertName); } public Response updateResourceGroupLevelStateToInProgressWithResponse( @@ -201,6 +196,11 @@ public Response updateResourceGroupLevelStateToInProgressWithResponse( .updateResourceGroupLevelStateToInProgressWithResponse(resourceGroupName, ascLocation, alertName, context); } + public void updateResourceGroupLevelStateToInProgress( + String resourceGroupName, String ascLocation, String alertName) { + this.serviceClient().updateResourceGroupLevelStateToInProgress(resourceGroupName, ascLocation, alertName); + } + public void simulate(String ascLocation, AlertSimulatorRequestBody alertSimulatorRequestBody) { this.serviceClient().simulate(ascLocation, alertSimulatorRequestBody); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AlertsSuppressionRulesClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AlertsSuppressionRulesClientImpl.java index 84e62c0e96b3f..2db3e5edfe812 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AlertsSuppressionRulesClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AlertsSuppressionRulesClientImpl.java @@ -397,30 +397,30 @@ private Mono getAsync(String alertsSuppressionRuleNa * 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 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. + * @return dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription along with {@link + * Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AlertsSuppressionRuleInner get(String alertsSuppressionRuleName) { - return getAsync(alertsSuppressionRuleName).block(); + public Response getWithResponse(String alertsSuppressionRuleName, Context context) { + return getWithResponseAsync(alertsSuppressionRuleName, context).block(); } /** * 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 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}. + * @return dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String alertsSuppressionRuleName, Context context) { - return getWithResponseAsync(alertsSuppressionRuleName, context).block(); + public AlertsSuppressionRuleInner get(String alertsSuppressionRuleName) { + return getWithResponse(alertsSuppressionRuleName, Context.NONE).getValue(); } /** @@ -551,15 +551,16 @@ private Mono updateAsync( * * @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 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. + * @return describes the suppression rule along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AlertsSuppressionRuleInner update( - String alertsSuppressionRuleName, AlertsSuppressionRuleInner alertsSuppressionRule) { - return updateAsync(alertsSuppressionRuleName, alertsSuppressionRule).block(); + public Response updateWithResponse( + String alertsSuppressionRuleName, AlertsSuppressionRuleInner alertsSuppressionRule, Context context) { + return updateWithResponseAsync(alertsSuppressionRuleName, alertsSuppressionRule, context).block(); } /** @@ -567,16 +568,15 @@ public AlertsSuppressionRuleInner update( * * @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 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}. + * @return describes the suppression rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String alertsSuppressionRuleName, AlertsSuppressionRuleInner alertsSuppressionRule, Context context) { - return updateWithResponseAsync(alertsSuppressionRuleName, alertsSuppressionRule, context).block(); + public AlertsSuppressionRuleInner update( + String alertsSuppressionRuleName, AlertsSuppressionRuleInner alertsSuppressionRule) { + return updateWithResponse(alertsSuppressionRuleName, alertsSuppressionRule, Context.NONE).getValue(); } /** @@ -685,28 +685,28 @@ private Mono deleteAsync(String alertsSuppressionRuleName) { * 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 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) - public void delete(String alertsSuppressionRuleName) { - deleteAsync(alertsSuppressionRuleName).block(); + public Response deleteWithResponse(String alertsSuppressionRuleName, Context context) { + return deleteWithResponseAsync(alertsSuppressionRuleName, context).block(); } /** * 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 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) - public Response deleteWithResponse(String alertsSuppressionRuleName, Context context) { - return deleteWithResponseAsync(alertsSuppressionRuleName, context).block(); + public void delete(String alertsSuppressionRuleName) { + deleteWithResponse(alertsSuppressionRuleName, Context.NONE); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AlertsSuppressionRulesImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AlertsSuppressionRulesImpl.java index 927ab7312dd0c..fe83aead0087d 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AlertsSuppressionRulesImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AlertsSuppressionRulesImpl.java @@ -37,15 +37,6 @@ public PagedIterable list(String alertType, Context conte return Utils.mapPage(inner, inner1 -> new AlertsSuppressionRuleImpl(inner1, this.manager())); } - public AlertsSuppressionRule get(String alertsSuppressionRuleName) { - AlertsSuppressionRuleInner inner = this.serviceClient().get(alertsSuppressionRuleName); - if (inner != null) { - return new AlertsSuppressionRuleImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse(String alertsSuppressionRuleName, Context context) { Response inner = this.serviceClient().getWithResponse(alertsSuppressionRuleName, context); @@ -60,10 +51,8 @@ public Response getWithResponse(String alertsSuppressionR } } - public AlertsSuppressionRule update( - String alertsSuppressionRuleName, AlertsSuppressionRuleInner alertsSuppressionRule) { - AlertsSuppressionRuleInner inner = - this.serviceClient().update(alertsSuppressionRuleName, alertsSuppressionRule); + public AlertsSuppressionRule get(String alertsSuppressionRuleName) { + AlertsSuppressionRuleInner inner = this.serviceClient().get(alertsSuppressionRuleName); if (inner != null) { return new AlertsSuppressionRuleImpl(inner, this.manager()); } else { @@ -86,14 +75,25 @@ public Response updateWithResponse( } } - public void delete(String alertsSuppressionRuleName) { - this.serviceClient().delete(alertsSuppressionRuleName); + public AlertsSuppressionRule update( + String alertsSuppressionRuleName, AlertsSuppressionRuleInner alertsSuppressionRule) { + AlertsSuppressionRuleInner inner = + this.serviceClient().update(alertsSuppressionRuleName, alertsSuppressionRule); + if (inner != null) { + return new AlertsSuppressionRuleImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse(String alertsSuppressionRuleName, Context context) { return this.serviceClient().deleteWithResponse(alertsSuppressionRuleName, context); } + public void delete(String alertsSuppressionRuleName) { + this.serviceClient().delete(alertsSuppressionRuleName); + } + private AlertsSuppressionRulesClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AllowedConnectionsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AllowedConnectionsClientImpl.java index 883366baaa261..d84e03cbfe9cb 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AllowedConnectionsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AllowedConnectionsClientImpl.java @@ -570,16 +570,17 @@ private Mono getAsync( * @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 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. + * type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AllowedConnectionsResourceInner get( - String resourceGroupName, String ascLocation, ConnectionType connectionType) { - return getAsync(resourceGroupName, ascLocation, connectionType).block(); + public Response getWithResponse( + String resourceGroupName, String ascLocation, ConnectionType connectionType, Context context) { + return getWithResponseAsync(resourceGroupName, ascLocation, connectionType, context).block(); } /** @@ -591,17 +592,16 @@ public AllowedConnectionsResourceInner get( * @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 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}. + * type. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String ascLocation, ConnectionType connectionType, Context context) { - return getWithResponseAsync(resourceGroupName, ascLocation, connectionType, context).block(); + public AllowedConnectionsResourceInner get( + String resourceGroupName, String ascLocation, ConnectionType connectionType) { + return getWithResponse(resourceGroupName, ascLocation, connectionType, Context.NONE).getValue(); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AllowedConnectionsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AllowedConnectionsImpl.java index 01c60e06fca04..66d36cb8fb158 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AllowedConnectionsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AllowedConnectionsImpl.java @@ -49,16 +49,6 @@ public PagedIterable listByHomeRegion(String ascLoca return Utils.mapPage(inner, inner1 -> new AllowedConnectionsResourceImpl(inner1, this.manager())); } - public AllowedConnectionsResource get(String resourceGroupName, String ascLocation, ConnectionType connectionType) { - AllowedConnectionsResourceInner inner = - this.serviceClient().get(resourceGroupName, ascLocation, connectionType); - if (inner != null) { - return new AllowedConnectionsResourceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String ascLocation, ConnectionType connectionType, Context context) { Response inner = @@ -74,6 +64,16 @@ public Response getWithResponse( } } + public AllowedConnectionsResource get(String resourceGroupName, String ascLocation, ConnectionType connectionType) { + AllowedConnectionsResourceInner inner = + this.serviceClient().get(resourceGroupName, ascLocation, connectionType); + if (inner != null) { + return new AllowedConnectionsResourceImpl(inner, this.manager()); + } else { + return null; + } + } + private AllowedConnectionsClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ApplicationOperationsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ApplicationOperationsClientImpl.java index 3b98cdb318f8d..827ef1cb05894 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ApplicationOperationsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ApplicationOperationsClientImpl.java @@ -189,29 +189,29 @@ private Mono getAsync(String applicationId) { * 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 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. + * @return a specific application for the requested scope by applicationId along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ApplicationInner get(String applicationId) { - return getAsync(applicationId).block(); + public Response getWithResponse(String applicationId, Context context) { + return getWithResponseAsync(applicationId, context).block(); } /** * 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 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}. + * @return a specific application for the requested scope by applicationId. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String applicationId, Context context) { - return getWithResponseAsync(applicationId, context).block(); + public ApplicationInner get(String applicationId) { + return getWithResponse(applicationId, Context.NONE).getValue(); } /** @@ -335,14 +335,16 @@ private Mono createOrUpdateAsync(String applicationId, Applica * * @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 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. + * @return security Application over a given scope along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ApplicationInner createOrUpdate(String applicationId, ApplicationInner application) { - return createOrUpdateAsync(applicationId, application).block(); + public Response createOrUpdateWithResponse( + String applicationId, ApplicationInner application, Context context) { + return createOrUpdateWithResponseAsync(applicationId, application, context).block(); } /** @@ -350,16 +352,14 @@ public ApplicationInner createOrUpdate(String applicationId, ApplicationInner ap * * @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 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}. + * @return security Application over a given scope. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String applicationId, ApplicationInner application, Context context) { - return createOrUpdateWithResponseAsync(applicationId, application, context).block(); + public ApplicationInner createOrUpdate(String applicationId, ApplicationInner application) { + return createOrUpdateWithResponse(applicationId, application, Context.NONE).getValue(); } /** @@ -453,27 +453,27 @@ private Mono deleteAsync(String applicationId) { * 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 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) - public void delete(String applicationId) { - deleteAsync(applicationId).block(); + public Response deleteWithResponse(String applicationId, Context context) { + return deleteWithResponseAsync(applicationId, context).block(); } /** * 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 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) - public Response deleteWithResponse(String applicationId, Context context) { - return deleteWithResponseAsync(applicationId, context).block(); + public void delete(String applicationId) { + deleteWithResponse(applicationId, Context.NONE); } } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ApplicationOperationsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ApplicationOperationsImpl.java index 78482153f3fb2..7d6d4ab2601b3 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ApplicationOperationsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ApplicationOperationsImpl.java @@ -26,15 +26,6 @@ public ApplicationOperationsImpl( this.serviceManager = serviceManager; } - public Application get(String applicationId) { - ApplicationInner inner = this.serviceClient().get(applicationId); - if (inner != null) { - return new ApplicationImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse(String applicationId, Context context) { Response inner = this.serviceClient().getWithResponse(applicationId, context); if (inner != null) { @@ -48,14 +39,23 @@ public Response getWithResponse(String applicationId, Context conte } } - public void delete(String applicationId) { - this.serviceClient().delete(applicationId); + public Application get(String applicationId) { + ApplicationInner inner = this.serviceClient().get(applicationId); + if (inner != null) { + return new ApplicationImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse(String applicationId, Context context) { return this.serviceClient().deleteWithResponse(applicationId, context); } + public void delete(String applicationId) { + this.serviceClient().delete(applicationId); + } + public Application getById(String id) { String applicationId = Utils.getValueFromIdByName(id, "applications"); if (applicationId == null) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AssessmentsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AssessmentsClientImpl.java index 25379c4d8fdab..ac1ccd24f76df 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AssessmentsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AssessmentsClientImpl.java @@ -342,15 +342,14 @@ private Mono> getWithResponseAsync( * * @param resourceId The identifier of the resource. * @param assessmentName The Assessment Key - Unique key for the assessment type. - * @param expand OData expand. Optional. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a security assessment on your scanned resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceId, String assessmentName, ExpandEnum expand) { + private Mono getAsync(String resourceId, String assessmentName) { + final ExpandEnum expand = null; return getWithResponseAsync(resourceId, assessmentName, expand) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -360,16 +359,17 @@ private Mono getAsync( * * @param resourceId The 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a security assessment on your scanned resource on successful completion of {@link Mono}. + * @return a security assessment on your scanned resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceId, String assessmentName) { - final ExpandEnum expand = null; - return getWithResponseAsync(resourceId, assessmentName, expand) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Response getWithResponse( + String resourceId, String assessmentName, ExpandEnum expand, Context context) { + return getWithResponseAsync(resourceId, assessmentName, expand, context).block(); } /** @@ -385,25 +385,7 @@ private Mono getAsync(String resourceId, String @ServiceMethod(returns = ReturnType.SINGLE) public SecurityAssessmentResponseInner get(String resourceId, String assessmentName) { final ExpandEnum expand = null; - return getAsync(resourceId, assessmentName, expand).block(); - } - - /** - * Get a security assessment on your scanned resource. - * - * @param resourceId The 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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a security assessment on your scanned resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceId, String assessmentName, ExpandEnum expand, Context context) { - return getWithResponseAsync(resourceId, assessmentName, expand, context).block(); + return getWithResponse(resourceId, assessmentName, expand, Context.NONE).getValue(); } /** @@ -524,15 +506,16 @@ private Mono createOrUpdateAsync( * @param resourceId The 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security assessment on a resource - response format. + * @return security assessment on a resource - response format along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SecurityAssessmentResponseInner createOrUpdate( - String resourceId, String assessmentName, SecurityAssessment assessment) { - return createOrUpdateAsync(resourceId, assessmentName, assessment).block(); + public Response createOrUpdateWithResponse( + String resourceId, String assessmentName, SecurityAssessment assessment, Context context) { + return createOrUpdateWithResponseAsync(resourceId, assessmentName, assessment, context).block(); } /** @@ -542,16 +525,15 @@ public SecurityAssessmentResponseInner createOrUpdate( * @param resourceId The 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security assessment on a resource - response format along with {@link Response}. + * @return security assessment on a resource - response format. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceId, String assessmentName, SecurityAssessment assessment, Context context) { - return createOrUpdateWithResponseAsync(resourceId, assessmentName, assessment, context).block(); + public SecurityAssessmentResponseInner createOrUpdate( + String resourceId, String assessmentName, SecurityAssessment assessment) { + return createOrUpdateWithResponse(resourceId, assessmentName, assessment, Context.NONE).getValue(); } /** @@ -642,13 +624,15 @@ private Mono deleteAsync(String resourceId, String assessmentName) { * * @param resourceId The 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. * @throws 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) - public void delete(String resourceId, String assessmentName) { - deleteAsync(resourceId, assessmentName).block(); + public Response deleteWithResponse(String resourceId, String assessmentName, Context context) { + return deleteWithResponseAsync(resourceId, assessmentName, context).block(); } /** @@ -657,15 +641,13 @@ public void delete(String resourceId, String assessmentName) { * * @param resourceId The 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. * @throws 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) - public Response deleteWithResponse(String resourceId, String assessmentName, Context context) { - return deleteWithResponseAsync(resourceId, assessmentName, context).block(); + public void delete(String resourceId, String assessmentName) { + deleteWithResponse(resourceId, assessmentName, Context.NONE); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AssessmentsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AssessmentsImpl.java index 94c185658d5ff..0e5cc1fb108d6 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AssessmentsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AssessmentsImpl.java @@ -38,15 +38,6 @@ public PagedIterable list(String scope, Context cont return Utils.mapPage(inner, inner1 -> new SecurityAssessmentResponseImpl(inner1, this.manager())); } - public SecurityAssessmentResponse get(String resourceId, String assessmentName) { - SecurityAssessmentResponseInner inner = this.serviceClient().get(resourceId, assessmentName); - if (inner != null) { - return new SecurityAssessmentResponseImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceId, String assessmentName, ExpandEnum expand, Context context) { Response inner = @@ -62,14 +53,23 @@ public Response getWithResponse( } } - public void deleteByResourceGroup(String resourceId, String assessmentName) { - this.serviceClient().delete(resourceId, assessmentName); + public SecurityAssessmentResponse get(String resourceId, String assessmentName) { + SecurityAssessmentResponseInner inner = this.serviceClient().get(resourceId, assessmentName); + if (inner != null) { + return new SecurityAssessmentResponseImpl(inner, this.manager()); + } else { + return null; + } } - public Response deleteWithResponse(String resourceId, String assessmentName, Context context) { + public Response deleteByResourceGroupWithResponse(String resourceId, String assessmentName, Context context) { return this.serviceClient().deleteWithResponse(resourceId, assessmentName, context); } + public void deleteByResourceGroup(String resourceId, String assessmentName) { + this.serviceClient().delete(resourceId, assessmentName); + } + public SecurityAssessmentResponse getById(String id) { String resourceId = Utils @@ -140,7 +140,7 @@ public void deleteById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'assessments'.", id))); } - this.deleteWithResponse(resourceId, assessmentName, Context.NONE); + this.deleteByResourceGroupWithResponse(resourceId, assessmentName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { @@ -164,7 +164,7 @@ public Response deleteByIdWithResponse(String id, Context context) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'assessments'.", id))); } - return this.deleteWithResponse(resourceId, assessmentName, context); + return this.deleteByResourceGroupWithResponse(resourceId, assessmentName, context); } private AssessmentsClient serviceClient() { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AssessmentsMetadatasClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AssessmentsMetadatasClientImpl.java index 145d5b7d250b8..f7bba4c4697a8 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AssessmentsMetadatasClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AssessmentsMetadatasClientImpl.java @@ -351,30 +351,30 @@ private Mono getAsync(String assessment * Get metadata information on an assessment type. * * @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 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 metadata information on an assessment type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SecurityAssessmentMetadataResponseInner get(String assessmentMetadataName) { - return getAsync(assessmentMetadataName).block(); + public Response getWithResponse( + String assessmentMetadataName, Context context) { + return getWithResponseAsync(assessmentMetadataName, context).block(); } /** * Get metadata information on an assessment type. * * @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 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 metadata information on an assessment type. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String assessmentMetadataName, Context context) { - return getWithResponseAsync(assessmentMetadataName, context).block(); + public SecurityAssessmentMetadataResponseInner get(String assessmentMetadataName) { + return getWithResponse(assessmentMetadataName, Context.NONE).getValue(); } /** @@ -629,30 +629,30 @@ private Mono getInSubscriptionAsync(Str * 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 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 an assessment type in a specific subscription along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SecurityAssessmentMetadataResponseInner getInSubscription(String assessmentMetadataName) { - return getInSubscriptionAsync(assessmentMetadataName).block(); + public Response getInSubscriptionWithResponse( + String assessmentMetadataName, Context context) { + return getInSubscriptionWithResponseAsync(assessmentMetadataName, context).block(); } /** * 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 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 an assessment type in a specific subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getInSubscriptionWithResponse( - String assessmentMetadataName, Context context) { - return getInSubscriptionWithResponseAsync(assessmentMetadataName, context).block(); + public SecurityAssessmentMetadataResponseInner getInSubscription(String assessmentMetadataName) { + return getInSubscriptionWithResponse(assessmentMetadataName, Context.NONE).getValue(); } /** @@ -783,15 +783,16 @@ private Mono createInSubscriptionAsync( * * @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 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 security assessment metadata response along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SecurityAssessmentMetadataResponseInner createInSubscription( - String assessmentMetadataName, SecurityAssessmentMetadataResponseInner assessmentMetadata) { - return createInSubscriptionAsync(assessmentMetadataName, assessmentMetadata).block(); + public Response createInSubscriptionWithResponse( + String assessmentMetadataName, SecurityAssessmentMetadataResponseInner assessmentMetadata, Context context) { + return createInSubscriptionWithResponseAsync(assessmentMetadataName, assessmentMetadata, context).block(); } /** @@ -799,16 +800,15 @@ public SecurityAssessmentMetadataResponseInner createInSubscription( * * @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 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 security assessment metadata response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createInSubscriptionWithResponse( - String assessmentMetadataName, SecurityAssessmentMetadataResponseInner assessmentMetadata, Context context) { - return createInSubscriptionWithResponseAsync(assessmentMetadataName, assessmentMetadata, context).block(); + public SecurityAssessmentMetadataResponseInner createInSubscription( + String assessmentMetadataName, SecurityAssessmentMetadataResponseInner assessmentMetadata) { + return createInSubscriptionWithResponse(assessmentMetadataName, assessmentMetadata, Context.NONE).getValue(); } /** @@ -919,13 +919,15 @@ private Mono deleteInSubscriptionAsync(String assessmentMetadataName) { * 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 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) - public void deleteInSubscription(String assessmentMetadataName) { - deleteInSubscriptionAsync(assessmentMetadataName).block(); + public Response deleteInSubscriptionWithResponse(String assessmentMetadataName, Context context) { + return deleteInSubscriptionWithResponseAsync(assessmentMetadataName, context).block(); } /** @@ -933,15 +935,13 @@ public void deleteInSubscription(String assessmentMetadataName) { * 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 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) - public Response deleteInSubscriptionWithResponse(String assessmentMetadataName, Context context) { - return deleteInSubscriptionWithResponseAsync(assessmentMetadataName, context).block(); + public void deleteInSubscription(String assessmentMetadataName) { + deleteInSubscriptionWithResponse(assessmentMetadataName, Context.NONE); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AssessmentsMetadatasImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AssessmentsMetadatasImpl.java index 4fef86c2f308f..5a878349df354 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AssessmentsMetadatasImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AssessmentsMetadatasImpl.java @@ -37,15 +37,6 @@ public PagedIterable list(Context context) { return Utils.mapPage(inner, inner1 -> new SecurityAssessmentMetadataResponseImpl(inner1, this.manager())); } - public SecurityAssessmentMetadataResponse get(String assessmentMetadataName) { - SecurityAssessmentMetadataResponseInner inner = this.serviceClient().get(assessmentMetadataName); - if (inner != null) { - return new SecurityAssessmentMetadataResponseImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String assessmentMetadataName, Context context) { Response inner = @@ -61,6 +52,15 @@ public Response getWithResponse( } } + public SecurityAssessmentMetadataResponse get(String assessmentMetadataName) { + SecurityAssessmentMetadataResponseInner inner = this.serviceClient().get(assessmentMetadataName); + if (inner != null) { + return new SecurityAssessmentMetadataResponseImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable listBySubscription() { PagedIterable inner = this.serviceClient().listBySubscription(); return Utils.mapPage(inner, inner1 -> new SecurityAssessmentMetadataResponseImpl(inner1, this.manager())); @@ -71,15 +71,6 @@ public PagedIterable listBySubscription(Cont return Utils.mapPage(inner, inner1 -> new SecurityAssessmentMetadataResponseImpl(inner1, this.manager())); } - public SecurityAssessmentMetadataResponse getInSubscription(String assessmentMetadataName) { - SecurityAssessmentMetadataResponseInner inner = this.serviceClient().getInSubscription(assessmentMetadataName); - if (inner != null) { - return new SecurityAssessmentMetadataResponseImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getInSubscriptionWithResponse( String assessmentMetadataName, Context context) { Response inner = @@ -95,14 +86,23 @@ public Response getInSubscriptionWithRespons } } - public void deleteInSubscription(String assessmentMetadataName) { - this.serviceClient().deleteInSubscription(assessmentMetadataName); + public SecurityAssessmentMetadataResponse getInSubscription(String assessmentMetadataName) { + SecurityAssessmentMetadataResponseInner inner = this.serviceClient().getInSubscription(assessmentMetadataName); + if (inner != null) { + return new SecurityAssessmentMetadataResponseImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteInSubscriptionWithResponse(String assessmentMetadataName, Context context) { return this.serviceClient().deleteInSubscriptionWithResponse(assessmentMetadataName, context); } + public void deleteInSubscription(String assessmentMetadataName) { + this.serviceClient().deleteInSubscription(assessmentMetadataName); + } + public SecurityAssessmentMetadataResponse getInSubscriptionById(String id) { String assessmentMetadataName = Utils.getValueFromIdByName(id, "assessmentMetadata"); if (assessmentMetadataName == null) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AutoProvisioningSettingsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AutoProvisioningSettingsClientImpl.java index 6df43efd05f90..bebfe05a98ee4 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AutoProvisioningSettingsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AutoProvisioningSettingsClientImpl.java @@ -334,29 +334,29 @@ private Mono getAsync(String settingName) { * 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 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. + * @return auto provisioning setting along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AutoProvisioningSettingInner get(String settingName) { - return getAsync(settingName).block(); + public Response getWithResponse(String settingName, Context context) { + return getWithResponseAsync(settingName, context).block(); } /** * 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 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}. + * @return auto provisioning setting. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String settingName, Context context) { - return getWithResponseAsync(settingName, context).block(); + public AutoProvisioningSettingInner get(String settingName) { + return getWithResponse(settingName, Context.NONE).getValue(); } /** @@ -477,14 +477,16 @@ private Mono createAsync(String settingName, AutoP * * @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 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. + * @return auto provisioning setting along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AutoProvisioningSettingInner create(String settingName, AutoProvisioningSettingInner setting) { - return createAsync(settingName, setting).block(); + public Response createWithResponse( + String settingName, AutoProvisioningSettingInner setting, Context context) { + return createWithResponseAsync(settingName, setting, context).block(); } /** @@ -492,16 +494,14 @@ public AutoProvisioningSettingInner create(String settingName, AutoProvisioningS * * @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 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}. + * @return auto provisioning setting. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createWithResponse( - String settingName, AutoProvisioningSettingInner setting, Context context) { - return createWithResponseAsync(settingName, setting, context).block(); + public AutoProvisioningSettingInner create(String settingName, AutoProvisioningSettingInner setting) { + return createWithResponse(settingName, setting, Context.NONE).getValue(); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AutoProvisioningSettingsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AutoProvisioningSettingsImpl.java index 196e41f73cde3..7d284eeb293ee 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AutoProvisioningSettingsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AutoProvisioningSettingsImpl.java @@ -37,15 +37,6 @@ public PagedIterable list(Context context) { return Utils.mapPage(inner, inner1 -> new AutoProvisioningSettingImpl(inner1, this.manager())); } - public AutoProvisioningSetting get(String settingName) { - AutoProvisioningSettingInner inner = this.serviceClient().get(settingName); - if (inner != null) { - return new AutoProvisioningSettingImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse(String settingName, Context context) { Response inner = this.serviceClient().getWithResponse(settingName, context); if (inner != null) { @@ -59,6 +50,15 @@ public Response getWithResponse(String settingName, Con } } + public AutoProvisioningSetting get(String settingName) { + AutoProvisioningSettingInner inner = this.serviceClient().get(settingName); + if (inner != null) { + return new AutoProvisioningSettingImpl(inner, this.manager()); + } else { + return null; + } + } + public AutoProvisioningSetting getById(String id) { String settingName = Utils.getValueFromIdByName(id, "autoProvisioningSettings"); if (settingName == null) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AutomationImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AutomationImpl.java index 7fbddf4ae9065..1fe4c63468b08 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AutomationImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AutomationImpl.java @@ -188,16 +188,16 @@ public Automation refresh(Context context) { return this; } - public AutomationValidationStatus validate(AutomationInner automation) { - return serviceManager.automations().validate(resourceGroupName, automationName, automation); - } - public Response validateWithResponse(AutomationInner automation, Context context) { return serviceManager .automations() .validateWithResponse(resourceGroupName, automationName, automation, context); } + public AutomationValidationStatus validate(AutomationInner automation) { + return serviceManager.automations().validate(resourceGroupName, automationName, automation); + } + public AutomationImpl withRegion(Region location) { this.innerModel().withLocation(location.toString()); return this; diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AutomationsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AutomationsClientImpl.java index 2a9062dc504b5..b86c4395f1d47 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AutomationsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AutomationsClientImpl.java @@ -609,14 +609,16 @@ private Mono getByResourceGroupAsync(String resourceGroupName, * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param automationName The security automation name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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. + * @return the security automation resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AutomationInner getByResourceGroup(String resourceGroupName, String automationName) { - return getByResourceGroupAsync(resourceGroupName, automationName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String automationName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, automationName, context).block(); } /** @@ -625,16 +627,14 @@ public AutomationInner getByResourceGroup(String resourceGroupName, String autom * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param automationName The security automation name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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}. + * @return the security automation resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String automationName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, automationName, context).block(); + public AutomationInner getByResourceGroup(String resourceGroupName, String automationName) { + return getByResourceGroupWithResponse(resourceGroupName, automationName, Context.NONE).getValue(); } /** @@ -779,14 +779,16 @@ private Mono createOrUpdateAsync( * 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 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. + * @return the security automation resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AutomationInner createOrUpdate(String resourceGroupName, String automationName, AutomationInner automation) { - return createOrUpdateAsync(resourceGroupName, automationName, automation).block(); + public Response createOrUpdateWithResponse( + String resourceGroupName, String automationName, AutomationInner automation, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, automationName, automation, context).block(); } /** @@ -797,16 +799,14 @@ public AutomationInner createOrUpdate(String resourceGroupName, String automatio * 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 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}. + * @return the security automation resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, String automationName, AutomationInner automation, Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, automationName, automation, context).block(); + public AutomationInner createOrUpdate(String resourceGroupName, String automationName, AutomationInner automation) { + return createOrUpdateWithResponse(resourceGroupName, automationName, automation, Context.NONE).getValue(); } /** @@ -928,13 +928,15 @@ private Mono deleteAsync(String resourceGroupName, String automationName) * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param automationName The security automation name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public void delete(String resourceGroupName, String automationName) { - deleteAsync(resourceGroupName, automationName).block(); + public Response deleteWithResponse(String resourceGroupName, String automationName, Context context) { + return deleteWithResponseAsync(resourceGroupName, automationName, context).block(); } /** @@ -943,15 +945,13 @@ public void delete(String resourceGroupName, String automationName) { * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param automationName The security automation name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public Response deleteWithResponse(String resourceGroupName, String automationName, Context context) { - return deleteWithResponseAsync(resourceGroupName, automationName, context).block(); + public void delete(String resourceGroupName, String automationName) { + deleteWithResponse(resourceGroupName, automationName, Context.NONE); } /** @@ -1098,15 +1098,16 @@ private Mono validateAsync( * 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 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. + * @return the security automation model state property bag along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AutomationValidationStatusInner validate( - String resourceGroupName, String automationName, AutomationInner automation) { - return validateAsync(resourceGroupName, automationName, automation).block(); + public Response validateWithResponse( + String resourceGroupName, String automationName, AutomationInner automation, Context context) { + return validateWithResponseAsync(resourceGroupName, automationName, automation, context).block(); } /** @@ -1117,16 +1118,15 @@ public AutomationValidationStatusInner validate( * 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 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}. + * @return the security automation model state property bag. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response validateWithResponse( - String resourceGroupName, String automationName, AutomationInner automation, Context context) { - return validateWithResponseAsync(resourceGroupName, automationName, automation, context).block(); + public AutomationValidationStatusInner validate( + String resourceGroupName, String automationName, AutomationInner automation) { + return validateWithResponse(resourceGroupName, automationName, automation, Context.NONE).getValue(); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AutomationsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AutomationsImpl.java index fdf9d3d1b199f..b0ab5eaeb2e0c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AutomationsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AutomationsImpl.java @@ -49,15 +49,6 @@ public PagedIterable listByResourceGroup(String resourceGroupName, C return Utils.mapPage(inner, inner1 -> new AutomationImpl(inner1, this.manager())); } - public Automation getByResourceGroup(String resourceGroupName, String automationName) { - AutomationInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, automationName); - if (inner != null) { - return new AutomationImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse( String resourceGroupName, String automationName, Context context) { Response inner = @@ -73,23 +64,22 @@ public Response getByResourceGroupWithResponse( } } - public void deleteByResourceGroup(String resourceGroupName, String automationName) { - this.serviceClient().delete(resourceGroupName, automationName); + public Automation getByResourceGroup(String resourceGroupName, String automationName) { + AutomationInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, automationName); + if (inner != null) { + return new AutomationImpl(inner, this.manager()); + } else { + return null; + } } - public Response deleteWithResponse(String resourceGroupName, String automationName, Context context) { + public Response deleteByResourceGroupWithResponse( + String resourceGroupName, String automationName, Context context) { return this.serviceClient().deleteWithResponse(resourceGroupName, automationName, context); } - public AutomationValidationStatus validate( - String resourceGroupName, String automationName, AutomationInner automation) { - AutomationValidationStatusInner inner = - this.serviceClient().validate(resourceGroupName, automationName, automation); - if (inner != null) { - return new AutomationValidationStatusImpl(inner, this.manager()); - } else { - return null; - } + public void deleteByResourceGroup(String resourceGroupName, String automationName) { + this.serviceClient().delete(resourceGroupName, automationName); } public Response validateWithResponse( @@ -107,6 +97,17 @@ public Response validateWithResponse( } } + public AutomationValidationStatus validate( + String resourceGroupName, String automationName, AutomationInner automation) { + AutomationValidationStatusInner inner = + this.serviceClient().validate(resourceGroupName, automationName, automation); + if (inner != null) { + return new AutomationValidationStatusImpl(inner, this.manager()); + } else { + return null; + } + } + public Automation getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { @@ -161,7 +162,7 @@ public void deleteById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'automations'.", id))); } - this.deleteWithResponse(resourceGroupName, automationName, Context.NONE); + this.deleteByResourceGroupWithResponse(resourceGroupName, automationName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { @@ -180,7 +181,7 @@ public Response deleteByIdWithResponse(String id, Context context) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'automations'.", id))); } - return this.deleteWithResponse(resourceGroupName, automationName, context); + return this.deleteByResourceGroupWithResponse(resourceGroupName, automationName, context); } private AutomationsClient serviceClient() { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ComplianceResultsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ComplianceResultsClientImpl.java index 64ea1d088ab77..51dc4429d3771 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ComplianceResultsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ComplianceResultsClientImpl.java @@ -318,14 +318,16 @@ private Mono getAsync(String resourceId, String complianc * * @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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a compliance result along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ComplianceResultInner get(String resourceId, String complianceResultName) { - return getAsync(resourceId, complianceResultName).block(); + public Response getWithResponse( + String resourceId, String complianceResultName, Context context) { + return getWithResponseAsync(resourceId, complianceResultName, context).block(); } /** @@ -333,16 +335,14 @@ public ComplianceResultInner get(String resourceId, String complianceResultName) * * @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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a compliance result. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceId, String complianceResultName, Context context) { - return getWithResponseAsync(resourceId, complianceResultName, context).block(); + public ComplianceResultInner get(String resourceId, String complianceResultName) { + return getWithResponse(resourceId, complianceResultName, Context.NONE).getValue(); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ComplianceResultsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ComplianceResultsImpl.java index fb019c0386fe0..2aa80fd05d011 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ComplianceResultsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ComplianceResultsImpl.java @@ -37,15 +37,6 @@ public PagedIterable list(String scope, Context context) { return Utils.mapPage(inner, inner1 -> new ComplianceResultImpl(inner1, this.manager())); } - public ComplianceResult get(String resourceId, String complianceResultName) { - ComplianceResultInner inner = this.serviceClient().get(resourceId, complianceResultName); - if (inner != null) { - return new ComplianceResultImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse(String resourceId, String complianceResultName, Context context) { Response inner = this.serviceClient().getWithResponse(resourceId, complianceResultName, context); @@ -60,6 +51,15 @@ public Response getWithResponse(String resourceId, String comp } } + public ComplianceResult get(String resourceId, String complianceResultName) { + ComplianceResultInner inner = this.serviceClient().get(resourceId, complianceResultName); + if (inner != null) { + return new ComplianceResultImpl(inner, this.manager()); + } else { + return null; + } + } + private ComplianceResultsClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/CompliancesClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/CompliancesClientImpl.java index a2b861b63b249..7ac5d0cf966cb 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/CompliancesClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/CompliancesClientImpl.java @@ -317,14 +317,15 @@ private Mono getAsync(String scope, String complianceName) { * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or * management group (/providers/Microsoft.Management/managementGroups/mgName). * @param complianceName name of the Compliance. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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. + * @return compliance of a scope along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ComplianceInner get(String scope, String complianceName) { - return getAsync(scope, complianceName).block(); + public Response getWithResponse(String scope, String complianceName, Context context) { + return getWithResponseAsync(scope, complianceName, context).block(); } /** @@ -333,15 +334,14 @@ public ComplianceInner get(String scope, String complianceName) { * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or * management group (/providers/Microsoft.Management/managementGroups/mgName). * @param complianceName name of the Compliance. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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}. + * @return compliance of a scope. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String scope, String complianceName, Context context) { - return getWithResponseAsync(scope, complianceName, context).block(); + public ComplianceInner get(String scope, String complianceName) { + return getWithResponse(scope, complianceName, Context.NONE).getValue(); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/CompliancesImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/CompliancesImpl.java index 5de9ee0218063..b8e4641782c32 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/CompliancesImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/CompliancesImpl.java @@ -37,15 +37,6 @@ public PagedIterable list(String scope, Context context) { return Utils.mapPage(inner, inner1 -> new ComplianceImpl(inner1, this.manager())); } - public Compliance get(String scope, String complianceName) { - ComplianceInner inner = this.serviceClient().get(scope, complianceName); - if (inner != null) { - return new ComplianceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse(String scope, String complianceName, Context context) { Response inner = this.serviceClient().getWithResponse(scope, complianceName, context); if (inner != null) { @@ -59,6 +50,15 @@ public Response getWithResponse(String scope, String complianceName, } } + public Compliance get(String scope, String complianceName) { + ComplianceInner inner = this.serviceClient().get(scope, complianceName); + if (inner != null) { + return new ComplianceImpl(inner, this.manager()); + } else { + return null; + } + } + private CompliancesClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ConnectorsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ConnectorsClientImpl.java index 103f96a7ad983..116c415cea1e8 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ConnectorsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ConnectorsClientImpl.java @@ -351,29 +351,29 @@ private Mono getAsync(String connectorName) { * Details of a specific cloud account connector. * * @param connectorName Name of the cloud account connector. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the connector setting. + * @return the connector setting along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ConnectorSettingInner get(String connectorName) { - return getAsync(connectorName).block(); + public Response getWithResponse(String connectorName, Context context) { + return getWithResponseAsync(connectorName, context).block(); } /** * Details of a specific cloud account connector. * * @param connectorName Name of the cloud account connector. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the connector setting along with {@link Response}. + * @return the connector setting. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String connectorName, Context context) { - return getWithResponseAsync(connectorName, context).block(); + public ConnectorSettingInner get(String connectorName) { + return getWithResponse(connectorName, Context.NONE).getValue(); } /** @@ -502,14 +502,16 @@ private Mono createOrUpdateAsync( * * @param connectorName Name of the cloud account connector. * @param connectorSetting Settings for the cloud account connector. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the connector setting. + * @return the connector setting along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ConnectorSettingInner createOrUpdate(String connectorName, ConnectorSettingInner connectorSetting) { - return createOrUpdateAsync(connectorName, connectorSetting).block(); + public Response createOrUpdateWithResponse( + String connectorName, ConnectorSettingInner connectorSetting, Context context) { + return createOrUpdateWithResponseAsync(connectorName, connectorSetting, context).block(); } /** @@ -518,16 +520,14 @@ public ConnectorSettingInner createOrUpdate(String connectorName, ConnectorSetti * * @param connectorName Name of the cloud account connector. * @param connectorSetting Settings for the cloud account connector. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the connector setting along with {@link Response}. + * @return the connector setting. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String connectorName, ConnectorSettingInner connectorSetting, Context context) { - return createOrUpdateWithResponseAsync(connectorName, connectorSetting, context).block(); + public ConnectorSettingInner createOrUpdate(String connectorName, ConnectorSettingInner connectorSetting) { + return createOrUpdateWithResponse(connectorName, connectorSetting, Context.NONE).getValue(); } /** @@ -625,28 +625,28 @@ private Mono deleteAsync(String connectorName) { * Delete a cloud account connector from a subscription. * * @param connectorName Name of the cloud account connector. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public void delete(String connectorName) { - deleteAsync(connectorName).block(); + public Response deleteWithResponse(String connectorName, Context context) { + return deleteWithResponseAsync(connectorName, context).block(); } /** * Delete a cloud account connector from a subscription. * * @param connectorName Name of the cloud account connector. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public Response deleteWithResponse(String connectorName, Context context) { - return deleteWithResponseAsync(connectorName, context).block(); + public void delete(String connectorName) { + deleteWithResponse(connectorName, Context.NONE); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ConnectorsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ConnectorsImpl.java index ad3c6febf3049..ba0dd85d8a644 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ConnectorsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ConnectorsImpl.java @@ -37,15 +37,6 @@ public PagedIterable list(Context context) { return Utils.mapPage(inner, inner1 -> new ConnectorSettingImpl(inner1, this.manager())); } - public ConnectorSetting get(String connectorName) { - ConnectorSettingInner inner = this.serviceClient().get(connectorName); - if (inner != null) { - return new ConnectorSettingImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse(String connectorName, Context context) { Response inner = this.serviceClient().getWithResponse(connectorName, context); if (inner != null) { @@ -59,14 +50,23 @@ public Response getWithResponse(String connectorName, Context } } - public void delete(String connectorName) { - this.serviceClient().delete(connectorName); + public ConnectorSetting get(String connectorName) { + ConnectorSettingInner inner = this.serviceClient().get(connectorName); + if (inner != null) { + return new ConnectorSettingImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse(String connectorName, Context context) { return this.serviceClient().deleteWithResponse(connectorName, context); } + public void delete(String connectorName) { + this.serviceClient().delete(connectorName); + } + public ConnectorSetting getById(String id) { String connectorName = Utils.getValueFromIdByName(id, "connectors"); if (connectorName == null) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/CustomAssessmentAutomationsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/CustomAssessmentAutomationsClientImpl.java index ae6949ee20cb6..48c65b703fbb0 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/CustomAssessmentAutomationsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/CustomAssessmentAutomationsClientImpl.java @@ -293,15 +293,17 @@ private Mono getByResourceGroupAsync( * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param customAssessmentAutomationName Name of the Custom Assessment Automation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a single custom assessment automation by name for the provided subscription and resource group. + * @return a single custom assessment automation by name for the provided subscription and resource group along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CustomAssessmentAutomationInner getByResourceGroup( - String resourceGroupName, String customAssessmentAutomationName) { - return getByResourceGroupAsync(resourceGroupName, customAssessmentAutomationName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String customAssessmentAutomationName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, customAssessmentAutomationName, context).block(); } /** @@ -312,17 +314,16 @@ public CustomAssessmentAutomationInner getByResourceGroup( * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param customAssessmentAutomationName Name of the Custom Assessment Automation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a single custom assessment automation by name for the provided subscription and resource group along with - * {@link Response}. + * @return a single custom assessment automation by name for the provided subscription and resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String customAssessmentAutomationName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, customAssessmentAutomationName, context).block(); + public CustomAssessmentAutomationInner getByResourceGroup( + String resourceGroupName, String customAssessmentAutomationName) { + return getByResourceGroupWithResponse(resourceGroupName, customAssessmentAutomationName, Context.NONE) + .getValue(); } /** @@ -495,17 +496,21 @@ private Mono createAsync( * insensitive. * @param customAssessmentAutomationName Name of the Custom Assessment Automation. * @param customAssessmentAutomationBody Custom Assessment Automation body. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return custom Assessment Automation. + * @return custom Assessment Automation along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CustomAssessmentAutomationInner create( + public Response createWithResponse( String resourceGroupName, String customAssessmentAutomationName, - CustomAssessmentAutomationRequest customAssessmentAutomationBody) { - return createAsync(resourceGroupName, customAssessmentAutomationName, customAssessmentAutomationBody).block(); + CustomAssessmentAutomationRequest customAssessmentAutomationBody, + Context context) { + return createWithResponseAsync( + resourceGroupName, customAssessmentAutomationName, customAssessmentAutomationBody, context) + .block(); } /** @@ -518,21 +523,19 @@ public CustomAssessmentAutomationInner create( * insensitive. * @param customAssessmentAutomationName Name of the Custom Assessment Automation. * @param customAssessmentAutomationBody Custom Assessment Automation body. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return custom Assessment Automation along with {@link Response}. + * @return custom Assessment Automation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createWithResponse( + public CustomAssessmentAutomationInner create( String resourceGroupName, String customAssessmentAutomationName, - CustomAssessmentAutomationRequest customAssessmentAutomationBody, - Context context) { - return createWithResponseAsync( - resourceGroupName, customAssessmentAutomationName, customAssessmentAutomationBody, context) - .block(); + CustomAssessmentAutomationRequest customAssessmentAutomationBody) { + return createWithResponse( + resourceGroupName, customAssessmentAutomationName, customAssessmentAutomationBody, Context.NONE) + .getValue(); } /** @@ -670,13 +673,16 @@ private Mono deleteAsync(String resourceGroupName, String customAssessment * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param customAssessmentAutomationName Name of the Custom Assessment Automation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public void delete(String resourceGroupName, String customAssessmentAutomationName) { - deleteAsync(resourceGroupName, customAssessmentAutomationName).block(); + public Response deleteWithResponse( + String resourceGroupName, String customAssessmentAutomationName, Context context) { + return deleteWithResponseAsync(resourceGroupName, customAssessmentAutomationName, context).block(); } /** @@ -687,16 +693,13 @@ public void delete(String resourceGroupName, String customAssessmentAutomationNa * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param customAssessmentAutomationName Name of the Custom Assessment Automation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public Response deleteWithResponse( - String resourceGroupName, String customAssessmentAutomationName, Context context) { - return deleteWithResponseAsync(resourceGroupName, customAssessmentAutomationName, context).block(); + public void delete(String resourceGroupName, String customAssessmentAutomationName) { + deleteWithResponse(resourceGroupName, customAssessmentAutomationName, Context.NONE); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/CustomAssessmentAutomationsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/CustomAssessmentAutomationsImpl.java index 80813a965d304..460555a46574e 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/CustomAssessmentAutomationsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/CustomAssessmentAutomationsImpl.java @@ -28,17 +28,6 @@ public CustomAssessmentAutomationsImpl( this.serviceManager = serviceManager; } - public CustomAssessmentAutomation getByResourceGroup( - String resourceGroupName, String customAssessmentAutomationName) { - CustomAssessmentAutomationInner inner = - this.serviceClient().getByResourceGroup(resourceGroupName, customAssessmentAutomationName); - if (inner != null) { - return new CustomAssessmentAutomationImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse( String resourceGroupName, String customAssessmentAutomationName, Context context) { Response inner = @@ -56,15 +45,26 @@ public Response getByResourceGroupWithResponse( } } - public void deleteByResourceGroup(String resourceGroupName, String customAssessmentAutomationName) { - this.serviceClient().delete(resourceGroupName, customAssessmentAutomationName); + public CustomAssessmentAutomation getByResourceGroup( + String resourceGroupName, String customAssessmentAutomationName) { + CustomAssessmentAutomationInner inner = + this.serviceClient().getByResourceGroup(resourceGroupName, customAssessmentAutomationName); + if (inner != null) { + return new CustomAssessmentAutomationImpl(inner, this.manager()); + } else { + return null; + } } - public Response deleteWithResponse( + public Response deleteByResourceGroupWithResponse( String resourceGroupName, String customAssessmentAutomationName, Context context) { return this.serviceClient().deleteWithResponse(resourceGroupName, customAssessmentAutomationName, context); } + public void deleteByResourceGroup(String resourceGroupName, String customAssessmentAutomationName) { + this.serviceClient().delete(resourceGroupName, customAssessmentAutomationName); + } + public PagedIterable listByResourceGroup(String resourceGroupName) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); @@ -155,7 +155,7 @@ public void deleteById(String id) { + " 'customAssessmentAutomations'.", id))); } - this.deleteWithResponse(resourceGroupName, customAssessmentAutomationName, Context.NONE); + this.deleteByResourceGroupWithResponse(resourceGroupName, customAssessmentAutomationName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { @@ -178,7 +178,7 @@ public Response deleteByIdWithResponse(String id, Context context) { + " 'customAssessmentAutomations'.", id))); } - return this.deleteWithResponse(resourceGroupName, customAssessmentAutomationName, context); + return this.deleteByResourceGroupWithResponse(resourceGroupName, customAssessmentAutomationName, context); } private CustomAssessmentAutomationsClient serviceClient() { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/CustomEntityStoreAssignmentsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/CustomEntityStoreAssignmentsClientImpl.java index 1856989aba1c3..14270be4eedf3 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/CustomEntityStoreAssignmentsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/CustomEntityStoreAssignmentsClientImpl.java @@ -293,15 +293,17 @@ private Mono getByResourceGroupAsync( * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a single custom entity store assignment by name for the provided subscription and resource group. + * @return a single custom entity store assignment by name for the provided subscription and resource group along + * with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CustomEntityStoreAssignmentInner getByResourceGroup( - String resourceGroupName, String customEntityStoreAssignmentName) { - return getByResourceGroupAsync(resourceGroupName, customEntityStoreAssignmentName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String customEntityStoreAssignmentName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, customEntityStoreAssignmentName, context).block(); } /** @@ -312,17 +314,16 @@ public CustomEntityStoreAssignmentInner getByResourceGroup( * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a single custom entity store assignment by name for the provided subscription and resource group along - * with {@link Response}. + * @return a single custom entity store assignment by name for the provided subscription and resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String customEntityStoreAssignmentName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, customEntityStoreAssignmentName, context).block(); + public CustomEntityStoreAssignmentInner getByResourceGroup( + String resourceGroupName, String customEntityStoreAssignmentName) { + return getByResourceGroupWithResponse(resourceGroupName, customEntityStoreAssignmentName, Context.NONE) + .getValue(); } /** @@ -491,17 +492,20 @@ private Mono createAsync( * insensitive. * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID. * @param customEntityStoreAssignmentRequestBody Custom entity store assignment body. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return custom entity store assignment. + * @return custom entity store assignment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CustomEntityStoreAssignmentInner create( + public Response createWithResponse( String resourceGroupName, String customEntityStoreAssignmentName, - CustomEntityStoreAssignmentRequest customEntityStoreAssignmentRequestBody) { - return createAsync(resourceGroupName, customEntityStoreAssignmentName, customEntityStoreAssignmentRequestBody) + CustomEntityStoreAssignmentRequest customEntityStoreAssignmentRequestBody, + Context context) { + return createWithResponseAsync( + resourceGroupName, customEntityStoreAssignmentName, customEntityStoreAssignmentRequestBody, context) .block(); } @@ -514,21 +518,22 @@ public CustomEntityStoreAssignmentInner create( * insensitive. * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID. * @param customEntityStoreAssignmentRequestBody Custom entity store assignment body. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return custom entity store assignment along with {@link Response}. + * @return custom entity store assignment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createWithResponse( + public CustomEntityStoreAssignmentInner create( String resourceGroupName, String customEntityStoreAssignmentName, - CustomEntityStoreAssignmentRequest customEntityStoreAssignmentRequestBody, - Context context) { - return createWithResponseAsync( - resourceGroupName, customEntityStoreAssignmentName, customEntityStoreAssignmentRequestBody, context) - .block(); + CustomEntityStoreAssignmentRequest customEntityStoreAssignmentRequestBody) { + return createWithResponse( + resourceGroupName, + customEntityStoreAssignmentName, + customEntityStoreAssignmentRequestBody, + Context.NONE) + .getValue(); } /** @@ -666,13 +671,16 @@ private Mono deleteAsync(String resourceGroupName, String customEntityStor * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public void delete(String resourceGroupName, String customEntityStoreAssignmentName) { - deleteAsync(resourceGroupName, customEntityStoreAssignmentName).block(); + public Response deleteWithResponse( + String resourceGroupName, String customEntityStoreAssignmentName, Context context) { + return deleteWithResponseAsync(resourceGroupName, customEntityStoreAssignmentName, context).block(); } /** @@ -683,16 +691,13 @@ public void delete(String resourceGroupName, String customEntityStoreAssignmentN * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public Response deleteWithResponse( - String resourceGroupName, String customEntityStoreAssignmentName, Context context) { - return deleteWithResponseAsync(resourceGroupName, customEntityStoreAssignmentName, context).block(); + public void delete(String resourceGroupName, String customEntityStoreAssignmentName) { + deleteWithResponse(resourceGroupName, customEntityStoreAssignmentName, Context.NONE); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/CustomEntityStoreAssignmentsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/CustomEntityStoreAssignmentsImpl.java index 1194665acd98c..2b1bdc19cc0ed 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/CustomEntityStoreAssignmentsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/CustomEntityStoreAssignmentsImpl.java @@ -28,17 +28,6 @@ public CustomEntityStoreAssignmentsImpl( this.serviceManager = serviceManager; } - public CustomEntityStoreAssignment getByResourceGroup( - String resourceGroupName, String customEntityStoreAssignmentName) { - CustomEntityStoreAssignmentInner inner = - this.serviceClient().getByResourceGroup(resourceGroupName, customEntityStoreAssignmentName); - if (inner != null) { - return new CustomEntityStoreAssignmentImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse( String resourceGroupName, String customEntityStoreAssignmentName, Context context) { Response inner = @@ -56,15 +45,26 @@ public Response getByResourceGroupWithResponse( } } - public void deleteByResourceGroup(String resourceGroupName, String customEntityStoreAssignmentName) { - this.serviceClient().delete(resourceGroupName, customEntityStoreAssignmentName); + public CustomEntityStoreAssignment getByResourceGroup( + String resourceGroupName, String customEntityStoreAssignmentName) { + CustomEntityStoreAssignmentInner inner = + this.serviceClient().getByResourceGroup(resourceGroupName, customEntityStoreAssignmentName); + if (inner != null) { + return new CustomEntityStoreAssignmentImpl(inner, this.manager()); + } else { + return null; + } } - public Response deleteWithResponse( + public Response deleteByResourceGroupWithResponse( String resourceGroupName, String customEntityStoreAssignmentName, Context context) { return this.serviceClient().deleteWithResponse(resourceGroupName, customEntityStoreAssignmentName, context); } + public void deleteByResourceGroup(String resourceGroupName, String customEntityStoreAssignmentName) { + this.serviceClient().delete(resourceGroupName, customEntityStoreAssignmentName); + } + public PagedIterable listByResourceGroup(String resourceGroupName) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); @@ -155,7 +155,7 @@ public void deleteById(String id) { + " 'customEntityStoreAssignments'.", id))); } - this.deleteWithResponse(resourceGroupName, customEntityStoreAssignmentName, Context.NONE); + this.deleteByResourceGroupWithResponse(resourceGroupName, customEntityStoreAssignmentName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { @@ -178,7 +178,7 @@ public Response deleteByIdWithResponse(String id, Context context) { + " 'customEntityStoreAssignments'.", id))); } - return this.deleteWithResponse(resourceGroupName, customEntityStoreAssignmentName, context); + return this.deleteByResourceGroupWithResponse(resourceGroupName, customEntityStoreAssignmentName, context); } private CustomEntityStoreAssignmentsClient serviceClient() { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/DeviceSecurityGroupsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/DeviceSecurityGroupsClientImpl.java index 2f422189e8d3d..51b5bd154c9a9 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/DeviceSecurityGroupsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/DeviceSecurityGroupsClientImpl.java @@ -353,14 +353,16 @@ private Mono getAsync(String resourceId, String device * @param resourceId The 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 device security group resource. + * @return the device security group resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DeviceSecurityGroupInner get(String resourceId, String deviceSecurityGroupName) { - return getAsync(resourceId, deviceSecurityGroupName).block(); + public Response getWithResponse( + String resourceId, String deviceSecurityGroupName, Context context) { + return getWithResponseAsync(resourceId, deviceSecurityGroupName, context).block(); } /** @@ -369,16 +371,14 @@ public DeviceSecurityGroupInner get(String resourceId, String deviceSecurityGrou * @param resourceId The 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 device security group resource along with {@link Response}. + * @return the device security group resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceId, String deviceSecurityGroupName, Context context) { - return getWithResponseAsync(resourceId, deviceSecurityGroupName, context).block(); + public DeviceSecurityGroupInner get(String resourceId, String deviceSecurityGroupName) { + return getWithResponse(resourceId, deviceSecurityGroupName, Context.NONE).getValue(); } /** @@ -512,15 +512,20 @@ private Mono createOrUpdateAsync( * @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. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 device security group resource. + * @return the device security group resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DeviceSecurityGroupInner createOrUpdate( - String resourceId, String deviceSecurityGroupName, DeviceSecurityGroupInner deviceSecurityGroup) { - return createOrUpdateAsync(resourceId, deviceSecurityGroupName, deviceSecurityGroup).block(); + public Response createOrUpdateWithResponse( + String resourceId, + String deviceSecurityGroupName, + DeviceSecurityGroupInner deviceSecurityGroup, + Context context) { + return createOrUpdateWithResponseAsync(resourceId, deviceSecurityGroupName, deviceSecurityGroup, context) + .block(); } /** @@ -530,20 +535,16 @@ public DeviceSecurityGroupInner createOrUpdate( * @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. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 device security group resource along with {@link Response}. + * @return the device security group resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceId, - String deviceSecurityGroupName, - DeviceSecurityGroupInner deviceSecurityGroup, - Context context) { - return createOrUpdateWithResponseAsync(resourceId, deviceSecurityGroupName, deviceSecurityGroup, context) - .block(); + public DeviceSecurityGroupInner createOrUpdate( + String resourceId, String deviceSecurityGroupName, DeviceSecurityGroupInner deviceSecurityGroup) { + return createOrUpdateWithResponse(resourceId, deviceSecurityGroupName, deviceSecurityGroup, Context.NONE) + .getValue(); } /** @@ -647,13 +648,15 @@ private Mono deleteAsync(String resourceId, String deviceSecurityGroupName * @param resourceId The 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public void delete(String resourceId, String deviceSecurityGroupName) { - deleteAsync(resourceId, deviceSecurityGroupName).block(); + public Response deleteWithResponse(String resourceId, String deviceSecurityGroupName, Context context) { + return deleteWithResponseAsync(resourceId, deviceSecurityGroupName, context).block(); } /** @@ -662,15 +665,13 @@ public void delete(String resourceId, String deviceSecurityGroupName) { * @param resourceId The 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public Response deleteWithResponse(String resourceId, String deviceSecurityGroupName, Context context) { - return deleteWithResponseAsync(resourceId, deviceSecurityGroupName, context).block(); + public void delete(String resourceId, String deviceSecurityGroupName) { + deleteWithResponse(resourceId, deviceSecurityGroupName, Context.NONE); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/DeviceSecurityGroupsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/DeviceSecurityGroupsImpl.java index 9ba3943027ab0..84a677f1ee3e8 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/DeviceSecurityGroupsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/DeviceSecurityGroupsImpl.java @@ -37,15 +37,6 @@ public PagedIterable list(String resourceId, Context contex return Utils.mapPage(inner, inner1 -> new DeviceSecurityGroupImpl(inner1, this.manager())); } - public DeviceSecurityGroup get(String resourceId, String deviceSecurityGroupName) { - DeviceSecurityGroupInner inner = this.serviceClient().get(resourceId, deviceSecurityGroupName); - if (inner != null) { - return new DeviceSecurityGroupImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceId, String deviceSecurityGroupName, Context context) { Response inner = @@ -61,14 +52,24 @@ public Response getWithResponse( } } - public void deleteByResourceGroup(String resourceId, String deviceSecurityGroupName) { - this.serviceClient().delete(resourceId, deviceSecurityGroupName); + public DeviceSecurityGroup get(String resourceId, String deviceSecurityGroupName) { + DeviceSecurityGroupInner inner = this.serviceClient().get(resourceId, deviceSecurityGroupName); + if (inner != null) { + return new DeviceSecurityGroupImpl(inner, this.manager()); + } else { + return null; + } } - public Response deleteWithResponse(String resourceId, String deviceSecurityGroupName, Context context) { + public Response deleteByResourceGroupWithResponse( + String resourceId, String deviceSecurityGroupName, Context context) { return this.serviceClient().deleteWithResponse(resourceId, deviceSecurityGroupName, context); } + public void deleteByResourceGroup(String resourceId, String deviceSecurityGroupName) { + this.serviceClient().delete(resourceId, deviceSecurityGroupName); + } + public DeviceSecurityGroup getById(String id) { String resourceId = Utils @@ -159,7 +160,7 @@ public void deleteById(String id) { "The resource ID '%s' is not valid. Missing path segment 'deviceSecurityGroups'.", id))); } - this.deleteWithResponse(resourceId, deviceSecurityGroupName, Context.NONE); + this.deleteByResourceGroupWithResponse(resourceId, deviceSecurityGroupName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { @@ -190,7 +191,7 @@ public Response deleteByIdWithResponse(String id, Context context) { "The resource ID '%s' is not valid. Missing path segment 'deviceSecurityGroups'.", id))); } - return this.deleteWithResponse(resourceId, deviceSecurityGroupName, context); + return this.deleteByResourceGroupWithResponse(resourceId, deviceSecurityGroupName, context); } private DeviceSecurityGroupsClient serviceClient() { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/DiscoveredSecuritySolutionsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/DiscoveredSecuritySolutionsClientImpl.java index 7445f4f557c9b..69d8a475372a5 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/DiscoveredSecuritySolutionsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/DiscoveredSecuritySolutionsClientImpl.java @@ -574,15 +574,16 @@ private Mono getAsync( * @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 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 specific discovered Security Solution along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DiscoveredSecuritySolutionInner get( - String resourceGroupName, String ascLocation, String discoveredSecuritySolutionName) { - return getAsync(resourceGroupName, ascLocation, discoveredSecuritySolutionName).block(); + public Response getWithResponse( + String resourceGroupName, String ascLocation, String discoveredSecuritySolutionName, Context context) { + return getWithResponseAsync(resourceGroupName, ascLocation, discoveredSecuritySolutionName, context).block(); } /** @@ -593,16 +594,15 @@ public DiscoveredSecuritySolutionInner get( * @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 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 specific discovered Security Solution. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String ascLocation, String discoveredSecuritySolutionName, Context context) { - return getWithResponseAsync(resourceGroupName, ascLocation, discoveredSecuritySolutionName, context).block(); + public DiscoveredSecuritySolutionInner get( + String resourceGroupName, String ascLocation, String discoveredSecuritySolutionName) { + return getWithResponse(resourceGroupName, ascLocation, discoveredSecuritySolutionName, Context.NONE).getValue(); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/DiscoveredSecuritySolutionsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/DiscoveredSecuritySolutionsImpl.java index ef9c87321d6b8..3fc2fb690fe9c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/DiscoveredSecuritySolutionsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/DiscoveredSecuritySolutionsImpl.java @@ -49,17 +49,6 @@ public PagedIterable listByHomeRegion(String ascLoca return Utils.mapPage(inner, inner1 -> new DiscoveredSecuritySolutionImpl(inner1, this.manager())); } - public DiscoveredSecuritySolution get( - String resourceGroupName, String ascLocation, String discoveredSecuritySolutionName) { - DiscoveredSecuritySolutionInner inner = - this.serviceClient().get(resourceGroupName, ascLocation, discoveredSecuritySolutionName); - if (inner != null) { - return new DiscoveredSecuritySolutionImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String ascLocation, String discoveredSecuritySolutionName, Context context) { Response inner = @@ -77,6 +66,17 @@ public Response getWithResponse( } } + public DiscoveredSecuritySolution get( + String resourceGroupName, String ascLocation, String discoveredSecuritySolutionName) { + DiscoveredSecuritySolutionInner inner = + this.serviceClient().get(resourceGroupName, ascLocation, discoveredSecuritySolutionName); + if (inner != null) { + return new DiscoveredSecuritySolutionImpl(inner, this.manager()); + } else { + return null; + } + } + private DiscoveredSecuritySolutionsClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ExternalSecuritySolutionsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ExternalSecuritySolutionsClientImpl.java index 867db08dcd222..4c1973dc396fc 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ExternalSecuritySolutionsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ExternalSecuritySolutionsClientImpl.java @@ -572,15 +572,16 @@ private Mono getAsync( * @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 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 specific external Security Solution along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ExternalSecuritySolutionInner get( - String resourceGroupName, String ascLocation, String externalSecuritySolutionsName) { - return getAsync(resourceGroupName, ascLocation, externalSecuritySolutionsName).block(); + public Response getWithResponse( + String resourceGroupName, String ascLocation, String externalSecuritySolutionsName, Context context) { + return getWithResponseAsync(resourceGroupName, ascLocation, externalSecuritySolutionsName, context).block(); } /** @@ -591,16 +592,15 @@ public ExternalSecuritySolutionInner get( * @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 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 specific external Security Solution. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String ascLocation, String externalSecuritySolutionsName, Context context) { - return getWithResponseAsync(resourceGroupName, ascLocation, externalSecuritySolutionsName, context).block(); + public ExternalSecuritySolutionInner get( + String resourceGroupName, String ascLocation, String externalSecuritySolutionsName) { + return getWithResponse(resourceGroupName, ascLocation, externalSecuritySolutionsName, Context.NONE).getValue(); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ExternalSecuritySolutionsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ExternalSecuritySolutionsImpl.java index 476482aa3a9a2..27d2cba5cf911 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ExternalSecuritySolutionsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ExternalSecuritySolutionsImpl.java @@ -49,17 +49,6 @@ public PagedIterable listByHomeRegion(String ascLocati return Utils.mapPage(inner, inner1 -> new ExternalSecuritySolutionImpl(inner1, this.manager())); } - public ExternalSecuritySolution get( - String resourceGroupName, String ascLocation, String externalSecuritySolutionsName) { - ExternalSecuritySolutionInner inner = - this.serviceClient().get(resourceGroupName, ascLocation, externalSecuritySolutionsName); - if (inner != null) { - return new ExternalSecuritySolutionImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String ascLocation, String externalSecuritySolutionsName, Context context) { Response inner = @@ -77,6 +66,17 @@ public Response getWithResponse( } } + public ExternalSecuritySolution get( + String resourceGroupName, String ascLocation, String externalSecuritySolutionsName) { + ExternalSecuritySolutionInner inner = + this.serviceClient().get(resourceGroupName, ascLocation, externalSecuritySolutionsName); + if (inner != null) { + return new ExternalSecuritySolutionImpl(inner, this.manager()); + } else { + return null; + } + } + private ExternalSecuritySolutionsClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GovernanceAssignmentsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GovernanceAssignmentsClientImpl.java index cb690b8561d93..df7ee78387264 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GovernanceAssignmentsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GovernanceAssignmentsClientImpl.java @@ -400,14 +400,16 @@ private Mono getAsync(String scope, String assessment * @param assessmentName The Assessment Key - Unique key for the assessment type. * @param assignmentKey The security governance assignment key - the assessment key of the required governance * assignment. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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. + * @return a specific governanceAssignment for the requested scope by AssignmentKey along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public GovernanceAssignmentInner get(String scope, String assessmentName, String assignmentKey) { - return getAsync(scope, assessmentName, assignmentKey).block(); + public Response getWithResponse( + String scope, String assessmentName, String assignmentKey, Context context) { + return getWithResponseAsync(scope, assessmentName, assignmentKey, context).block(); } /** @@ -418,16 +420,14 @@ public GovernanceAssignmentInner get(String scope, String assessmentName, String * @param assessmentName The Assessment Key - Unique key for the assessment type. * @param assignmentKey The security governance assignment key - the assessment key of the required governance * assignment. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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}. + * @return a specific governanceAssignment for the requested scope by AssignmentKey. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String scope, String assessmentName, String assignmentKey, Context context) { - return getWithResponseAsync(scope, assessmentName, assignmentKey, context).block(); + public GovernanceAssignmentInner get(String scope, String assessmentName, String assignmentKey) { + return getWithResponse(scope, assessmentName, assignmentKey, Context.NONE).getValue(); } /** @@ -576,15 +576,21 @@ private Mono createOrUpdateAsync( * @param assignmentKey The security governance assignment key - the assessment key of the required governance * assignment. * @param governanceAssignment GovernanceAssignment over a subscription scope. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 GovernanceAssignment over a given scope. + * @return security GovernanceAssignment over a given scope along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public GovernanceAssignmentInner createOrUpdate( - String scope, String assessmentName, String assignmentKey, GovernanceAssignmentInner governanceAssignment) { - return createOrUpdateAsync(scope, assessmentName, assignmentKey, governanceAssignment).block(); + public Response createOrUpdateWithResponse( + String scope, + String assessmentName, + String assignmentKey, + GovernanceAssignmentInner governanceAssignment, + Context context) { + return createOrUpdateWithResponseAsync(scope, assessmentName, assignmentKey, governanceAssignment, context) + .block(); } /** @@ -596,21 +602,16 @@ public GovernanceAssignmentInner createOrUpdate( * @param assignmentKey The security governance assignment key - the assessment key of the required governance * assignment. * @param governanceAssignment GovernanceAssignment over a subscription scope. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 GovernanceAssignment over a given scope along with {@link Response}. + * @return security GovernanceAssignment over a given scope. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String scope, - String assessmentName, - String assignmentKey, - GovernanceAssignmentInner governanceAssignment, - Context context) { - return createOrUpdateWithResponseAsync(scope, assessmentName, assignmentKey, governanceAssignment, context) - .block(); + public GovernanceAssignmentInner createOrUpdate( + String scope, String assessmentName, String assignmentKey, GovernanceAssignmentInner governanceAssignment) { + return createOrUpdateWithResponse(scope, assessmentName, assignmentKey, governanceAssignment, Context.NONE) + .getValue(); } /** @@ -715,13 +716,16 @@ private Mono deleteAsync(String scope, String assessmentName, String assig * @param assessmentName The Assessment Key - Unique key for the assessment type. * @param assignmentKey The security governance assignment key - the assessment key of the required governance * assignment. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public void delete(String scope, String assessmentName, String assignmentKey) { - deleteAsync(scope, assessmentName, assignmentKey).block(); + public Response deleteWithResponse( + String scope, String assessmentName, String assignmentKey, Context context) { + return deleteWithResponseAsync(scope, assessmentName, assignmentKey, context).block(); } /** @@ -732,16 +736,13 @@ public void delete(String scope, String assessmentName, String assignmentKey) { * @param assessmentName The Assessment Key - Unique key for the assessment type. * @param assignmentKey The security governance assignment key - the assessment key of the required governance * assignment. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public Response deleteWithResponse( - String scope, String assessmentName, String assignmentKey, Context context) { - return deleteWithResponseAsync(scope, assessmentName, assignmentKey, context).block(); + public void delete(String scope, String assessmentName, String assignmentKey) { + deleteWithResponse(scope, assessmentName, assignmentKey, Context.NONE); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GovernanceAssignmentsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GovernanceAssignmentsImpl.java index f37c001f326a0..14b2c2aacfee1 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GovernanceAssignmentsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GovernanceAssignmentsImpl.java @@ -37,15 +37,6 @@ public PagedIterable list(String scope, String assessmentN return Utils.mapPage(inner, inner1 -> new GovernanceAssignmentImpl(inner1, this.manager())); } - public GovernanceAssignment get(String scope, String assessmentName, String assignmentKey) { - GovernanceAssignmentInner inner = this.serviceClient().get(scope, assessmentName, assignmentKey); - if (inner != null) { - return new GovernanceAssignmentImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String scope, String assessmentName, String assignmentKey, Context context) { Response inner = @@ -61,8 +52,13 @@ public Response getWithResponse( } } - public void delete(String scope, String assessmentName, String assignmentKey) { - this.serviceClient().delete(scope, assessmentName, assignmentKey); + public GovernanceAssignment get(String scope, String assessmentName, String assignmentKey) { + GovernanceAssignmentInner inner = this.serviceClient().get(scope, assessmentName, assignmentKey); + if (inner != null) { + return new GovernanceAssignmentImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -70,6 +66,10 @@ public Response deleteWithResponse( return this.serviceClient().deleteWithResponse(scope, assessmentName, assignmentKey, context); } + public void delete(String scope, String assessmentName, String assignmentKey) { + this.serviceClient().delete(scope, assessmentName, assignmentKey); + } + public GovernanceAssignment getById(String id) { String scope = Utils diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GovernanceRuleImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GovernanceRuleImpl.java index e78c8137c2072..305b3e22fa3c6 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GovernanceRuleImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GovernanceRuleImpl.java @@ -164,10 +164,6 @@ public GovernanceRule refresh(Context context) { return this; } - public void ruleIdExecuteSingleSubscription(ExecuteGovernanceRuleParams executeGovernanceRuleParams) { - serviceManager.governanceRulesOperations().ruleIdExecuteSingleSubscription(ruleId, executeGovernanceRuleParams); - } - public void ruleIdExecuteSingleSubscription() { serviceManager.governanceRulesOperations().ruleIdExecuteSingleSubscription(ruleId); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GovernanceRulesOperationsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GovernanceRulesOperationsClientImpl.java index 37fecaa1918b7..0536ffd6e6cda 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GovernanceRulesOperationsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GovernanceRulesOperationsClientImpl.java @@ -227,29 +227,29 @@ private Mono getAsync(String ruleId) { * Get a specific governanceRule for the requested scope by ruleId. * * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 governanceRule for the requested scope by ruleId. + * @return a specific governanceRule for the requested scope by ruleId along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public GovernanceRuleInner get(String ruleId) { - return getAsync(ruleId).block(); + public Response getWithResponse(String ruleId, Context context) { + return getWithResponseAsync(ruleId, context).block(); } /** * Get a specific governanceRule for the requested scope by ruleId. * * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 governanceRule for the requested scope by ruleId along with {@link Response}. + * @return a specific governanceRule for the requested scope by ruleId. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String ruleId, Context context) { - return getWithResponseAsync(ruleId, context).block(); + public GovernanceRuleInner get(String ruleId) { + return getWithResponse(ruleId, Context.NONE).getValue(); } /** @@ -372,14 +372,16 @@ private Mono createOrUpdateAsync(String ruleId, GovernanceR * * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. * @param governanceRule GovernanceRule over a subscription scope. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 GovernanceRule over a given scope. + * @return security GovernanceRule over a given scope along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public GovernanceRuleInner createOrUpdate(String ruleId, GovernanceRuleInner governanceRule) { - return createOrUpdateAsync(ruleId, governanceRule).block(); + public Response createOrUpdateWithResponse( + String ruleId, GovernanceRuleInner governanceRule, Context context) { + return createOrUpdateWithResponseAsync(ruleId, governanceRule, context).block(); } /** @@ -387,16 +389,14 @@ public GovernanceRuleInner createOrUpdate(String ruleId, GovernanceRuleInner gov * * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. * @param governanceRule GovernanceRule over a subscription scope. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 GovernanceRule over a given scope along with {@link Response}. + * @return security GovernanceRule over a given scope. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String ruleId, GovernanceRuleInner governanceRule, Context context) { - return createOrUpdateWithResponseAsync(ruleId, governanceRule, context).block(); + public GovernanceRuleInner createOrUpdate(String ruleId, GovernanceRuleInner governanceRule) { + return createOrUpdateWithResponse(ruleId, governanceRule, Context.NONE).getValue(); } /** @@ -485,28 +485,28 @@ private Mono deleteAsync(String ruleId) { * Delete a GovernanceRule over a given scope. * * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public void delete(String ruleId) { - deleteAsync(ruleId).block(); + public Response deleteWithResponse(String ruleId, Context context) { + return deleteWithResponseAsync(ruleId, context).block(); } /** * Delete a GovernanceRule over a given scope. * * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public Response deleteWithResponse(String ruleId, Context context) { - return deleteWithResponseAsync(ruleId, context).block(); + public void delete(String ruleId) { + deleteWithResponse(ruleId, Context.NONE); } /** @@ -624,6 +624,26 @@ private PollerFlux, Void> beginRuleIdExecuteSingleSubscriptionA mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } + /** + * Execute a security GovernanceRule on the given subscription. + * + * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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 PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginRuleIdExecuteSingleSubscriptionAsync(String ruleId) { + final ExecuteGovernanceRuleParams executeGovernanceRuleParams = null; + Mono>> mono = + ruleIdExecuteSingleSubscriptionWithResponseAsync(ruleId, executeGovernanceRuleParams); + return this + .client + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + } + /** * Execute a security GovernanceRule on the given subscription. * @@ -650,15 +670,14 @@ private PollerFlux, Void> beginRuleIdExecuteSingleSubscriptionA * Execute a security GovernanceRule on the given subscription. * * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. - * @param executeGovernanceRuleParams GovernanceRule over a subscription scope. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public SyncPoller, Void> beginRuleIdExecuteSingleSubscription( - String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams) { + public SyncPoller, Void> beginRuleIdExecuteSingleSubscription(String ruleId) { + final ExecuteGovernanceRuleParams executeGovernanceRuleParams = null; return beginRuleIdExecuteSingleSubscriptionAsync(ruleId, executeGovernanceRuleParams).getSyncPoller(); } @@ -733,21 +752,6 @@ private Mono ruleIdExecuteSingleSubscriptionAsync( .flatMap(this.client::getLroFinalResultOrError); } - /** - * Execute a security GovernanceRule on the given subscription. - * - * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. - * @param executeGovernanceRuleParams GovernanceRule over a subscription scope. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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) - public void ruleIdExecuteSingleSubscription( - String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams) { - ruleIdExecuteSingleSubscriptionAsync(ruleId, executeGovernanceRuleParams).block(); - } - /** * Execute a security GovernanceRule on the given subscription. * @@ -933,6 +937,31 @@ private PollerFlux, Void> beginRuleIdExecuteSingleSecurityConne mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } + /** + * Execute a security GovernanceRule on the given security connector. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param securityConnectorName The security connector name. + * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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 PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginRuleIdExecuteSingleSecurityConnectorAsync( + String resourceGroupName, String securityConnectorName, String ruleId) { + final ExecuteGovernanceRuleParams executeGovernanceRuleParams = null; + Mono>> mono = + ruleIdExecuteSingleSecurityConnectorWithResponseAsync( + resourceGroupName, securityConnectorName, ruleId, executeGovernanceRuleParams); + return this + .client + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + } + /** * Execute a security GovernanceRule on the given security connector. * @@ -970,7 +999,6 @@ private PollerFlux, Void> beginRuleIdExecuteSingleSecurityConne * insensitive. * @param securityConnectorName The security connector name. * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. - * @param executeGovernanceRuleParams GovernanceRule over a subscription scope. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -978,10 +1006,8 @@ private PollerFlux, Void> beginRuleIdExecuteSingleSecurityConne */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginRuleIdExecuteSingleSecurityConnector( - String resourceGroupName, - String securityConnectorName, - String ruleId, - ExecuteGovernanceRuleParams executeGovernanceRuleParams) { + String resourceGroupName, String securityConnectorName, String ruleId) { + final ExecuteGovernanceRuleParams executeGovernanceRuleParams = null; return beginRuleIdExecuteSingleSecurityConnectorAsync( resourceGroupName, securityConnectorName, ruleId, executeGovernanceRuleParams) .getSyncPoller(); @@ -1087,29 +1113,6 @@ private Mono ruleIdExecuteSingleSecurityConnectorAsync( .flatMap(this.client::getLroFinalResultOrError); } - /** - * Execute a security GovernanceRule on the given security connector. - * - * @param resourceGroupName The name of the resource group within the user's subscription. The name is case - * insensitive. - * @param securityConnectorName The security connector name. - * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. - * @param executeGovernanceRuleParams GovernanceRule over a subscription scope. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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) - public void ruleIdExecuteSingleSecurityConnector( - String resourceGroupName, - String securityConnectorName, - String ruleId, - ExecuteGovernanceRuleParams executeGovernanceRuleParams) { - ruleIdExecuteSingleSecurityConnectorAsync( - resourceGroupName, securityConnectorName, ruleId, executeGovernanceRuleParams) - .block(); - } - /** * Execute a security GovernanceRule on the given security connector. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GovernanceRulesOperationsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GovernanceRulesOperationsImpl.java index 5a6ff0844a95a..cccc331c926bc 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GovernanceRulesOperationsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GovernanceRulesOperationsImpl.java @@ -28,15 +28,6 @@ public GovernanceRulesOperationsImpl( this.serviceManager = serviceManager; } - public GovernanceRule get(String ruleId) { - GovernanceRuleInner inner = this.serviceClient().get(ruleId); - if (inner != null) { - return new GovernanceRuleImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse(String ruleId, Context context) { Response inner = this.serviceClient().getWithResponse(ruleId, context); if (inner != null) { @@ -50,17 +41,21 @@ public Response getWithResponse(String ruleId, Context context) } } - public void delete(String ruleId) { - this.serviceClient().delete(ruleId); + public GovernanceRule get(String ruleId) { + GovernanceRuleInner inner = this.serviceClient().get(ruleId); + if (inner != null) { + return new GovernanceRuleImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse(String ruleId, Context context) { return this.serviceClient().deleteWithResponse(ruleId, context); } - public void ruleIdExecuteSingleSubscription( - String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams) { - this.serviceClient().ruleIdExecuteSingleSubscription(ruleId, executeGovernanceRuleParams); + public void delete(String ruleId) { + this.serviceClient().delete(ruleId); } public void ruleIdExecuteSingleSubscription(String ruleId) { @@ -72,17 +67,6 @@ public void ruleIdExecuteSingleSubscription( this.serviceClient().ruleIdExecuteSingleSubscription(ruleId, executeGovernanceRuleParams, context); } - public void ruleIdExecuteSingleSecurityConnector( - String resourceGroupName, - String securityConnectorName, - String ruleId, - ExecuteGovernanceRuleParams executeGovernanceRuleParams) { - this - .serviceClient() - .ruleIdExecuteSingleSecurityConnector( - resourceGroupName, securityConnectorName, ruleId, executeGovernanceRuleParams); - } - public void ruleIdExecuteSingleSecurityConnector( String resourceGroupName, String securityConnectorName, String ruleId) { this.serviceClient().ruleIdExecuteSingleSecurityConnector(resourceGroupName, securityConnectorName, ruleId); diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/InformationProtectionPoliciesClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/InformationProtectionPoliciesClientImpl.java index 4d090693466a9..c608abb75cf21 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/InformationProtectionPoliciesClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/InformationProtectionPoliciesClientImpl.java @@ -218,15 +218,16 @@ private Mono getAsync( * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or * management group (/providers/Microsoft.Management/managementGroups/mgName). * @param informationProtectionPolicyName Name of the information protection policy. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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. + * @return information protection policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public InformationProtectionPolicyInner get( - String scope, InformationProtectionPolicyName informationProtectionPolicyName) { - return getAsync(scope, informationProtectionPolicyName).block(); + public Response getWithResponse( + String scope, InformationProtectionPolicyName informationProtectionPolicyName, Context context) { + return getWithResponseAsync(scope, informationProtectionPolicyName, context).block(); } /** @@ -235,16 +236,15 @@ public InformationProtectionPolicyInner get( * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or * management group (/providers/Microsoft.Management/managementGroups/mgName). * @param informationProtectionPolicyName Name of the information protection policy. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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}. + * @return information protection policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String scope, InformationProtectionPolicyName informationProtectionPolicyName, Context context) { - return getWithResponseAsync(scope, informationProtectionPolicyName, context).block(); + public InformationProtectionPolicyInner get( + String scope, InformationProtectionPolicyName informationProtectionPolicyName) { + return getWithResponse(scope, informationProtectionPolicyName, Context.NONE).getValue(); } /** @@ -388,17 +388,21 @@ private Mono createOrUpdateAsync( * management group (/providers/Microsoft.Management/managementGroups/mgName). * @param informationProtectionPolicyName Name of the information protection policy. * @param informationProtectionPolicy Information protection policy. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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. + * @return information protection policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public InformationProtectionPolicyInner createOrUpdate( + public Response createOrUpdateWithResponse( String scope, InformationProtectionPolicyName informationProtectionPolicyName, - InformationProtectionPolicyInner informationProtectionPolicy) { - return createOrUpdateAsync(scope, informationProtectionPolicyName, informationProtectionPolicy).block(); + InformationProtectionPolicyInner informationProtectionPolicy, + Context context) { + return createOrUpdateWithResponseAsync( + scope, informationProtectionPolicyName, informationProtectionPolicy, context) + .block(); } /** @@ -408,21 +412,19 @@ public InformationProtectionPolicyInner createOrUpdate( * management group (/providers/Microsoft.Management/managementGroups/mgName). * @param informationProtectionPolicyName Name of the information protection policy. * @param informationProtectionPolicy Information protection policy. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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}. + * @return information protection policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( + public InformationProtectionPolicyInner createOrUpdate( String scope, InformationProtectionPolicyName informationProtectionPolicyName, - InformationProtectionPolicyInner informationProtectionPolicy, - Context context) { - return createOrUpdateWithResponseAsync( - scope, informationProtectionPolicyName, informationProtectionPolicy, context) - .block(); + InformationProtectionPolicyInner informationProtectionPolicy) { + return createOrUpdateWithResponse( + scope, informationProtectionPolicyName, informationProtectionPolicy, Context.NONE) + .getValue(); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/InformationProtectionPoliciesImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/InformationProtectionPoliciesImpl.java index ca70e9a8da32b..041a625a2edaf 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/InformationProtectionPoliciesImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/InformationProtectionPoliciesImpl.java @@ -29,16 +29,6 @@ public InformationProtectionPoliciesImpl( this.serviceManager = serviceManager; } - public InformationProtectionPolicy get( - String scope, InformationProtectionPolicyName informationProtectionPolicyName) { - InformationProtectionPolicyInner inner = this.serviceClient().get(scope, informationProtectionPolicyName); - if (inner != null) { - return new InformationProtectionPolicyImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String scope, InformationProtectionPolicyName informationProtectionPolicyName, Context context) { Response inner = @@ -54,6 +44,16 @@ public Response getWithResponse( } } + public InformationProtectionPolicy get( + String scope, InformationProtectionPolicyName informationProtectionPolicyName) { + InformationProtectionPolicyInner inner = this.serviceClient().get(scope, informationProtectionPolicyName); + if (inner != null) { + return new InformationProtectionPolicyImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable list(String scope) { PagedIterable inner = this.serviceClient().list(scope); return Utils.mapPage(inner, inner1 -> new InformationProtectionPolicyImpl(inner1, this.manager())); diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IngestionSettingImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IngestionSettingImpl.java index 41227d6283536..0100de28a14d0 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IngestionSettingImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IngestionSettingImpl.java @@ -94,22 +94,22 @@ public IngestionSetting refresh(Context context) { return this; } - public IngestionSettingToken listTokens() { - return serviceManager.ingestionSettings().listTokens(ingestionSettingName); - } - public Response listTokensWithResponse(Context context) { return serviceManager.ingestionSettings().listTokensWithResponse(ingestionSettingName, context); } - public ConnectionStrings listConnectionStrings() { - return serviceManager.ingestionSettings().listConnectionStrings(ingestionSettingName); + public IngestionSettingToken listTokens() { + return serviceManager.ingestionSettings().listTokens(ingestionSettingName); } public Response listConnectionStringsWithResponse(Context context) { return serviceManager.ingestionSettings().listConnectionStringsWithResponse(ingestionSettingName, context); } + public ConnectionStrings listConnectionStrings() { + return serviceManager.ingestionSettings().listConnectionStrings(ingestionSettingName); + } + public IngestionSettingImpl withProperties(Object properties) { this.innerModel().withProperties(properties); return this; diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IngestionSettingsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IngestionSettingsClientImpl.java index be7b1fdaa3b68..7f0cb281689ca 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IngestionSettingsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IngestionSettingsClientImpl.java @@ -386,30 +386,30 @@ private Mono getAsync(String ingestionSettingName) { * Settings for ingesting security data and logs to correlate with resources associated with the subscription. * * @param ingestionSettingName Name of the ingestion setting. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return configures how to correlate scan data and logs with resources associated with the subscription. + * @return configures how to correlate scan data and logs with resources associated with the subscription along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IngestionSettingInner get(String ingestionSettingName) { - return getAsync(ingestionSettingName).block(); + public Response getWithResponse(String ingestionSettingName, Context context) { + return getWithResponseAsync(ingestionSettingName, context).block(); } /** * Settings for ingesting security data and logs to correlate with resources associated with the subscription. * * @param ingestionSettingName Name of the ingestion setting. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return configures how to correlate scan data and logs with resources associated with the subscription along with - * {@link Response}. + * @return configures how to correlate scan data and logs with resources associated with the subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String ingestionSettingName, Context context) { - return getWithResponseAsync(ingestionSettingName, context).block(); + public IngestionSettingInner get(String ingestionSettingName) { + return getWithResponse(ingestionSettingName, Context.NONE).getValue(); } /** @@ -539,14 +539,17 @@ private Mono createAsync( * * @param ingestionSettingName Name of the ingestion setting. * @param ingestionSetting Ingestion setting object. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return configures how to correlate scan data and logs with resources associated with the subscription. + * @return configures how to correlate scan data and logs with resources associated with the subscription along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IngestionSettingInner create(String ingestionSettingName, IngestionSettingInner ingestionSetting) { - return createAsync(ingestionSettingName, ingestionSetting).block(); + public Response createWithResponse( + String ingestionSettingName, IngestionSettingInner ingestionSetting, Context context) { + return createWithResponseAsync(ingestionSettingName, ingestionSetting, context).block(); } /** @@ -554,17 +557,14 @@ public IngestionSettingInner create(String ingestionSettingName, IngestionSettin * * @param ingestionSettingName Name of the ingestion setting. * @param ingestionSetting Ingestion setting object. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return configures how to correlate scan data and logs with resources associated with the subscription along with - * {@link Response}. + * @return configures how to correlate scan data and logs with resources associated with the subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createWithResponse( - String ingestionSettingName, IngestionSettingInner ingestionSetting, Context context) { - return createWithResponseAsync(ingestionSettingName, ingestionSetting, context).block(); + public IngestionSettingInner create(String ingestionSettingName, IngestionSettingInner ingestionSetting) { + return createWithResponse(ingestionSettingName, ingestionSetting, Context.NONE).getValue(); } /** @@ -669,28 +669,28 @@ private Mono deleteAsync(String ingestionSettingName) { * Deletes the ingestion settings for this subscription. * * @param ingestionSettingName Name of the ingestion setting. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public void delete(String ingestionSettingName) { - deleteAsync(ingestionSettingName).block(); + public Response deleteWithResponse(String ingestionSettingName, Context context) { + return deleteWithResponseAsync(ingestionSettingName, context).block(); } /** * Deletes the ingestion settings for this subscription. * * @param ingestionSettingName Name of the ingestion setting. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public Response deleteWithResponse(String ingestionSettingName, Context context) { - return deleteWithResponseAsync(ingestionSettingName, context).block(); + public void delete(String ingestionSettingName) { + deleteWithResponse(ingestionSettingName, Context.NONE); } /** @@ -799,30 +799,30 @@ private Mono listTokensAsync(String ingestionSetting * Returns the token that is used for correlating ingested telemetry with the resources in the subscription. * * @param ingestionSettingName Name of the ingestion setting. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return configures how to correlate scan data and logs with resources associated with the subscription. + * @return configures how to correlate scan data and logs with resources associated with the subscription along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IngestionSettingTokenInner listTokens(String ingestionSettingName) { - return listTokensAsync(ingestionSettingName).block(); + public Response listTokensWithResponse(String ingestionSettingName, Context context) { + return listTokensWithResponseAsync(ingestionSettingName, context).block(); } /** * Returns the token that is used for correlating ingested telemetry with the resources in the subscription. * * @param ingestionSettingName Name of the ingestion setting. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return configures how to correlate scan data and logs with resources associated with the subscription along with - * {@link Response}. + * @return configures how to correlate scan data and logs with resources associated with the subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listTokensWithResponse(String ingestionSettingName, Context context) { - return listTokensWithResponseAsync(ingestionSettingName, context).block(); + public IngestionSettingTokenInner listTokens(String ingestionSettingName) { + return listTokensWithResponse(ingestionSettingName, Context.NONE).getValue(); } /** @@ -931,30 +931,30 @@ private Mono listConnectionStringsAsync(String ingestion * Connection strings for ingesting security scan logs and data. * * @param ingestionSettingName Name of the ingestion setting. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connection string for ingesting security data and logs. + * @return connection string for ingesting security data and logs along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ConnectionStringsInner listConnectionStrings(String ingestionSettingName) { - return listConnectionStringsAsync(ingestionSettingName).block(); + public Response listConnectionStringsWithResponse( + String ingestionSettingName, Context context) { + return listConnectionStringsWithResponseAsync(ingestionSettingName, context).block(); } /** * Connection strings for ingesting security scan logs and data. * * @param ingestionSettingName Name of the ingestion setting. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connection string for ingesting security data and logs along with {@link Response}. + * @return connection string for ingesting security data and logs. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listConnectionStringsWithResponse( - String ingestionSettingName, Context context) { - return listConnectionStringsWithResponseAsync(ingestionSettingName, context).block(); + public ConnectionStringsInner listConnectionStrings(String ingestionSettingName) { + return listConnectionStringsWithResponse(ingestionSettingName, Context.NONE).getValue(); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IngestionSettingsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IngestionSettingsImpl.java index dcb764f4ff178..da9c5111770eb 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IngestionSettingsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IngestionSettingsImpl.java @@ -41,15 +41,6 @@ public PagedIterable list(Context context) { return Utils.mapPage(inner, inner1 -> new IngestionSettingImpl(inner1, this.manager())); } - public IngestionSetting get(String ingestionSettingName) { - IngestionSettingInner inner = this.serviceClient().get(ingestionSettingName); - if (inner != null) { - return new IngestionSettingImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse(String ingestionSettingName, Context context) { Response inner = this.serviceClient().getWithResponse(ingestionSettingName, context); if (inner != null) { @@ -63,21 +54,21 @@ public Response getWithResponse(String ingestionSettingName, C } } - public void delete(String ingestionSettingName) { - this.serviceClient().delete(ingestionSettingName); + public IngestionSetting get(String ingestionSettingName) { + IngestionSettingInner inner = this.serviceClient().get(ingestionSettingName); + if (inner != null) { + return new IngestionSettingImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse(String ingestionSettingName, Context context) { return this.serviceClient().deleteWithResponse(ingestionSettingName, context); } - public IngestionSettingToken listTokens(String ingestionSettingName) { - IngestionSettingTokenInner inner = this.serviceClient().listTokens(ingestionSettingName); - if (inner != null) { - return new IngestionSettingTokenImpl(inner, this.manager()); - } else { - return null; - } + public void delete(String ingestionSettingName) { + this.serviceClient().delete(ingestionSettingName); } public Response listTokensWithResponse(String ingestionSettingName, Context context) { @@ -94,10 +85,10 @@ public Response listTokensWithResponse(String ingestionSe } } - public ConnectionStrings listConnectionStrings(String ingestionSettingName) { - ConnectionStringsInner inner = this.serviceClient().listConnectionStrings(ingestionSettingName); + public IngestionSettingToken listTokens(String ingestionSettingName) { + IngestionSettingTokenInner inner = this.serviceClient().listTokens(ingestionSettingName); if (inner != null) { - return new ConnectionStringsImpl(inner, this.manager()); + return new IngestionSettingTokenImpl(inner, this.manager()); } else { return null; } @@ -117,6 +108,15 @@ public Response listConnectionStringsWithResponse(String inge } } + public ConnectionStrings listConnectionStrings(String ingestionSettingName) { + ConnectionStringsInner inner = this.serviceClient().listConnectionStrings(ingestionSettingName); + if (inner != null) { + return new ConnectionStringsImpl(inner, this.manager()); + } else { + return null; + } + } + public IngestionSetting getById(String id) { String ingestionSettingName = Utils.getValueFromIdByName(id, "ingestionSettings"); if (ingestionSettingName == null) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionAnalyticsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionAnalyticsClientImpl.java index 617e1c7502bfc..15304681039c3 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionAnalyticsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionAnalyticsClientImpl.java @@ -207,14 +207,16 @@ private Mono listAsync(String resour * @param resourceGroupName The name of the resource group within the user's subscription. 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 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 list of Security analytics of your IoT Security solution along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IoTSecuritySolutionAnalyticsModelListInner list(String resourceGroupName, String solutionName) { - return listAsync(resourceGroupName, solutionName).block(); + public Response listWithResponse( + String resourceGroupName, String solutionName, Context context) { + return listWithResponseAsync(resourceGroupName, solutionName, context).block(); } /** @@ -223,16 +225,14 @@ public IoTSecuritySolutionAnalyticsModelListInner list(String resourceGroupName, * @param resourceGroupName The name of the resource group within the user's subscription. 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 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 list of Security analytics of your IoT Security solution. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listWithResponse( - String resourceGroupName, String solutionName, Context context) { - return listWithResponseAsync(resourceGroupName, solutionName, context).block(); + public IoTSecuritySolutionAnalyticsModelListInner list(String resourceGroupName, String solutionName) { + return listWithResponse(resourceGroupName, solutionName, Context.NONE).getValue(); } /** @@ -357,14 +357,16 @@ private Mono getAsync(String resourceGro * @param resourceGroupName The name of the resource group within the user's subscription. 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 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 security analytics of your IoT Security solution along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IoTSecuritySolutionAnalyticsModelInner get(String resourceGroupName, String solutionName) { - return getAsync(resourceGroupName, solutionName).block(); + public Response getWithResponse( + String resourceGroupName, String solutionName, Context context) { + return getWithResponseAsync(resourceGroupName, solutionName, context).block(); } /** @@ -373,15 +375,13 @@ public IoTSecuritySolutionAnalyticsModelInner get(String resourceGroupName, Stri * @param resourceGroupName The name of the resource group within the user's subscription. 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 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 security analytics of your IoT Security solution. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String solutionName, Context context) { - return getWithResponseAsync(resourceGroupName, solutionName, context).block(); + public IoTSecuritySolutionAnalyticsModelInner get(String resourceGroupName, String solutionName) { + return getWithResponse(resourceGroupName, solutionName, Context.NONE).getValue(); } } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionAnalyticsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionAnalyticsImpl.java index 7c1283b600959..23c075d86a6d1 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionAnalyticsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionAnalyticsImpl.java @@ -29,15 +29,6 @@ public IotSecuritySolutionAnalyticsImpl( this.serviceManager = serviceManager; } - public IoTSecuritySolutionAnalyticsModelList list(String resourceGroupName, String solutionName) { - IoTSecuritySolutionAnalyticsModelListInner inner = this.serviceClient().list(resourceGroupName, solutionName); - if (inner != null) { - return new IoTSecuritySolutionAnalyticsModelListImpl(inner, this.manager()); - } else { - return null; - } - } - public Response listWithResponse( String resourceGroupName, String solutionName, Context context) { Response inner = @@ -53,10 +44,10 @@ public Response listWithResponse( } } - public IoTSecuritySolutionAnalyticsModel get(String resourceGroupName, String solutionName) { - IoTSecuritySolutionAnalyticsModelInner inner = this.serviceClient().get(resourceGroupName, solutionName); + public IoTSecuritySolutionAnalyticsModelList list(String resourceGroupName, String solutionName) { + IoTSecuritySolutionAnalyticsModelListInner inner = this.serviceClient().list(resourceGroupName, solutionName); if (inner != null) { - return new IoTSecuritySolutionAnalyticsModelImpl(inner, this.manager()); + return new IoTSecuritySolutionAnalyticsModelListImpl(inner, this.manager()); } else { return null; } @@ -77,6 +68,15 @@ public Response getWithResponse( } } + public IoTSecuritySolutionAnalyticsModel get(String resourceGroupName, String solutionName) { + IoTSecuritySolutionAnalyticsModelInner inner = this.serviceClient().get(resourceGroupName, solutionName); + if (inner != null) { + return new IoTSecuritySolutionAnalyticsModelImpl(inner, this.manager()); + } else { + return null; + } + } + private IotSecuritySolutionAnalyticsClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionsAnalyticsAggregatedAlertsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionsAnalyticsAggregatedAlertsClientImpl.java index 531883b0c6242..af1edd74aa3c3 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionsAnalyticsAggregatedAlertsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionsAnalyticsAggregatedAlertsClientImpl.java @@ -485,15 +485,16 @@ private Mono getAsync( * 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 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 security Solution Aggregated Alert information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IoTSecurityAggregatedAlertInner get( - String resourceGroupName, String solutionName, String aggregatedAlertName) { - return getAsync(resourceGroupName, solutionName, aggregatedAlertName).block(); + public Response getWithResponse( + String resourceGroupName, String solutionName, String aggregatedAlertName, Context context) { + return getWithResponseAsync(resourceGroupName, solutionName, aggregatedAlertName, context).block(); } /** @@ -504,16 +505,15 @@ public IoTSecurityAggregatedAlertInner get( * 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 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 security Solution Aggregated Alert information. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String solutionName, String aggregatedAlertName, Context context) { - return getWithResponseAsync(resourceGroupName, solutionName, aggregatedAlertName, context).block(); + public IoTSecurityAggregatedAlertInner get( + String resourceGroupName, String solutionName, String aggregatedAlertName) { + return getWithResponse(resourceGroupName, solutionName, aggregatedAlertName, Context.NONE).getValue(); } /** @@ -651,13 +651,16 @@ private Mono dismissAsync(String resourceGroupName, String solutionName, S * 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 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) - public void dismiss(String resourceGroupName, String solutionName, String aggregatedAlertName) { - dismissAsync(resourceGroupName, solutionName, aggregatedAlertName).block(); + public Response dismissWithResponse( + String resourceGroupName, String solutionName, String aggregatedAlertName, Context context) { + return dismissWithResponseAsync(resourceGroupName, solutionName, aggregatedAlertName, context).block(); } /** @@ -667,16 +670,13 @@ public void dismiss(String resourceGroupName, String solutionName, String aggreg * 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 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) - public Response dismissWithResponse( - String resourceGroupName, String solutionName, String aggregatedAlertName, Context context) { - return dismissWithResponseAsync(resourceGroupName, solutionName, aggregatedAlertName, context).block(); + public void dismiss(String resourceGroupName, String solutionName, String aggregatedAlertName) { + dismissWithResponse(resourceGroupName, solutionName, aggregatedAlertName, Context.NONE); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionsAnalyticsAggregatedAlertsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionsAnalyticsAggregatedAlertsImpl.java index 4604b03ef10ba..be131cbc54315 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionsAnalyticsAggregatedAlertsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionsAnalyticsAggregatedAlertsImpl.java @@ -43,16 +43,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new IoTSecurityAggregatedAlertImpl(inner1, this.manager())); } - public IoTSecurityAggregatedAlert get(String resourceGroupName, String solutionName, String aggregatedAlertName) { - IoTSecurityAggregatedAlertInner inner = - this.serviceClient().get(resourceGroupName, solutionName, aggregatedAlertName); - if (inner != null) { - return new IoTSecurityAggregatedAlertImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String solutionName, String aggregatedAlertName, Context context) { Response inner = @@ -68,8 +58,14 @@ public Response getWithResponse( } } - public void dismiss(String resourceGroupName, String solutionName, String aggregatedAlertName) { - this.serviceClient().dismiss(resourceGroupName, solutionName, aggregatedAlertName); + public IoTSecurityAggregatedAlert get(String resourceGroupName, String solutionName, String aggregatedAlertName) { + IoTSecurityAggregatedAlertInner inner = + this.serviceClient().get(resourceGroupName, solutionName, aggregatedAlertName); + if (inner != null) { + return new IoTSecurityAggregatedAlertImpl(inner, this.manager()); + } else { + return null; + } } public Response dismissWithResponse( @@ -77,6 +73,10 @@ public Response dismissWithResponse( return this.serviceClient().dismissWithResponse(resourceGroupName, solutionName, aggregatedAlertName, context); } + public void dismiss(String resourceGroupName, String solutionName, String aggregatedAlertName) { + this.serviceClient().dismiss(resourceGroupName, solutionName, aggregatedAlertName); + } + private IotSecuritySolutionsAnalyticsAggregatedAlertsClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionsAnalyticsRecommendationsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionsAnalyticsRecommendationsClientImpl.java index c97a81a5135b8..9b84cb0830b17 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionsAnalyticsRecommendationsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionsAnalyticsRecommendationsClientImpl.java @@ -254,15 +254,16 @@ private Mono getAsync( * insensitive. * @param solutionName The name of the IoT Security solution. * @param aggregatedRecommendationName Name of the recommendation aggregated for this query. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return ioT Security solution recommendation information. + * @return ioT Security solution recommendation information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IoTSecurityAggregatedRecommendationInner get( - String resourceGroupName, String solutionName, String aggregatedRecommendationName) { - return getAsync(resourceGroupName, solutionName, aggregatedRecommendationName).block(); + public Response getWithResponse( + String resourceGroupName, String solutionName, String aggregatedRecommendationName, Context context) { + return getWithResponseAsync(resourceGroupName, solutionName, aggregatedRecommendationName, context).block(); } /** @@ -273,16 +274,15 @@ public IoTSecurityAggregatedRecommendationInner get( * insensitive. * @param solutionName The name of the IoT Security solution. * @param aggregatedRecommendationName Name of the recommendation aggregated for this query. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return ioT Security solution recommendation information along with {@link Response}. + * @return ioT Security solution recommendation information. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String solutionName, String aggregatedRecommendationName, Context context) { - return getWithResponseAsync(resourceGroupName, solutionName, aggregatedRecommendationName, context).block(); + public IoTSecurityAggregatedRecommendationInner get( + String resourceGroupName, String solutionName, String aggregatedRecommendationName) { + return getWithResponse(resourceGroupName, solutionName, aggregatedRecommendationName, Context.NONE).getValue(); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionsAnalyticsRecommendationsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionsAnalyticsRecommendationsImpl.java index 3b26c73f228fb..785dc37759abd 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionsAnalyticsRecommendationsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionsAnalyticsRecommendationsImpl.java @@ -29,17 +29,6 @@ public IotSecuritySolutionsAnalyticsRecommendationsImpl( this.serviceManager = serviceManager; } - public IoTSecurityAggregatedRecommendation get( - String resourceGroupName, String solutionName, String aggregatedRecommendationName) { - IoTSecurityAggregatedRecommendationInner inner = - this.serviceClient().get(resourceGroupName, solutionName, aggregatedRecommendationName); - if (inner != null) { - return new IoTSecurityAggregatedRecommendationImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String solutionName, String aggregatedRecommendationName, Context context) { Response inner = @@ -57,6 +46,17 @@ public Response getWithResponse( } } + public IoTSecurityAggregatedRecommendation get( + String resourceGroupName, String solutionName, String aggregatedRecommendationName) { + IoTSecurityAggregatedRecommendationInner inner = + this.serviceClient().get(resourceGroupName, solutionName, aggregatedRecommendationName); + if (inner != null) { + return new IoTSecurityAggregatedRecommendationImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable list(String resourceGroupName, String solutionName) { PagedIterable inner = this.serviceClient().list(resourceGroupName, solutionName); diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionsClientImpl.java index 3d6ffe27b8ac5..f8ded9ff55695 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionsClientImpl.java @@ -657,14 +657,16 @@ private Mono getByResourceGroupAsync(String resou * @param resourceGroupName The name of the resource group within the user's subscription. 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 ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return ioT Security solution configuration and resource information. + * @return ioT Security solution configuration and resource information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IoTSecuritySolutionModelInner getByResourceGroup(String resourceGroupName, String solutionName) { - return getByResourceGroupAsync(resourceGroupName, solutionName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String solutionName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, solutionName, context).block(); } /** @@ -673,16 +675,14 @@ public IoTSecuritySolutionModelInner getByResourceGroup(String resourceGroupName * @param resourceGroupName The name of the resource group within the user's subscription. 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 ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return ioT Security solution configuration and resource information along with {@link Response}. + * @return ioT Security solution configuration and resource information. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String solutionName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, solutionName, context).block(); + public IoTSecuritySolutionModelInner getByResourceGroup(String resourceGroupName, String solutionName) { + return getByResourceGroupWithResponse(resourceGroupName, solutionName, Context.NONE).getValue(); } /** @@ -832,15 +832,20 @@ private Mono createOrUpdateAsync( * insensitive. * @param solutionName The name of the IoT Security solution. * @param iotSecuritySolutionData The security solution data. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return ioT Security solution configuration and resource information. + * @return ioT Security solution configuration and resource information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IoTSecuritySolutionModelInner createOrUpdate( - String resourceGroupName, String solutionName, IoTSecuritySolutionModelInner iotSecuritySolutionData) { - return createOrUpdateAsync(resourceGroupName, solutionName, iotSecuritySolutionData).block(); + public Response createOrUpdateWithResponse( + String resourceGroupName, + String solutionName, + IoTSecuritySolutionModelInner iotSecuritySolutionData, + Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, solutionName, iotSecuritySolutionData, context) + .block(); } /** @@ -850,20 +855,16 @@ public IoTSecuritySolutionModelInner createOrUpdate( * insensitive. * @param solutionName The name of the IoT Security solution. * @param iotSecuritySolutionData The security solution data. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return ioT Security solution configuration and resource information along with {@link Response}. + * @return ioT Security solution configuration and resource information. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String solutionName, - IoTSecuritySolutionModelInner iotSecuritySolutionData, - Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, solutionName, iotSecuritySolutionData, context) - .block(); + public IoTSecuritySolutionModelInner createOrUpdate( + String resourceGroupName, String solutionName, IoTSecuritySolutionModelInner iotSecuritySolutionData) { + return createOrUpdateWithResponse(resourceGroupName, solutionName, iotSecuritySolutionData, Context.NONE) + .getValue(); } /** @@ -1019,15 +1020,19 @@ private Mono updateAsync( * insensitive. * @param solutionName The name of the IoT Security solution. * @param updateIotSecuritySolutionData The security solution data. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return ioT Security solution configuration and resource information. + * @return ioT Security solution configuration and resource information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IoTSecuritySolutionModelInner update( - String resourceGroupName, String solutionName, UpdateIotSecuritySolutionData updateIotSecuritySolutionData) { - return updateAsync(resourceGroupName, solutionName, updateIotSecuritySolutionData).block(); + public Response updateWithResponse( + String resourceGroupName, + String solutionName, + UpdateIotSecuritySolutionData updateIotSecuritySolutionData, + Context context) { + return updateWithResponseAsync(resourceGroupName, solutionName, updateIotSecuritySolutionData, context).block(); } /** @@ -1038,19 +1043,16 @@ public IoTSecuritySolutionModelInner update( * insensitive. * @param solutionName The name of the IoT Security solution. * @param updateIotSecuritySolutionData The security solution data. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return ioT Security solution configuration and resource information along with {@link Response}. + * @return ioT Security solution configuration and resource information. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, - String solutionName, - UpdateIotSecuritySolutionData updateIotSecuritySolutionData, - Context context) { - return updateWithResponseAsync(resourceGroupName, solutionName, updateIotSecuritySolutionData, context).block(); + public IoTSecuritySolutionModelInner update( + String resourceGroupName, String solutionName, UpdateIotSecuritySolutionData updateIotSecuritySolutionData) { + return updateWithResponse(resourceGroupName, solutionName, updateIotSecuritySolutionData, Context.NONE) + .getValue(); } /** @@ -1172,13 +1174,15 @@ private Mono deleteAsync(String resourceGroupName, String solutionName) { * @param resourceGroupName The name of the resource group within the user's subscription. 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 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) - public void delete(String resourceGroupName, String solutionName) { - deleteAsync(resourceGroupName, solutionName).block(); + public Response deleteWithResponse(String resourceGroupName, String solutionName, Context context) { + return deleteWithResponseAsync(resourceGroupName, solutionName, context).block(); } /** @@ -1187,15 +1191,13 @@ public void delete(String resourceGroupName, String solutionName) { * @param resourceGroupName The name of the resource group within the user's subscription. 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 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) - public Response deleteWithResponse(String resourceGroupName, String solutionName, Context context) { - return deleteWithResponseAsync(resourceGroupName, solutionName, context).block(); + public void delete(String resourceGroupName, String solutionName) { + deleteWithResponse(resourceGroupName, solutionName, Context.NONE); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionsImpl.java index 153e4bbbc971f..157e75226a149 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotSecuritySolutionsImpl.java @@ -50,15 +50,6 @@ public PagedIterable listByResourceGroup( return Utils.mapPage(inner, inner1 -> new IoTSecuritySolutionModelImpl(inner1, this.manager())); } - public IoTSecuritySolutionModel getByResourceGroup(String resourceGroupName, String solutionName) { - IoTSecuritySolutionModelInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, solutionName); - if (inner != null) { - return new IoTSecuritySolutionModelImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse( String resourceGroupName, String solutionName, Context context) { Response inner = @@ -74,14 +65,24 @@ public Response getByResourceGroupWithResponse( } } - public void deleteByResourceGroup(String resourceGroupName, String solutionName) { - this.serviceClient().delete(resourceGroupName, solutionName); + public IoTSecuritySolutionModel getByResourceGroup(String resourceGroupName, String solutionName) { + IoTSecuritySolutionModelInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, solutionName); + if (inner != null) { + return new IoTSecuritySolutionModelImpl(inner, this.manager()); + } else { + return null; + } } - public Response deleteWithResponse(String resourceGroupName, String solutionName, Context context) { + public Response deleteByResourceGroupWithResponse( + String resourceGroupName, String solutionName, Context context) { return this.serviceClient().deleteWithResponse(resourceGroupName, solutionName, context); } + public void deleteByResourceGroup(String resourceGroupName, String solutionName) { + this.serviceClient().delete(resourceGroupName, solutionName); + } + public IoTSecuritySolutionModel getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { @@ -145,7 +146,7 @@ public void deleteById(String id) { "The resource ID '%s' is not valid. Missing path segment 'iotSecuritySolutions'.", id))); } - this.deleteWithResponse(resourceGroupName, solutionName, Context.NONE); + this.deleteByResourceGroupWithResponse(resourceGroupName, solutionName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { @@ -167,7 +168,7 @@ public Response deleteByIdWithResponse(String id, Context context) { "The resource ID '%s' is not valid. Missing path segment 'iotSecuritySolutions'.", id))); } - return this.deleteWithResponse(resourceGroupName, solutionName, context); + return this.deleteByResourceGroupWithResponse(resourceGroupName, solutionName, context); } private IotSecuritySolutionsClient serviceClient() { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/JitNetworkAccessPoliciesClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/JitNetworkAccessPoliciesClientImpl.java index 4cd262718ace5..796e0285e65b0 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/JitNetworkAccessPoliciesClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/JitNetworkAccessPoliciesClientImpl.java @@ -1033,15 +1033,16 @@ private Mono getAsync( * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public JitNetworkAccessPolicyInner get( - String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName) { - return getAsync(resourceGroupName, ascLocation, jitNetworkAccessPolicyName).block(); + public Response getWithResponse( + String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, Context context) { + return getWithResponseAsync(resourceGroupName, ascLocation, jitNetworkAccessPolicyName, context).block(); } /** @@ -1052,16 +1053,15 @@ public JitNetworkAccessPolicyInner get( * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, Context context) { - return getWithResponseAsync(resourceGroupName, ascLocation, jitNetworkAccessPolicyName, context).block(); + public JitNetworkAccessPolicyInner get( + String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName) { + return getWithResponse(resourceGroupName, ascLocation, jitNetworkAccessPolicyName, Context.NONE).getValue(); } /** @@ -1234,18 +1234,22 @@ private Mono createOrUpdateAsync( * locations. * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. * @param body The body parameter. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public JitNetworkAccessPolicyInner createOrUpdate( + public Response createOrUpdateWithResponse( String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, - JitNetworkAccessPolicyInner body) { - return createOrUpdateAsync(resourceGroupName, ascLocation, jitNetworkAccessPolicyName, body).block(); + JitNetworkAccessPolicyInner body, + Context context) { + return createOrUpdateWithResponseAsync( + resourceGroupName, ascLocation, jitNetworkAccessPolicyName, body, context) + .block(); } /** @@ -1257,22 +1261,20 @@ public JitNetworkAccessPolicyInner createOrUpdate( * locations. * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. * @param body The body parameter. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( + public JitNetworkAccessPolicyInner createOrUpdate( String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, - JitNetworkAccessPolicyInner body, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, ascLocation, jitNetworkAccessPolicyName, body, context) - .block(); + JitNetworkAccessPolicyInner body) { + return createOrUpdateWithResponse( + resourceGroupName, ascLocation, jitNetworkAccessPolicyName, body, Context.NONE) + .getValue(); } /** @@ -1418,13 +1420,16 @@ private Mono deleteAsync(String resourceGroupName, String ascLocation, Str * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public void delete(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName) { - deleteAsync(resourceGroupName, ascLocation, jitNetworkAccessPolicyName).block(); + public Response deleteWithResponse( + String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, Context context) { + return deleteWithResponseAsync(resourceGroupName, ascLocation, jitNetworkAccessPolicyName, context).block(); } /** @@ -1435,16 +1440,13 @@ public void delete(String resourceGroupName, String ascLocation, String jitNetwo * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public Response deleteWithResponse( - String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, Context context) { - return deleteWithResponseAsync(resourceGroupName, ascLocation, jitNetworkAccessPolicyName, context).block(); + public void delete(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName) { + deleteWithResponse(resourceGroupName, ascLocation, jitNetworkAccessPolicyName, Context.NONE); } /** @@ -1621,18 +1623,21 @@ private Mono initiateAsync( * locations. * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. * @param body The body parameter. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public JitNetworkAccessRequestInner initiate( + public Response initiateWithResponse( String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, - JitNetworkAccessPolicyInitiateRequest body) { - return initiateAsync(resourceGroupName, ascLocation, jitNetworkAccessPolicyName, body).block(); + JitNetworkAccessPolicyInitiateRequest body, + Context context) { + return initiateWithResponseAsync(resourceGroupName, ascLocation, jitNetworkAccessPolicyName, body, context) + .block(); } /** @@ -1644,21 +1649,19 @@ public JitNetworkAccessRequestInner initiate( * locations. * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. * @param body The body parameter. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response initiateWithResponse( + public JitNetworkAccessRequestInner initiate( String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, - JitNetworkAccessPolicyInitiateRequest body, - Context context) { - return initiateWithResponseAsync(resourceGroupName, ascLocation, jitNetworkAccessPolicyName, body, context) - .block(); + JitNetworkAccessPolicyInitiateRequest body) { + return initiateWithResponse(resourceGroupName, ascLocation, jitNetworkAccessPolicyName, body, Context.NONE) + .getValue(); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/JitNetworkAccessPoliciesImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/JitNetworkAccessPoliciesImpl.java index 8d16ca49383fd..b9d9dcc313b61 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/JitNetworkAccessPoliciesImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/JitNetworkAccessPoliciesImpl.java @@ -75,16 +75,6 @@ public PagedIterable listByResourceGroupAndRegion( return Utils.mapPage(inner, inner1 -> new JitNetworkAccessPolicyImpl(inner1, this.manager())); } - public JitNetworkAccessPolicy get(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName) { - JitNetworkAccessPolicyInner inner = - this.serviceClient().get(resourceGroupName, ascLocation, jitNetworkAccessPolicyName); - if (inner != null) { - return new JitNetworkAccessPolicyImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, Context context) { Response inner = @@ -100,8 +90,14 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName) { - this.serviceClient().delete(resourceGroupName, ascLocation, jitNetworkAccessPolicyName); + public JitNetworkAccessPolicy get(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName) { + JitNetworkAccessPolicyInner inner = + this.serviceClient().get(resourceGroupName, ascLocation, jitNetworkAccessPolicyName); + if (inner != null) { + return new JitNetworkAccessPolicyImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -111,18 +107,8 @@ public Response deleteWithResponse( .deleteWithResponse(resourceGroupName, ascLocation, jitNetworkAccessPolicyName, context); } - public JitNetworkAccessRequest initiate( - String resourceGroupName, - String ascLocation, - String jitNetworkAccessPolicyName, - JitNetworkAccessPolicyInitiateRequest body) { - JitNetworkAccessRequestInner inner = - this.serviceClient().initiate(resourceGroupName, ascLocation, jitNetworkAccessPolicyName, body); - if (inner != null) { - return new JitNetworkAccessRequestImpl(inner, this.manager()); - } else { - return null; - } + public void delete(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName) { + this.serviceClient().delete(resourceGroupName, ascLocation, jitNetworkAccessPolicyName); } public Response initiateWithResponse( @@ -146,6 +132,20 @@ public Response initiateWithResponse( } } + public JitNetworkAccessRequest initiate( + String resourceGroupName, + String ascLocation, + String jitNetworkAccessPolicyName, + JitNetworkAccessPolicyInitiateRequest body) { + JitNetworkAccessRequestInner inner = + this.serviceClient().initiate(resourceGroupName, ascLocation, jitNetworkAccessPolicyName, body); + if (inner != null) { + return new JitNetworkAccessRequestImpl(inner, this.manager()); + } else { + return null; + } + } + public JitNetworkAccessPolicy getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/LocationsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/LocationsClientImpl.java index 8fae83f048778..bf68e1a066908 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/LocationsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/LocationsClientImpl.java @@ -336,14 +336,15 @@ private Mono getAsync(String ascLocation) { * * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the ASC location of the subscription is in the "name" field. + * @return the ASC location of the subscription is in the "name" field along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AscLocationInner get(String ascLocation) { - return getAsync(ascLocation).block(); + public Response getWithResponse(String ascLocation, Context context) { + return getWithResponseAsync(ascLocation, context).block(); } /** @@ -351,15 +352,14 @@ public AscLocationInner get(String ascLocation) { * * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the ASC location of the subscription is in the "name" field along with {@link Response}. + * @return the ASC location of the subscription is in the "name" field. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String ascLocation, Context context) { - return getWithResponseAsync(ascLocation, context).block(); + public AscLocationInner get(String ascLocation) { + return getWithResponse(ascLocation, Context.NONE).getValue(); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/LocationsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/LocationsImpl.java index 843361a018720..d946db5d2e1ae 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/LocationsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/LocationsImpl.java @@ -37,15 +37,6 @@ public PagedIterable list(Context context) { return Utils.mapPage(inner, inner1 -> new AscLocationImpl(inner1, this.manager())); } - public AscLocation get(String ascLocation) { - AscLocationInner inner = this.serviceClient().get(ascLocation); - if (inner != null) { - return new AscLocationImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse(String ascLocation, Context context) { Response inner = this.serviceClient().getWithResponse(ascLocation, context); if (inner != null) { @@ -59,6 +50,15 @@ public Response getWithResponse(String ascLocation, Context context } } + public AscLocation get(String ascLocation) { + AscLocationInner inner = this.serviceClient().get(ascLocation); + if (inner != null) { + return new AscLocationImpl(inner, this.manager()); + } else { + return null; + } + } + private LocationsClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/MdeOnboardingsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/MdeOnboardingsClientImpl.java index a8639c89d003c..ff32bf20e4b06 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/MdeOnboardingsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/MdeOnboardingsClientImpl.java @@ -152,27 +152,27 @@ private Mono listAsync() { /** * The configuration or data needed to onboard the machine to MDE. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of all MDE onboarding data resources. + * @return list of all MDE onboarding data resources along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MdeOnboardingDataListInner list() { - return listAsync().block(); + public Response listWithResponse(Context context) { + return listWithResponseAsync(context).block(); } /** * The configuration or data needed to onboard the machine to MDE. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of all MDE onboarding data resources along with {@link Response}. + * @return list of all MDE onboarding data resources. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listWithResponse(Context context) { - return listWithResponseAsync(context).block(); + public MdeOnboardingDataListInner list() { + return listWithResponse(Context.NONE).getValue(); } /** @@ -253,27 +253,27 @@ private Mono getAsync() { /** * The default configuration or data needed to onboard the machine to MDE. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the resource of the configuration or data needed to onboard the machine to MDE. + * @return the resource of the configuration or data needed to onboard the machine to MDE along with {@link + * Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MdeOnboardingDataInner get() { - return getAsync().block(); + public Response getWithResponse(Context context) { + return getWithResponseAsync(context).block(); } /** * The default configuration or data needed to onboard the machine to MDE. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the resource of the configuration or data needed to onboard the machine to MDE along with {@link - * Response}. + * @return the resource of the configuration or data needed to onboard the machine to MDE. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(Context context) { - return getWithResponseAsync(context).block(); + public MdeOnboardingDataInner get() { + return getWithResponse(Context.NONE).getValue(); } } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/MdeOnboardingsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/MdeOnboardingsImpl.java index 9e8ed8cd03b8f..4a594ef5dc787 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/MdeOnboardingsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/MdeOnboardingsImpl.java @@ -28,15 +28,6 @@ public MdeOnboardingsImpl( this.serviceManager = serviceManager; } - public MdeOnboardingDataList list() { - MdeOnboardingDataListInner inner = this.serviceClient().list(); - if (inner != null) { - return new MdeOnboardingDataListImpl(inner, this.manager()); - } else { - return null; - } - } - public Response listWithResponse(Context context) { Response inner = this.serviceClient().listWithResponse(context); if (inner != null) { @@ -50,10 +41,10 @@ public Response listWithResponse(Context context) { } } - public MdeOnboardingData get() { - MdeOnboardingDataInner inner = this.serviceClient().get(); + public MdeOnboardingDataList list() { + MdeOnboardingDataListInner inner = this.serviceClient().list(); if (inner != null) { - return new MdeOnboardingDataImpl(inner, this.manager()); + return new MdeOnboardingDataListImpl(inner, this.manager()); } else { return null; } @@ -72,6 +63,15 @@ public Response getWithResponse(Context context) { } } + public MdeOnboardingData get() { + MdeOnboardingDataInner inner = this.serviceClient().get(); + if (inner != null) { + return new MdeOnboardingDataImpl(inner, this.manager()); + } else { + return null; + } + } + private MdeOnboardingsClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/PricingsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/PricingsClientImpl.java index 34d11096feec5..c915702513721 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/PricingsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/PricingsClientImpl.java @@ -167,27 +167,27 @@ private Mono listAsync() { /** * Lists Microsoft Defender for Cloud pricing configurations in the subscription. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 pricing configurations response. + * @return list of pricing configurations response along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PricingListInner list() { - return listAsync().block(); + public Response listWithResponse(Context context) { + return listWithResponseAsync(context).block(); } /** * Lists Microsoft Defender for Cloud pricing configurations in the subscription. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 pricing configurations response along with {@link Response}. + * @return list of pricing configurations response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listWithResponse(Context context) { - return listWithResponseAsync(context).block(); + public PricingListInner list() { + return listWithResponse(Context.NONE).getValue(); } /** @@ -287,30 +287,30 @@ private Mono getAsync(String pricingName) { * Gets a provided Microsoft Defender for Cloud pricing configuration in the subscription. * * @param pricingName name of the pricing configuration. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 provided Microsoft Defender for Cloud pricing configuration in the subscription. + * @return a provided Microsoft Defender for Cloud pricing configuration in the subscription along with {@link + * Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PricingInner get(String pricingName) { - return getAsync(pricingName).block(); + public Response getWithResponse(String pricingName, Context context) { + return getWithResponseAsync(pricingName, context).block(); } /** * Gets a provided Microsoft Defender for Cloud pricing configuration in the subscription. * * @param pricingName name of the pricing configuration. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 provided Microsoft Defender for Cloud pricing configuration in the subscription along with {@link - * Response}. + * @return a provided Microsoft Defender for Cloud pricing configuration in the subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String pricingName, Context context) { - return getWithResponseAsync(pricingName, context).block(); + public PricingInner get(String pricingName) { + return getWithResponse(pricingName, Context.NONE).getValue(); } /** @@ -433,15 +433,16 @@ private Mono updateAsync(String pricingName, PricingInner pricing) * * @param pricingName name of the pricing configuration. * @param pricing Pricing object. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return microsoft Defender for Cloud is provided in two pricing tiers: free and standard, with the standard tier - * available with a trial period. + * available with a trial period along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PricingInner update(String pricingName, PricingInner pricing) { - return updateAsync(pricingName, pricing).block(); + public Response updateWithResponse(String pricingName, PricingInner pricing, Context context) { + return updateWithResponseAsync(pricingName, pricing, context).block(); } /** @@ -449,15 +450,14 @@ public PricingInner update(String pricingName, PricingInner pricing) { * * @param pricingName name of the pricing configuration. * @param pricing Pricing object. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return microsoft Defender for Cloud is provided in two pricing tiers: free and standard, with the standard tier - * available with a trial period along with {@link Response}. + * available with a trial period. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse(String pricingName, PricingInner pricing, Context context) { - return updateWithResponseAsync(pricingName, pricing, context).block(); + public PricingInner update(String pricingName, PricingInner pricing) { + return updateWithResponse(pricingName, pricing, Context.NONE).getValue(); } } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/PricingsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/PricingsImpl.java index 2b3cce82327a2..99ea26d487348 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/PricingsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/PricingsImpl.java @@ -27,15 +27,6 @@ public PricingsImpl(PricingsClient innerClient, com.azure.resourcemanager.securi this.serviceManager = serviceManager; } - public PricingList list() { - PricingListInner inner = this.serviceClient().list(); - if (inner != null) { - return new PricingListImpl(inner, this.manager()); - } else { - return null; - } - } - public Response listWithResponse(Context context) { Response inner = this.serviceClient().listWithResponse(context); if (inner != null) { @@ -49,10 +40,10 @@ public Response listWithResponse(Context context) { } } - public Pricing get(String pricingName) { - PricingInner inner = this.serviceClient().get(pricingName); + public PricingList list() { + PricingListInner inner = this.serviceClient().list(); if (inner != null) { - return new PricingImpl(inner, this.manager()); + return new PricingListImpl(inner, this.manager()); } else { return null; } @@ -71,8 +62,8 @@ public Response getWithResponse(String pricingName, Context context) { } } - public Pricing update(String pricingName, PricingInner pricing) { - PricingInner inner = this.serviceClient().update(pricingName, pricing); + public Pricing get(String pricingName) { + PricingInner inner = this.serviceClient().get(pricingName); if (inner != null) { return new PricingImpl(inner, this.manager()); } else { @@ -93,6 +84,15 @@ public Response updateWithResponse(String pricingName, PricingInner pri } } + public Pricing update(String pricingName, PricingInner pricing) { + PricingInner inner = this.serviceClient().update(pricingName, pricing); + if (inner != null) { + return new PricingImpl(inner, this.manager()); + } else { + return null; + } + } + private PricingsClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceAssessmentsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceAssessmentsClientImpl.java index 10340ff5b6e68..4bbf960664d56 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceAssessmentsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceAssessmentsClientImpl.java @@ -496,18 +496,23 @@ private Mono getAsync( * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object. * @param regulatoryComplianceControlName Name of the regulatory compliance control object. * @param regulatoryComplianceAssessmentName Name of the regulatory compliance assessment object. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return regulatory compliance assessment details and state. + * @return regulatory compliance assessment details and state along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RegulatoryComplianceAssessmentInner get( + public Response getWithResponse( String regulatoryComplianceStandardName, String regulatoryComplianceControlName, - String regulatoryComplianceAssessmentName) { - return getAsync( - regulatoryComplianceStandardName, regulatoryComplianceControlName, regulatoryComplianceAssessmentName) + String regulatoryComplianceAssessmentName, + Context context) { + return getWithResponseAsync( + regulatoryComplianceStandardName, + regulatoryComplianceControlName, + regulatoryComplianceAssessmentName, + context) .block(); } @@ -517,24 +522,22 @@ public RegulatoryComplianceAssessmentInner get( * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object. * @param regulatoryComplianceControlName Name of the regulatory compliance control object. * @param regulatoryComplianceAssessmentName Name of the regulatory compliance assessment object. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return regulatory compliance assessment details and state along with {@link Response}. + * @return regulatory compliance assessment details and state. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( + public RegulatoryComplianceAssessmentInner get( String regulatoryComplianceStandardName, String regulatoryComplianceControlName, - String regulatoryComplianceAssessmentName, - Context context) { - return getWithResponseAsync( + String regulatoryComplianceAssessmentName) { + return getWithResponse( regulatoryComplianceStandardName, regulatoryComplianceControlName, regulatoryComplianceAssessmentName, - context) - .block(); + Context.NONE) + .getValue(); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceAssessmentsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceAssessmentsImpl.java index d856c7c8b7e02..222a4ee49b8b9 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceAssessmentsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceAssessmentsImpl.java @@ -47,24 +47,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new RegulatoryComplianceAssessmentImpl(inner1, this.manager())); } - public RegulatoryComplianceAssessment get( - String regulatoryComplianceStandardName, - String regulatoryComplianceControlName, - String regulatoryComplianceAssessmentName) { - RegulatoryComplianceAssessmentInner inner = - this - .serviceClient() - .get( - regulatoryComplianceStandardName, - regulatoryComplianceControlName, - regulatoryComplianceAssessmentName); - if (inner != null) { - return new RegulatoryComplianceAssessmentImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String regulatoryComplianceStandardName, String regulatoryComplianceControlName, @@ -89,6 +71,24 @@ public Response getWithResponse( } } + public RegulatoryComplianceAssessment get( + String regulatoryComplianceStandardName, + String regulatoryComplianceControlName, + String regulatoryComplianceAssessmentName) { + RegulatoryComplianceAssessmentInner inner = + this + .serviceClient() + .get( + regulatoryComplianceStandardName, + regulatoryComplianceControlName, + regulatoryComplianceAssessmentName); + if (inner != null) { + return new RegulatoryComplianceAssessmentImpl(inner, this.manager()); + } else { + return null; + } + } + private RegulatoryComplianceAssessmentsClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceControlsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceControlsClientImpl.java index 39ca68b22c0c5..386edc399ae4e 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceControlsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceControlsClientImpl.java @@ -429,15 +429,16 @@ private Mono getAsync( * * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object. * @param regulatoryComplianceControlName Name of the regulatory compliance control object. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return regulatory compliance control details and state. + * @return regulatory compliance control details and state along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RegulatoryComplianceControlInner get( - String regulatoryComplianceStandardName, String regulatoryComplianceControlName) { - return getAsync(regulatoryComplianceStandardName, regulatoryComplianceControlName).block(); + public Response getWithResponse( + String regulatoryComplianceStandardName, String regulatoryComplianceControlName, Context context) { + return getWithResponseAsync(regulatoryComplianceStandardName, regulatoryComplianceControlName, context).block(); } /** @@ -445,16 +446,16 @@ public RegulatoryComplianceControlInner get( * * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object. * @param regulatoryComplianceControlName Name of the regulatory compliance control object. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return regulatory compliance control details and state along with {@link Response}. + * @return regulatory compliance control details and state. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String regulatoryComplianceStandardName, String regulatoryComplianceControlName, Context context) { - return getWithResponseAsync(regulatoryComplianceStandardName, regulatoryComplianceControlName, context).block(); + public RegulatoryComplianceControlInner get( + String regulatoryComplianceStandardName, String regulatoryComplianceControlName) { + return getWithResponse(regulatoryComplianceStandardName, regulatoryComplianceControlName, Context.NONE) + .getValue(); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceControlsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceControlsImpl.java index 8173124f46a15..31f2bb5591397 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceControlsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceControlsImpl.java @@ -41,17 +41,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new RegulatoryComplianceControlImpl(inner1, this.manager())); } - public RegulatoryComplianceControl get( - String regulatoryComplianceStandardName, String regulatoryComplianceControlName) { - RegulatoryComplianceControlInner inner = - this.serviceClient().get(regulatoryComplianceStandardName, regulatoryComplianceControlName); - if (inner != null) { - return new RegulatoryComplianceControlImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String regulatoryComplianceStandardName, String regulatoryComplianceControlName, Context context) { Response inner = @@ -69,6 +58,17 @@ public Response getWithResponse( } } + public RegulatoryComplianceControl get( + String regulatoryComplianceStandardName, String regulatoryComplianceControlName) { + RegulatoryComplianceControlInner inner = + this.serviceClient().get(regulatoryComplianceStandardName, regulatoryComplianceControlName); + if (inner != null) { + return new RegulatoryComplianceControlImpl(inner, this.manager()); + } else { + return null; + } + } + private RegulatoryComplianceControlsClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceStandardsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceStandardsClientImpl.java index b4d15ce6e3f4c..e768ff72f70a8 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceStandardsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceStandardsClientImpl.java @@ -368,30 +368,30 @@ private Mono getAsync(String regulatoryCompli * Supported regulatory compliance details state for selected standard. * * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return regulatory compliance standard details and state. + * @return regulatory compliance standard details and state along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RegulatoryComplianceStandardInner get(String regulatoryComplianceStandardName) { - return getAsync(regulatoryComplianceStandardName).block(); + public Response getWithResponse( + String regulatoryComplianceStandardName, Context context) { + return getWithResponseAsync(regulatoryComplianceStandardName, context).block(); } /** * Supported regulatory compliance details state for selected standard. * * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return regulatory compliance standard details and state along with {@link Response}. + * @return regulatory compliance standard details and state. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String regulatoryComplianceStandardName, Context context) { - return getWithResponseAsync(regulatoryComplianceStandardName, context).block(); + public RegulatoryComplianceStandardInner get(String regulatoryComplianceStandardName) { + return getWithResponse(regulatoryComplianceStandardName, Context.NONE).getValue(); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceStandardsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceStandardsImpl.java index 4f1675bce59ac..8f57bbcd3d41d 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceStandardsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/RegulatoryComplianceStandardsImpl.java @@ -38,15 +38,6 @@ public PagedIterable list(String filter, Context c return Utils.mapPage(inner, inner1 -> new RegulatoryComplianceStandardImpl(inner1, this.manager())); } - public RegulatoryComplianceStandard get(String regulatoryComplianceStandardName) { - RegulatoryComplianceStandardInner inner = this.serviceClient().get(regulatoryComplianceStandardName); - if (inner != null) { - return new RegulatoryComplianceStandardImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String regulatoryComplianceStandardName, Context context) { Response inner = @@ -62,6 +53,15 @@ public Response getWithResponse( } } + public RegulatoryComplianceStandard get(String regulatoryComplianceStandardName) { + RegulatoryComplianceStandardInner inner = this.serviceClient().get(regulatoryComplianceStandardName); + if (inner != null) { + return new RegulatoryComplianceStandardImpl(inner, this.manager()); + } else { + return null; + } + } + private RegulatoryComplianceStandardsClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecureScoresClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecureScoresClientImpl.java index 6b82ff00cac3a..e1d02a451e64e 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecureScoresClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecureScoresClientImpl.java @@ -335,14 +335,16 @@ private Mono getAsync(String secureScoreName) { * * @param secureScoreName The initiative name. For the ASC Default initiative, use 'ascScore' as in the sample * request below. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return secure score for a specific Microsoft Defender for Cloud initiative within your current scope. + * @return secure score for a specific Microsoft Defender for Cloud initiative within your current scope along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SecureScoreItemInner get(String secureScoreName) { - return getAsync(secureScoreName).block(); + public Response getWithResponse(String secureScoreName, Context context) { + return getWithResponseAsync(secureScoreName, context).block(); } /** @@ -351,16 +353,14 @@ public SecureScoreItemInner get(String secureScoreName) { * * @param secureScoreName The initiative name. For the ASC Default initiative, use 'ascScore' as in the sample * request below. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return secure score for a specific Microsoft Defender for Cloud initiative within your current scope along with - * {@link Response}. + * @return secure score for a specific Microsoft Defender for Cloud initiative within your current scope. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String secureScoreName, Context context) { - return getWithResponseAsync(secureScoreName, context).block(); + public SecureScoreItemInner get(String secureScoreName) { + return getWithResponse(secureScoreName, Context.NONE).getValue(); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecureScoresImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecureScoresImpl.java index 08cb17976dea3..2f6dbe759c03c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecureScoresImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecureScoresImpl.java @@ -37,15 +37,6 @@ public PagedIterable list(Context context) { return Utils.mapPage(inner, inner1 -> new SecureScoreItemImpl(inner1, this.manager())); } - public SecureScoreItem get(String secureScoreName) { - SecureScoreItemInner inner = this.serviceClient().get(secureScoreName); - if (inner != null) { - return new SecureScoreItemImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse(String secureScoreName, Context context) { Response inner = this.serviceClient().getWithResponse(secureScoreName, context); if (inner != null) { @@ -59,6 +50,15 @@ public Response getWithResponse(String secureScoreName, Context } } + public SecureScoreItem get(String secureScoreName) { + SecureScoreItemInner inner = this.serviceClient().get(secureScoreName); + if (inner != null) { + return new SecureScoreItemImpl(inner, this.manager()); + } else { + return null; + } + } + private SecureScoresClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorApplicationOperationsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorApplicationOperationsClientImpl.java index 934eb2f08b6da..9e1a35f2decbe 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorApplicationOperationsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorApplicationOperationsClientImpl.java @@ -252,14 +252,16 @@ private Mono getAsync( * insensitive. * @param securityConnectorName The security connector name. * @param applicationId The security Application key - unique key for the standard application. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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. + * @return a specific application for the requested scope by applicationId along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ApplicationInner get(String resourceGroupName, String securityConnectorName, String applicationId) { - return getAsync(resourceGroupName, securityConnectorName, applicationId).block(); + public Response getWithResponse( + String resourceGroupName, String securityConnectorName, String applicationId, Context context) { + return getWithResponseAsync(resourceGroupName, securityConnectorName, applicationId, context).block(); } /** @@ -269,16 +271,14 @@ public ApplicationInner get(String resourceGroupName, String securityConnectorNa * insensitive. * @param securityConnectorName The security connector name. * @param applicationId The security Application key - unique key for the standard application. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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}. + * @return a specific application for the requested scope by applicationId. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String securityConnectorName, String applicationId, Context context) { - return getWithResponseAsync(resourceGroupName, securityConnectorName, applicationId, context).block(); + public ApplicationInner get(String resourceGroupName, String securityConnectorName, String applicationId) { + return getWithResponse(resourceGroupName, securityConnectorName, applicationId, Context.NONE).getValue(); } /** @@ -439,15 +439,22 @@ private Mono createOrUpdateAsync( * @param securityConnectorName The security connector name. * @param applicationId The security Application key - unique key for the standard application. * @param application Application over a subscription scope. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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. + * @return security Application over a given scope along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ApplicationInner createOrUpdate( - String resourceGroupName, String securityConnectorName, String applicationId, ApplicationInner application) { - return createOrUpdateAsync(resourceGroupName, securityConnectorName, applicationId, application).block(); + public Response createOrUpdateWithResponse( + String resourceGroupName, + String securityConnectorName, + String applicationId, + ApplicationInner application, + Context context) { + return createOrUpdateWithResponseAsync( + resourceGroupName, securityConnectorName, applicationId, application, context) + .block(); } /** @@ -458,22 +465,17 @@ public ApplicationInner createOrUpdate( * @param securityConnectorName The security connector name. * @param applicationId The security Application key - unique key for the standard application. * @param application Application over a subscription scope. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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}. + * @return security Application over a given scope. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String securityConnectorName, - String applicationId, - ApplicationInner application, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, securityConnectorName, applicationId, application, context) - .block(); + public ApplicationInner createOrUpdate( + String resourceGroupName, String securityConnectorName, String applicationId, ApplicationInner application) { + return createOrUpdateWithResponse( + resourceGroupName, securityConnectorName, applicationId, application, Context.NONE) + .getValue(); } /** @@ -607,13 +609,16 @@ private Mono deleteAsync(String resourceGroupName, String securityConnecto * insensitive. * @param securityConnectorName The security connector name. * @param applicationId The security Application key - unique key for the standard application. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public void delete(String resourceGroupName, String securityConnectorName, String applicationId) { - deleteAsync(resourceGroupName, securityConnectorName, applicationId).block(); + public Response deleteWithResponse( + String resourceGroupName, String securityConnectorName, String applicationId, Context context) { + return deleteWithResponseAsync(resourceGroupName, securityConnectorName, applicationId, context).block(); } /** @@ -623,15 +628,12 @@ public void delete(String resourceGroupName, String securityConnectorName, Strin * insensitive. * @param securityConnectorName The security connector name. * @param applicationId The security Application key - unique key for the standard application. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public Response deleteWithResponse( - String resourceGroupName, String securityConnectorName, String applicationId, Context context) { - return deleteWithResponseAsync(resourceGroupName, securityConnectorName, applicationId, context).block(); + public void delete(String resourceGroupName, String securityConnectorName, String applicationId) { + deleteWithResponse(resourceGroupName, securityConnectorName, applicationId, Context.NONE); } } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorApplicationOperationsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorApplicationOperationsImpl.java index 23502d7a40fa2..006bf422b7c22 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorApplicationOperationsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorApplicationOperationsImpl.java @@ -27,15 +27,6 @@ public SecurityConnectorApplicationOperationsImpl( this.serviceManager = serviceManager; } - public Application get(String resourceGroupName, String securityConnectorName, String applicationId) { - ApplicationInner inner = this.serviceClient().get(resourceGroupName, securityConnectorName, applicationId); - if (inner != null) { - return new ApplicationImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String securityConnectorName, String applicationId, Context context) { Response inner = @@ -51,10 +42,8 @@ public Response getWithResponse( } } - public Application createOrUpdate( - String resourceGroupName, String securityConnectorName, String applicationId, ApplicationInner application) { - ApplicationInner inner = - this.serviceClient().createOrUpdate(resourceGroupName, securityConnectorName, applicationId, application); + public Application get(String resourceGroupName, String securityConnectorName, String applicationId) { + ApplicationInner inner = this.serviceClient().get(resourceGroupName, securityConnectorName, applicationId); if (inner != null) { return new ApplicationImpl(inner, this.manager()); } else { @@ -84,8 +73,15 @@ public Response createOrUpdateWithResponse( } } - public void delete(String resourceGroupName, String securityConnectorName, String applicationId) { - this.serviceClient().delete(resourceGroupName, securityConnectorName, applicationId); + public Application createOrUpdate( + String resourceGroupName, String securityConnectorName, String applicationId, ApplicationInner application) { + ApplicationInner inner = + this.serviceClient().createOrUpdate(resourceGroupName, securityConnectorName, applicationId, application); + if (inner != null) { + return new ApplicationImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -95,6 +91,10 @@ public Response deleteWithResponse( .deleteWithResponse(resourceGroupName, securityConnectorName, applicationId, context); } + public void delete(String resourceGroupName, String securityConnectorName, String applicationId) { + this.serviceClient().delete(resourceGroupName, securityConnectorName, applicationId); + } + private SecurityConnectorApplicationOperationsClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorGovernanceRulesOperationsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorGovernanceRulesOperationsClientImpl.java index 3b4ca75c5e1fb..f79d7efc00a97 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorGovernanceRulesOperationsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorGovernanceRulesOperationsClientImpl.java @@ -248,14 +248,16 @@ private Mono getAsync(String resourceGroupName, String secu * insensitive. * @param securityConnectorName The security connector name. * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 governanceRule for the requested scope by ruleId. + * @return a specific governanceRule for the requested scope by ruleId along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public GovernanceRuleInner get(String resourceGroupName, String securityConnectorName, String ruleId) { - return getAsync(resourceGroupName, securityConnectorName, ruleId).block(); + public Response getWithResponse( + String resourceGroupName, String securityConnectorName, String ruleId, Context context) { + return getWithResponseAsync(resourceGroupName, securityConnectorName, ruleId, context).block(); } /** @@ -265,16 +267,14 @@ public GovernanceRuleInner get(String resourceGroupName, String securityConnecto * insensitive. * @param securityConnectorName The security connector name. * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 governanceRule for the requested scope by ruleId along with {@link Response}. + * @return a specific governanceRule for the requested scope by ruleId. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String securityConnectorName, String ruleId, Context context) { - return getWithResponseAsync(resourceGroupName, securityConnectorName, ruleId, context).block(); + public GovernanceRuleInner get(String resourceGroupName, String securityConnectorName, String ruleId) { + return getWithResponse(resourceGroupName, securityConnectorName, ruleId, Context.NONE).getValue(); } /** @@ -435,15 +435,22 @@ private Mono createOrUpdateAsync( * @param securityConnectorName The security connector name. * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. * @param governanceRule GovernanceRule over a subscription scope. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 GovernanceRule over a given scope. + * @return security GovernanceRule over a given scope along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public GovernanceRuleInner createOrUpdate( - String resourceGroupName, String securityConnectorName, String ruleId, GovernanceRuleInner governanceRule) { - return createOrUpdateAsync(resourceGroupName, securityConnectorName, ruleId, governanceRule).block(); + public Response createOrUpdateWithResponse( + String resourceGroupName, + String securityConnectorName, + String ruleId, + GovernanceRuleInner governanceRule, + Context context) { + return createOrUpdateWithResponseAsync( + resourceGroupName, securityConnectorName, ruleId, governanceRule, context) + .block(); } /** @@ -454,22 +461,17 @@ public GovernanceRuleInner createOrUpdate( * @param securityConnectorName The security connector name. * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. * @param governanceRule GovernanceRule over a subscription scope. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 GovernanceRule over a given scope along with {@link Response}. + * @return security GovernanceRule over a given scope. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String securityConnectorName, - String ruleId, - GovernanceRuleInner governanceRule, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, securityConnectorName, ruleId, governanceRule, context) - .block(); + public GovernanceRuleInner createOrUpdate( + String resourceGroupName, String securityConnectorName, String ruleId, GovernanceRuleInner governanceRule) { + return createOrUpdateWithResponse( + resourceGroupName, securityConnectorName, ruleId, governanceRule, Context.NONE) + .getValue(); } /** @@ -603,13 +605,16 @@ private Mono deleteAsync(String resourceGroupName, String securityConnecto * insensitive. * @param securityConnectorName The security connector name. * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public void delete(String resourceGroupName, String securityConnectorName, String ruleId) { - deleteAsync(resourceGroupName, securityConnectorName, ruleId).block(); + public Response deleteWithResponse( + String resourceGroupName, String securityConnectorName, String ruleId, Context context) { + return deleteWithResponseAsync(resourceGroupName, securityConnectorName, ruleId, context).block(); } /** @@ -619,15 +624,12 @@ public void delete(String resourceGroupName, String securityConnectorName, Strin * insensitive. * @param securityConnectorName The security connector name. * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public Response deleteWithResponse( - String resourceGroupName, String securityConnectorName, String ruleId, Context context) { - return deleteWithResponseAsync(resourceGroupName, securityConnectorName, ruleId, context).block(); + public void delete(String resourceGroupName, String securityConnectorName, String ruleId) { + deleteWithResponse(resourceGroupName, securityConnectorName, ruleId, Context.NONE); } } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorGovernanceRulesOperationsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorGovernanceRulesOperationsImpl.java index 765c8425d2eea..ffacfe8ef7b6d 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorGovernanceRulesOperationsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorGovernanceRulesOperationsImpl.java @@ -28,15 +28,6 @@ public SecurityConnectorGovernanceRulesOperationsImpl( this.serviceManager = serviceManager; } - public GovernanceRule get(String resourceGroupName, String securityConnectorName, String ruleId) { - GovernanceRuleInner inner = this.serviceClient().get(resourceGroupName, securityConnectorName, ruleId); - if (inner != null) { - return new GovernanceRuleImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String securityConnectorName, String ruleId, Context context) { Response inner = @@ -52,10 +43,8 @@ public Response getWithResponse( } } - public GovernanceRule createOrUpdate( - String resourceGroupName, String securityConnectorName, String ruleId, GovernanceRuleInner governanceRule) { - GovernanceRuleInner inner = - this.serviceClient().createOrUpdate(resourceGroupName, securityConnectorName, ruleId, governanceRule); + public GovernanceRule get(String resourceGroupName, String securityConnectorName, String ruleId) { + GovernanceRuleInner inner = this.serviceClient().get(resourceGroupName, securityConnectorName, ruleId); if (inner != null) { return new GovernanceRuleImpl(inner, this.manager()); } else { @@ -84,8 +73,15 @@ public Response createOrUpdateWithResponse( } } - public void delete(String resourceGroupName, String securityConnectorName, String ruleId) { - this.serviceClient().delete(resourceGroupName, securityConnectorName, ruleId); + public GovernanceRule createOrUpdate( + String resourceGroupName, String securityConnectorName, String ruleId, GovernanceRuleInner governanceRule) { + GovernanceRuleInner inner = + this.serviceClient().createOrUpdate(resourceGroupName, securityConnectorName, ruleId, governanceRule); + if (inner != null) { + return new GovernanceRuleImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -93,6 +89,10 @@ public Response deleteWithResponse( return this.serviceClient().deleteWithResponse(resourceGroupName, securityConnectorName, ruleId, context); } + public void delete(String resourceGroupName, String securityConnectorName, String ruleId) { + this.serviceClient().delete(resourceGroupName, securityConnectorName, ruleId); + } + private SecurityConnectorGovernanceRulesOperationsClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorsClientImpl.java index c337799e38ac3..4682f2284c720 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorsClientImpl.java @@ -611,14 +611,16 @@ private Mono getByResourceGroupAsync( * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param securityConnectorName The security connector name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the security connector resource. + * @return the security connector resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SecurityConnectorInner getByResourceGroup(String resourceGroupName, String securityConnectorName) { - return getByResourceGroupAsync(resourceGroupName, securityConnectorName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String securityConnectorName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, securityConnectorName, context).block(); } /** @@ -627,16 +629,14 @@ public SecurityConnectorInner getByResourceGroup(String resourceGroupName, Strin * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param securityConnectorName The security connector name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the security connector resource along with {@link Response}. + * @return the security connector resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String securityConnectorName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, securityConnectorName, context).block(); + public SecurityConnectorInner getByResourceGroup(String resourceGroupName, String securityConnectorName) { + return getByResourceGroupWithResponse(resourceGroupName, securityConnectorName, Context.NONE).getValue(); } /** @@ -788,15 +788,20 @@ private Mono createOrUpdateAsync( * insensitive. * @param securityConnectorName The security connector name. * @param securityConnector The security connector resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the security connector resource. + * @return the security connector resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SecurityConnectorInner createOrUpdate( - String resourceGroupName, String securityConnectorName, SecurityConnectorInner securityConnector) { - return createOrUpdateAsync(resourceGroupName, securityConnectorName, securityConnector).block(); + public Response createOrUpdateWithResponse( + String resourceGroupName, + String securityConnectorName, + SecurityConnectorInner securityConnector, + Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, securityConnectorName, securityConnector, context) + .block(); } /** @@ -807,20 +812,16 @@ public SecurityConnectorInner createOrUpdate( * insensitive. * @param securityConnectorName The security connector name. * @param securityConnector The security connector resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the security connector resource along with {@link Response}. + * @return the security connector resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String securityConnectorName, - SecurityConnectorInner securityConnector, - Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, securityConnectorName, securityConnector, context) - .block(); + public SecurityConnectorInner createOrUpdate( + String resourceGroupName, String securityConnectorName, SecurityConnectorInner securityConnector) { + return createOrUpdateWithResponse(resourceGroupName, securityConnectorName, securityConnector, Context.NONE) + .getValue(); } /** @@ -968,15 +969,19 @@ private Mono updateAsync( * insensitive. * @param securityConnectorName The security connector name. * @param securityConnector The security connector resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the security connector resource. + * @return the security connector resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SecurityConnectorInner update( - String resourceGroupName, String securityConnectorName, SecurityConnectorInner securityConnector) { - return updateAsync(resourceGroupName, securityConnectorName, securityConnector).block(); + public Response updateWithResponse( + String resourceGroupName, + String securityConnectorName, + SecurityConnectorInner securityConnector, + Context context) { + return updateWithResponseAsync(resourceGroupName, securityConnectorName, securityConnector, context).block(); } /** @@ -986,19 +991,15 @@ public SecurityConnectorInner update( * insensitive. * @param securityConnectorName The security connector name. * @param securityConnector The security connector resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the security connector resource along with {@link Response}. + * @return the security connector resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, - String securityConnectorName, - SecurityConnectorInner securityConnector, - Context context) { - return updateWithResponseAsync(resourceGroupName, securityConnectorName, securityConnector, context).block(); + public SecurityConnectorInner update( + String resourceGroupName, String securityConnectorName, SecurityConnectorInner securityConnector) { + return updateWithResponse(resourceGroupName, securityConnectorName, securityConnector, Context.NONE).getValue(); } /** @@ -1122,13 +1123,15 @@ private Mono deleteAsync(String resourceGroupName, String securityConnecto * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param securityConnectorName The security connector name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public void delete(String resourceGroupName, String securityConnectorName) { - deleteAsync(resourceGroupName, securityConnectorName).block(); + public Response deleteWithResponse(String resourceGroupName, String securityConnectorName, Context context) { + return deleteWithResponseAsync(resourceGroupName, securityConnectorName, context).block(); } /** @@ -1137,15 +1140,13 @@ public void delete(String resourceGroupName, String securityConnectorName) { * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param securityConnectorName The security connector name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public Response deleteWithResponse(String resourceGroupName, String securityConnectorName, Context context) { - return deleteWithResponseAsync(resourceGroupName, securityConnectorName, context).block(); + public void delete(String resourceGroupName, String securityConnectorName) { + deleteWithResponse(resourceGroupName, securityConnectorName, Context.NONE); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorsImpl.java index b116fb5e6d32a..7ca42cfa356d3 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorsImpl.java @@ -48,16 +48,6 @@ public PagedIterable listByResourceGroup(String resourceGroup return Utils.mapPage(inner, inner1 -> new SecurityConnectorImpl(inner1, this.manager())); } - public SecurityConnector getByResourceGroup(String resourceGroupName, String securityConnectorName) { - SecurityConnectorInner inner = - this.serviceClient().getByResourceGroup(resourceGroupName, securityConnectorName); - if (inner != null) { - return new SecurityConnectorImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse( String resourceGroupName, String securityConnectorName, Context context) { Response inner = @@ -73,14 +63,25 @@ public Response getByResourceGroupWithResponse( } } - public void deleteByResourceGroup(String resourceGroupName, String securityConnectorName) { - this.serviceClient().delete(resourceGroupName, securityConnectorName); + public SecurityConnector getByResourceGroup(String resourceGroupName, String securityConnectorName) { + SecurityConnectorInner inner = + this.serviceClient().getByResourceGroup(resourceGroupName, securityConnectorName); + if (inner != null) { + return new SecurityConnectorImpl(inner, this.manager()); + } else { + return null; + } } - public Response deleteWithResponse(String resourceGroupName, String securityConnectorName, Context context) { + public Response deleteByResourceGroupWithResponse( + String resourceGroupName, String securityConnectorName, Context context) { return this.serviceClient().deleteWithResponse(resourceGroupName, securityConnectorName, context); } + public void deleteByResourceGroup(String resourceGroupName, String securityConnectorName) { + this.serviceClient().delete(resourceGroupName, securityConnectorName); + } + public SecurityConnector getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { @@ -141,7 +142,7 @@ public void deleteById(String id) { .format( "The resource ID '%s' is not valid. Missing path segment 'securityConnectors'.", id))); } - this.deleteWithResponse(resourceGroupName, securityConnectorName, Context.NONE); + this.deleteByResourceGroupWithResponse(resourceGroupName, securityConnectorName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { @@ -162,7 +163,7 @@ public Response deleteByIdWithResponse(String id, Context context) { .format( "The resource ID '%s' is not valid. Missing path segment 'securityConnectors'.", id))); } - return this.deleteWithResponse(resourceGroupName, securityConnectorName, context); + return this.deleteByResourceGroupWithResponse(resourceGroupName, securityConnectorName, context); } private SecurityConnectorsClient serviceClient() { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityContactsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityContactsClientImpl.java index f3eb2d8dc162d..81548d028feaf 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityContactsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityContactsClientImpl.java @@ -356,29 +356,29 @@ private Mono getAsync(String securityContactName) { * Get Default Security contact configurations for the subscription. * * @param securityContactName Name of the security contact object. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return default Security contact configurations for the subscription. + * @return default Security contact configurations for the subscription along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SecurityContactInner get(String securityContactName) { - return getAsync(securityContactName).block(); + public Response getWithResponse(String securityContactName, Context context) { + return getWithResponseAsync(securityContactName, context).block(); } /** * Get Default Security contact configurations for the subscription. * * @param securityContactName Name of the security contact object. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return default Security contact configurations for the subscription along with {@link Response}. + * @return default Security contact configurations for the subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String securityContactName, Context context) { - return getWithResponseAsync(securityContactName, context).block(); + public SecurityContactInner get(String securityContactName) { + return getWithResponse(securityContactName, Context.NONE).getValue(); } /** @@ -507,14 +507,17 @@ private Mono createAsync(String securityContactName, Secur * * @param securityContactName Name of the security contact object. * @param securityContact Security contact object. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return contact details and configurations for notifications coming from Microsoft Defender for Cloud. + * @return contact details and configurations for notifications coming from Microsoft Defender for Cloud along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SecurityContactInner create(String securityContactName, SecurityContactInner securityContact) { - return createAsync(securityContactName, securityContact).block(); + public Response createWithResponse( + String securityContactName, SecurityContactInner securityContact, Context context) { + return createWithResponseAsync(securityContactName, securityContact, context).block(); } /** @@ -522,17 +525,14 @@ public SecurityContactInner create(String securityContactName, SecurityContactIn * * @param securityContactName Name of the security contact object. * @param securityContact Security contact object. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return contact details and configurations for notifications coming from Microsoft Defender for Cloud along with - * {@link Response}. + * @return contact details and configurations for notifications coming from Microsoft Defender for Cloud. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createWithResponse( - String securityContactName, SecurityContactInner securityContact, Context context) { - return createWithResponseAsync(securityContactName, securityContact, context).block(); + public SecurityContactInner create(String securityContactName, SecurityContactInner securityContact) { + return createWithResponse(securityContactName, securityContact, Context.NONE).getValue(); } /** @@ -637,28 +637,28 @@ private Mono deleteAsync(String securityContactName) { * Delete security contact configurations for the subscription. * * @param securityContactName Name of the security contact object. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public void delete(String securityContactName) { - deleteAsync(securityContactName).block(); + public Response deleteWithResponse(String securityContactName, Context context) { + return deleteWithResponseAsync(securityContactName, context).block(); } /** * Delete security contact configurations for the subscription. * * @param securityContactName Name of the security contact object. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public Response deleteWithResponse(String securityContactName, Context context) { - return deleteWithResponseAsync(securityContactName, context).block(); + public void delete(String securityContactName) { + deleteWithResponse(securityContactName, Context.NONE); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityContactsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityContactsImpl.java index da85e0312b6af..913f99337779a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityContactsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityContactsImpl.java @@ -37,15 +37,6 @@ public PagedIterable list(Context context) { return Utils.mapPage(inner, inner1 -> new SecurityContactImpl(inner1, this.manager())); } - public SecurityContact get(String securityContactName) { - SecurityContactInner inner = this.serviceClient().get(securityContactName); - if (inner != null) { - return new SecurityContactImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse(String securityContactName, Context context) { Response inner = this.serviceClient().getWithResponse(securityContactName, context); if (inner != null) { @@ -59,14 +50,23 @@ public Response getWithResponse(String securityContactName, Con } } - public void delete(String securityContactName) { - this.serviceClient().delete(securityContactName); + public SecurityContact get(String securityContactName) { + SecurityContactInner inner = this.serviceClient().get(securityContactName); + if (inner != null) { + return new SecurityContactImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse(String securityContactName, Context context) { return this.serviceClient().deleteWithResponse(securityContactName, context); } + public void delete(String securityContactName) { + this.serviceClient().delete(securityContactName); + } + public SecurityContact getById(String id) { String securityContactName = Utils.getValueFromIdByName(id, "securityContacts"); if (securityContactName == null) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecuritySolutionsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecuritySolutionsClientImpl.java index 12bcaa3956b3b..693c3f74988fd 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecuritySolutionsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecuritySolutionsClientImpl.java @@ -368,14 +368,16 @@ private Mono getAsync( * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param securitySolutionName Name of security solution. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specific Security Solution. + * @return a specific Security Solution along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SecuritySolutionInner get(String resourceGroupName, String ascLocation, String securitySolutionName) { - return getAsync(resourceGroupName, ascLocation, securitySolutionName).block(); + public Response getWithResponse( + String resourceGroupName, String ascLocation, String securitySolutionName, Context context) { + return getWithResponseAsync(resourceGroupName, ascLocation, securitySolutionName, context).block(); } /** @@ -386,16 +388,14 @@ public SecuritySolutionInner get(String resourceGroupName, String ascLocation, S * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param securitySolutionName Name of security solution. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specific Security Solution along with {@link Response}. + * @return a specific Security Solution. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String ascLocation, String securitySolutionName, Context context) { - return getWithResponseAsync(resourceGroupName, ascLocation, securitySolutionName, context).block(); + public SecuritySolutionInner get(String resourceGroupName, String ascLocation, String securitySolutionName) { + return getWithResponse(resourceGroupName, ascLocation, securitySolutionName, Context.NONE).getValue(); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecuritySolutionsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecuritySolutionsImpl.java index 8e30efc9e13eb..de0c90a619d34 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecuritySolutionsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecuritySolutionsImpl.java @@ -37,15 +37,6 @@ public PagedIterable list(Context context) { return Utils.mapPage(inner, inner1 -> new SecuritySolutionImpl(inner1, this.manager())); } - public SecuritySolution get(String resourceGroupName, String ascLocation, String securitySolutionName) { - SecuritySolutionInner inner = this.serviceClient().get(resourceGroupName, ascLocation, securitySolutionName); - if (inner != null) { - return new SecuritySolutionImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String ascLocation, String securitySolutionName, Context context) { Response inner = @@ -61,6 +52,15 @@ public Response getWithResponse( } } + public SecuritySolution get(String resourceGroupName, String ascLocation, String securitySolutionName) { + SecuritySolutionInner inner = this.serviceClient().get(resourceGroupName, ascLocation, securitySolutionName); + if (inner != null) { + return new SecuritySolutionImpl(inner, this.manager()); + } else { + return null; + } + } + private SecuritySolutionsClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecuritySolutionsReferenceDatasClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecuritySolutionsReferenceDatasClientImpl.java index 8fa801a5c637e..fc508dfe022ea 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecuritySolutionsReferenceDatasClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecuritySolutionsReferenceDatasClientImpl.java @@ -158,27 +158,27 @@ private Mono listAsync() { /** * Gets a list of all supported Security Solutions for the subscription. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 supported Security Solutions for the subscription. + * @return a list of all supported Security Solutions for the subscription along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SecuritySolutionsReferenceDataListInner list() { - return listAsync().block(); + public Response listWithResponse(Context context) { + return listWithResponseAsync(context).block(); } /** * Gets a list of all supported Security Solutions for the subscription. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 supported Security Solutions for the subscription along with {@link Response}. + * @return a list of all supported Security Solutions for the subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listWithResponse(Context context) { - return listWithResponseAsync(context).block(); + public SecuritySolutionsReferenceDataListInner list() { + return listWithResponse(Context.NONE).getValue(); } /** @@ -285,14 +285,16 @@ private Mono listByHomeRegionAsync(Stri * * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 supported Security Solutions for subscription and location. + * @return list of all supported Security Solutions for subscription and location along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SecuritySolutionsReferenceDataListInner listByHomeRegion(String ascLocation) { - return listByHomeRegionAsync(ascLocation).block(); + public Response listByHomeRegionWithResponse( + String ascLocation, Context context) { + return listByHomeRegionWithResponseAsync(ascLocation, context).block(); } /** @@ -300,15 +302,13 @@ public SecuritySolutionsReferenceDataListInner listByHomeRegion(String ascLocati * * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 supported Security Solutions for subscription and location along with {@link Response}. + * @return list of all supported Security Solutions for subscription and location. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listByHomeRegionWithResponse( - String ascLocation, Context context) { - return listByHomeRegionWithResponseAsync(ascLocation, context).block(); + public SecuritySolutionsReferenceDataListInner listByHomeRegion(String ascLocation) { + return listByHomeRegionWithResponse(ascLocation, Context.NONE).getValue(); } } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecuritySolutionsReferenceDatasImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecuritySolutionsReferenceDatasImpl.java index 901d95e1622d9..f3c696de64ae2 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecuritySolutionsReferenceDatasImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecuritySolutionsReferenceDatasImpl.java @@ -27,15 +27,6 @@ public SecuritySolutionsReferenceDatasImpl( this.serviceManager = serviceManager; } - public SecuritySolutionsReferenceDataList list() { - SecuritySolutionsReferenceDataListInner inner = this.serviceClient().list(); - if (inner != null) { - return new SecuritySolutionsReferenceDataListImpl(inner, this.manager()); - } else { - return null; - } - } - public Response listWithResponse(Context context) { Response inner = this.serviceClient().listWithResponse(context); if (inner != null) { @@ -49,8 +40,8 @@ public Response listWithResponse(Context con } } - public SecuritySolutionsReferenceDataList listByHomeRegion(String ascLocation) { - SecuritySolutionsReferenceDataListInner inner = this.serviceClient().listByHomeRegion(ascLocation); + public SecuritySolutionsReferenceDataList list() { + SecuritySolutionsReferenceDataListInner inner = this.serviceClient().list(); if (inner != null) { return new SecuritySolutionsReferenceDataListImpl(inner, this.manager()); } else { @@ -73,6 +64,15 @@ public Response listByHomeRegionWithResponse } } + public SecuritySolutionsReferenceDataList listByHomeRegion(String ascLocation) { + SecuritySolutionsReferenceDataListInner inner = this.serviceClient().listByHomeRegion(ascLocation); + if (inner != null) { + return new SecuritySolutionsReferenceDataListImpl(inner, this.manager()); + } else { + return null; + } + } + private SecuritySolutionsReferenceDatasClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ServerVulnerabilityAssessmentsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ServerVulnerabilityAssessmentsClientImpl.java index db8bad70f784e..a288c07cb18cb 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ServerVulnerabilityAssessmentsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ServerVulnerabilityAssessmentsClientImpl.java @@ -289,15 +289,19 @@ private Mono listByExtendedResourceAsyn * @param resourceNamespace The Namespace of the resource. * @param resourceType The type of the resource. * @param resourceName Name of the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 server vulnerability assessment onboarding statuses on a given resource. + * @return a list of server vulnerability assessment onboarding statuses on a given resource along with {@link + * Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ServerVulnerabilityAssessmentsListInner listByExtendedResource( - String resourceGroupName, String resourceNamespace, String resourceType, String resourceName) { - return listByExtendedResourceAsync(resourceGroupName, resourceNamespace, resourceType, resourceName).block(); + public Response listByExtendedResourceWithResponse( + String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context) { + return listByExtendedResourceWithResponseAsync( + resourceGroupName, resourceNamespace, resourceType, resourceName, context) + .block(); } /** @@ -308,19 +312,17 @@ public ServerVulnerabilityAssessmentsListInner listByExtendedResource( * @param resourceNamespace The Namespace of the resource. * @param resourceType The type of the resource. * @param resourceName Name of the resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 server vulnerability assessment onboarding statuses on a given resource along with {@link - * Response}. + * @return a list of server vulnerability assessment onboarding statuses on a given resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listByExtendedResourceWithResponse( - String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context) { - return listByExtendedResourceWithResponseAsync( - resourceGroupName, resourceNamespace, resourceType, resourceName, context) - .block(); + public ServerVulnerabilityAssessmentsListInner listByExtendedResource( + String resourceGroupName, String resourceNamespace, String resourceType, String resourceName) { + return listByExtendedResourceWithResponse( + resourceGroupName, resourceNamespace, resourceType, resourceName, Context.NONE) + .getValue(); } /** @@ -478,15 +480,16 @@ private Mono getAsync( * @param resourceNamespace The Namespace of the resource. * @param resourceType The type of the resource. * @param resourceName Name of the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 server vulnerability assessment onboarding statuses on a given resource. + * @return a server vulnerability assessment onboarding statuses on a given resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ServerVulnerabilityAssessmentInner get( - String resourceGroupName, String resourceNamespace, String resourceType, String resourceName) { - return getAsync(resourceGroupName, resourceNamespace, resourceType, resourceName).block(); + public Response getWithResponse( + String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context) { + return getWithResponseAsync(resourceGroupName, resourceNamespace, resourceType, resourceName, context).block(); } /** @@ -497,16 +500,16 @@ public ServerVulnerabilityAssessmentInner get( * @param resourceNamespace The Namespace of the resource. * @param resourceType The type of the resource. * @param resourceName Name of the resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 server vulnerability assessment onboarding statuses on a given resource along with {@link Response}. + * @return a server vulnerability assessment onboarding statuses on a given resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context) { - return getWithResponseAsync(resourceGroupName, resourceNamespace, resourceType, resourceName, context).block(); + public ServerVulnerabilityAssessmentInner get( + String resourceGroupName, String resourceNamespace, String resourceType, String resourceName) { + return getWithResponse(resourceGroupName, resourceNamespace, resourceType, resourceName, Context.NONE) + .getValue(); } /** @@ -668,15 +671,18 @@ private Mono createOrUpdateAsync( * @param resourceNamespace The Namespace of the resource. * @param resourceType The type of the resource. * @param resourceName Name of the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 server vulnerability assessment details on a resource. + * @return describes the server vulnerability assessment details on a resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ServerVulnerabilityAssessmentInner createOrUpdate( - String resourceGroupName, String resourceNamespace, String resourceType, String resourceName) { - return createOrUpdateAsync(resourceGroupName, resourceNamespace, resourceType, resourceName).block(); + public Response createOrUpdateWithResponse( + String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context) { + return createOrUpdateWithResponseAsync( + resourceGroupName, resourceNamespace, resourceType, resourceName, context) + .block(); } /** @@ -688,18 +694,17 @@ public ServerVulnerabilityAssessmentInner createOrUpdate( * @param resourceNamespace The Namespace of the resource. * @param resourceType The type of the resource. * @param resourceName Name of the resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 server vulnerability assessment details on a resource along with {@link Response}. + * @return describes the server vulnerability assessment details on a resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, resourceNamespace, resourceType, resourceName, context) - .block(); + public ServerVulnerabilityAssessmentInner createOrUpdate( + String resourceGroupName, String resourceNamespace, String resourceType, String resourceName) { + return createOrUpdateWithResponse( + resourceGroupName, resourceNamespace, resourceType, resourceName, Context.NONE) + .getValue(); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ServerVulnerabilityAssessmentsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ServerVulnerabilityAssessmentsImpl.java index a6d83fba21f7a..2538bf7d5ba37 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ServerVulnerabilityAssessmentsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ServerVulnerabilityAssessmentsImpl.java @@ -29,19 +29,6 @@ public ServerVulnerabilityAssessmentsImpl( this.serviceManager = serviceManager; } - public ServerVulnerabilityAssessmentsList listByExtendedResource( - String resourceGroupName, String resourceNamespace, String resourceType, String resourceName) { - ServerVulnerabilityAssessmentsListInner inner = - this - .serviceClient() - .listByExtendedResource(resourceGroupName, resourceNamespace, resourceType, resourceName); - if (inner != null) { - return new ServerVulnerabilityAssessmentsListImpl(inner, this.manager()); - } else { - return null; - } - } - public Response listByExtendedResourceWithResponse( String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context) { Response inner = @@ -60,12 +47,14 @@ public Response listByExtendedResourceWithRe } } - public ServerVulnerabilityAssessment get( + public ServerVulnerabilityAssessmentsList listByExtendedResource( String resourceGroupName, String resourceNamespace, String resourceType, String resourceName) { - ServerVulnerabilityAssessmentInner inner = - this.serviceClient().get(resourceGroupName, resourceNamespace, resourceType, resourceName); + ServerVulnerabilityAssessmentsListInner inner = + this + .serviceClient() + .listByExtendedResource(resourceGroupName, resourceNamespace, resourceType, resourceName); if (inner != null) { - return new ServerVulnerabilityAssessmentImpl(inner, this.manager()); + return new ServerVulnerabilityAssessmentsListImpl(inner, this.manager()); } else { return null; } @@ -88,10 +77,10 @@ public Response getWithResponse( } } - public ServerVulnerabilityAssessment createOrUpdate( + public ServerVulnerabilityAssessment get( String resourceGroupName, String resourceNamespace, String resourceType, String resourceName) { ServerVulnerabilityAssessmentInner inner = - this.serviceClient().createOrUpdate(resourceGroupName, resourceNamespace, resourceType, resourceName); + this.serviceClient().get(resourceGroupName, resourceNamespace, resourceType, resourceName); if (inner != null) { return new ServerVulnerabilityAssessmentImpl(inner, this.manager()); } else { @@ -116,6 +105,17 @@ public Response createOrUpdateWithResponse( } } + public ServerVulnerabilityAssessment createOrUpdate( + String resourceGroupName, String resourceNamespace, String resourceType, String resourceName) { + ServerVulnerabilityAssessmentInner inner = + this.serviceClient().createOrUpdate(resourceGroupName, resourceNamespace, resourceType, resourceName); + if (inner != null) { + return new ServerVulnerabilityAssessmentImpl(inner, this.manager()); + } else { + return null; + } + } + public void delete(String resourceGroupName, String resourceNamespace, String resourceType, String resourceName) { this.serviceClient().delete(resourceGroupName, resourceNamespace, resourceType, resourceName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SettingsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SettingsClientImpl.java index 5daa4e68e6362..0367c92be0711 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SettingsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SettingsClientImpl.java @@ -331,29 +331,29 @@ private Mono getAsync(SettingName settingName) { * Settings of different configurations in Microsoft Defender for Cloud. * * @param settingName The name of the setting. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 kind of the security setting. + * @return the kind of the security setting along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SettingInner get(SettingName settingName) { - return getAsync(settingName).block(); + public Response getWithResponse(SettingName settingName, Context context) { + return getWithResponseAsync(settingName, context).block(); } /** * Settings of different configurations in Microsoft Defender for Cloud. * * @param settingName The name of the setting. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 kind of the security setting along with {@link Response}. + * @return the kind of the security setting. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(SettingName settingName, Context context) { - return getWithResponseAsync(settingName, context).block(); + public SettingInner get(SettingName settingName) { + return getWithResponse(settingName, Context.NONE).getValue(); } /** @@ -473,14 +473,15 @@ private Mono updateAsync(SettingName settingName, SettingInner set * * @param settingName The name of the setting. * @param setting Setting object. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 kind of the security setting. + * @return the kind of the security setting along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SettingInner update(SettingName settingName, SettingInner setting) { - return updateAsync(settingName, setting).block(); + public Response updateWithResponse(SettingName settingName, SettingInner setting, Context context) { + return updateWithResponseAsync(settingName, setting, context).block(); } /** @@ -488,15 +489,14 @@ public SettingInner update(SettingName settingName, SettingInner setting) { * * @param settingName The name of the setting. * @param setting Setting object. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 kind of the security setting along with {@link Response}. + * @return the kind of the security setting. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse(SettingName settingName, SettingInner setting, Context context) { - return updateWithResponseAsync(settingName, setting, context).block(); + public SettingInner update(SettingName settingName, SettingInner setting) { + return updateWithResponse(settingName, setting, Context.NONE).getValue(); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SettingsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SettingsImpl.java index ac0f7df700110..4c370425ade59 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SettingsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SettingsImpl.java @@ -37,15 +37,6 @@ public PagedIterable list(Context context) { return Utils.mapPage(inner, inner1 -> new SettingImpl(inner1, this.manager())); } - public Setting get(SettingName settingName) { - SettingInner inner = this.serviceClient().get(settingName); - if (inner != null) { - return new SettingImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse(SettingName settingName, Context context) { Response inner = this.serviceClient().getWithResponse(settingName, context); if (inner != null) { @@ -59,8 +50,8 @@ public Response getWithResponse(SettingName settingName, Context contex } } - public Setting update(SettingName settingName, SettingInner setting) { - SettingInner inner = this.serviceClient().update(settingName, setting); + public Setting get(SettingName settingName) { + SettingInner inner = this.serviceClient().get(settingName); if (inner != null) { return new SettingImpl(inner, this.manager()); } else { @@ -81,6 +72,15 @@ public Response updateWithResponse(SettingName settingName, SettingInne } } + public Setting update(SettingName settingName, SettingInner setting) { + SettingInner inner = this.serviceClient().update(settingName, setting); + if (inner != null) { + return new SettingImpl(inner, this.manager()); + } else { + return null; + } + } + private SettingsClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SoftwareInventoriesClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SoftwareInventoriesClientImpl.java index c3aa8d7311496..cc290a6b87e27 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SoftwareInventoriesClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SoftwareInventoriesClientImpl.java @@ -664,19 +664,23 @@ private Mono getAsync( * @param resourceType The type of the resource. * @param resourceName Name of the resource. * @param softwareName Name of the installed software. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a single software data of the virtual machine. + * @return a single software data of the virtual machine along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SoftwareInner get( + public Response getWithResponse( String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, - String softwareName) { - return getAsync(resourceGroupName, resourceNamespace, resourceType, resourceName, softwareName).block(); + String softwareName, + Context context) { + return getWithResponseAsync( + resourceGroupName, resourceNamespace, resourceType, resourceName, softwareName, context) + .block(); } /** @@ -688,23 +692,21 @@ public SoftwareInner get( * @param resourceType The type of the resource. * @param resourceName Name of the resource. * @param softwareName Name of the installed software. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a single software data of the virtual machine along with {@link Response}. + * @return a single software data of the virtual machine. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( + public SoftwareInner get( String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, - String softwareName, - Context context) { - return getWithResponseAsync( - resourceGroupName, resourceNamespace, resourceType, resourceName, softwareName, context) - .block(); + String softwareName) { + return getWithResponse( + resourceGroupName, resourceNamespace, resourceType, resourceName, softwareName, Context.NONE) + .getValue(); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SoftwareInventoriesImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SoftwareInventoriesImpl.java index 4ea797801f7d3..fdbee743a3209 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SoftwareInventoriesImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SoftwareInventoriesImpl.java @@ -55,21 +55,6 @@ public PagedIterable list(Context context) { return Utils.mapPage(inner, inner1 -> new SoftwareImpl(inner1, this.manager())); } - public Software get( - String resourceGroupName, - String resourceNamespace, - String resourceType, - String resourceName, - String softwareName) { - SoftwareInner inner = - this.serviceClient().get(resourceGroupName, resourceNamespace, resourceType, resourceName, softwareName); - if (inner != null) { - return new SoftwareImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String resourceNamespace, @@ -93,6 +78,21 @@ public Response getWithResponse( } } + public Software get( + String resourceGroupName, + String resourceNamespace, + String resourceType, + String resourceName, + String softwareName) { + SoftwareInner inner = + this.serviceClient().get(resourceGroupName, resourceNamespace, resourceType, resourceName, softwareName); + if (inner != null) { + return new SoftwareImpl(inner, this.manager()); + } else { + return null; + } + } + private SoftwareInventoriesClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SqlVulnerabilityAssessmentBaselineRulesClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SqlVulnerabilityAssessmentBaselineRulesClientImpl.java index 001eff39752d4..2c66820c3b0c5 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SqlVulnerabilityAssessmentBaselineRulesClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SqlVulnerabilityAssessmentBaselineRulesClientImpl.java @@ -231,15 +231,14 @@ private Mono> createOrUpdateWithResponseAsync( * @param ruleId The rule Id. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. - * @param body The baseline results for this rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return rule results on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String ruleId, String workspaceId, String resourceId, RuleResultsInput body) { + private Mono createOrUpdateAsync(String ruleId, String workspaceId, String resourceId) { + final RuleResultsInput body = null; return createOrUpdateWithResponseAsync(ruleId, workspaceId, resourceId, body) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -250,16 +249,17 @@ private Mono createOrUpdateAsync( * @param ruleId The rule Id. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. + * @param body The baseline results for this rule. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return rule results on successful completion of {@link Mono}. + * @return rule results along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String ruleId, String workspaceId, String resourceId) { - final RuleResultsInput body = null; - return createOrUpdateWithResponseAsync(ruleId, workspaceId, resourceId, body) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Response createOrUpdateWithResponse( + String ruleId, String workspaceId, String resourceId, RuleResultsInput body, Context context) { + return createOrUpdateWithResponseAsync(ruleId, workspaceId, resourceId, body, context).block(); } /** @@ -276,26 +276,7 @@ private Mono createOrUpdateAsync(String ruleId, String workspa @ServiceMethod(returns = ReturnType.SINGLE) public RuleResultsInner createOrUpdate(String ruleId, String workspaceId, String resourceId) { final RuleResultsInput body = null; - return createOrUpdateAsync(ruleId, workspaceId, resourceId, body).block(); - } - - /** - * Creates a Baseline for a rule in a database. Will overwrite any previously existing results. - * - * @param ruleId The rule Id. - * @param workspaceId The workspace Id. - * @param resourceId The identifier of the resource. - * @param body The baseline results for this rule. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return rule results along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String ruleId, String workspaceId, String resourceId, RuleResultsInput body, Context context) { - return createOrUpdateWithResponseAsync(ruleId, workspaceId, resourceId, body, context).block(); + return createOrUpdateWithResponse(ruleId, workspaceId, resourceId, body, Context.NONE).getValue(); } /** @@ -397,14 +378,16 @@ private Mono getAsync(String ruleId, String workspaceId, Strin * @param ruleId The rule Id. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the results for a given rule in the Baseline. + * @return the results for a given rule in the Baseline along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RuleResultsInner get(String ruleId, String workspaceId, String resourceId) { - return getAsync(ruleId, workspaceId, resourceId).block(); + public Response getWithResponse( + String ruleId, String workspaceId, String resourceId, Context context) { + return getWithResponseAsync(ruleId, workspaceId, resourceId, context).block(); } /** @@ -413,16 +396,14 @@ public RuleResultsInner get(String ruleId, String workspaceId, String resourceId * @param ruleId The rule Id. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the results for a given rule in the Baseline along with {@link Response}. + * @return the results for a given rule in the Baseline. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String ruleId, String workspaceId, String resourceId, Context context) { - return getWithResponseAsync(ruleId, workspaceId, resourceId, context).block(); + public RuleResultsInner get(String ruleId, String workspaceId, String resourceId) { + return getWithResponse(ruleId, workspaceId, resourceId, Context.NONE).getValue(); } /** @@ -522,13 +503,15 @@ private Mono deleteAsync(String ruleId, String workspaceId, String resourc * @param ruleId The rule Id. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public void delete(String ruleId, String workspaceId, String resourceId) { - deleteAsync(ruleId, workspaceId, resourceId).block(); + public Response deleteWithResponse(String ruleId, String workspaceId, String resourceId, Context context) { + return deleteWithResponseAsync(ruleId, workspaceId, resourceId, context).block(); } /** @@ -537,15 +520,13 @@ public void delete(String ruleId, String workspaceId, String resourceId) { * @param ruleId The rule Id. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public Response deleteWithResponse(String ruleId, String workspaceId, String resourceId, Context context) { - return deleteWithResponseAsync(ruleId, workspaceId, resourceId, context).block(); + public void delete(String ruleId, String workspaceId, String resourceId) { + deleteWithResponse(ruleId, workspaceId, resourceId, Context.NONE); } /** @@ -635,14 +616,15 @@ private Mono listAsync(String workspaceId, String resourceId) * * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the results for all rules in the Baseline. + * @return the results for all rules in the Baseline along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RulesResultsInner list(String workspaceId, String resourceId) { - return listAsync(workspaceId, resourceId).block(); + public Response listWithResponse(String workspaceId, String resourceId, Context context) { + return listWithResponseAsync(workspaceId, resourceId, context).block(); } /** @@ -650,15 +632,14 @@ public RulesResultsInner list(String workspaceId, String resourceId) { * * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the results for all rules in the Baseline along with {@link Response}. + * @return the results for all rules in the Baseline. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listWithResponse(String workspaceId, String resourceId, Context context) { - return listWithResponseAsync(workspaceId, resourceId, context).block(); + public RulesResultsInner list(String workspaceId, String resourceId) { + return listWithResponse(workspaceId, resourceId, Context.NONE).getValue(); } /** @@ -740,14 +721,14 @@ private Mono> addWithResponseAsync( * * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. - * @param body The baseline rules. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of rules results on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono addAsync(String workspaceId, String resourceId, RulesResultsInput body) { + private Mono addAsync(String workspaceId, String resourceId) { + final RulesResultsInput body = null; return addWithResponseAsync(workspaceId, resourceId, body).flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -756,15 +737,17 @@ private Mono addAsync(String workspaceId, String resourceId, * * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. + * @param body The baseline rules. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of rules results on successful completion of {@link Mono}. + * @return a list of rules results along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono addAsync(String workspaceId, String resourceId) { - final RulesResultsInput body = null; - return addWithResponseAsync(workspaceId, resourceId, body).flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Response addWithResponse( + String workspaceId, String resourceId, RulesResultsInput body, Context context) { + return addWithResponseAsync(workspaceId, resourceId, body, context).block(); } /** @@ -780,24 +763,6 @@ private Mono addAsync(String workspaceId, String resourceId) @ServiceMethod(returns = ReturnType.SINGLE) public RulesResultsInner add(String workspaceId, String resourceId) { final RulesResultsInput body = null; - return addAsync(workspaceId, resourceId, body).block(); - } - - /** - * Add a list of baseline rules. Will overwrite any previously existing results (for all rules). - * - * @param workspaceId The workspace Id. - * @param resourceId The identifier of the resource. - * @param body The baseline rules. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of rules results along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response addWithResponse( - String workspaceId, String resourceId, RulesResultsInput body, Context context) { - return addWithResponseAsync(workspaceId, resourceId, body, context).block(); + return addWithResponse(workspaceId, resourceId, body, Context.NONE).getValue(); } } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SqlVulnerabilityAssessmentBaselineRulesImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SqlVulnerabilityAssessmentBaselineRulesImpl.java index 551a5b15b1018..2f3bbda297510 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SqlVulnerabilityAssessmentBaselineRulesImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SqlVulnerabilityAssessmentBaselineRulesImpl.java @@ -30,15 +30,6 @@ public SqlVulnerabilityAssessmentBaselineRulesImpl( this.serviceManager = serviceManager; } - public RuleResults get(String ruleId, String workspaceId, String resourceId) { - RuleResultsInner inner = this.serviceClient().get(ruleId, workspaceId, resourceId); - if (inner != null) { - return new RuleResultsImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String ruleId, String workspaceId, String resourceId, Context context) { Response inner = @@ -54,21 +45,21 @@ public Response getWithResponse( } } - public void delete(String ruleId, String workspaceId, String resourceId) { - this.serviceClient().delete(ruleId, workspaceId, resourceId); + public RuleResults get(String ruleId, String workspaceId, String resourceId) { + RuleResultsInner inner = this.serviceClient().get(ruleId, workspaceId, resourceId); + if (inner != null) { + return new RuleResultsImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse(String ruleId, String workspaceId, String resourceId, Context context) { return this.serviceClient().deleteWithResponse(ruleId, workspaceId, resourceId, context); } - public RulesResults list(String workspaceId, String resourceId) { - RulesResultsInner inner = this.serviceClient().list(workspaceId, resourceId); - if (inner != null) { - return new RulesResultsImpl(inner, this.manager()); - } else { - return null; - } + public void delete(String ruleId, String workspaceId, String resourceId) { + this.serviceClient().delete(ruleId, workspaceId, resourceId); } public Response listWithResponse(String workspaceId, String resourceId, Context context) { @@ -84,8 +75,8 @@ public Response listWithResponse(String workspaceId, String resour } } - public RulesResults add(String workspaceId, String resourceId) { - RulesResultsInner inner = this.serviceClient().add(workspaceId, resourceId); + public RulesResults list(String workspaceId, String resourceId) { + RulesResultsInner inner = this.serviceClient().list(workspaceId, resourceId); if (inner != null) { return new RulesResultsImpl(inner, this.manager()); } else { @@ -108,6 +99,15 @@ public Response addWithResponse( } } + public RulesResults add(String workspaceId, String resourceId) { + RulesResultsInner inner = this.serviceClient().add(workspaceId, resourceId); + if (inner != null) { + return new RulesResultsImpl(inner, this.manager()); + } else { + return null; + } + } + private SqlVulnerabilityAssessmentBaselineRulesClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SqlVulnerabilityAssessmentScanResultsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SqlVulnerabilityAssessmentScanResultsClientImpl.java index a19662db10e01..b27527831f636 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SqlVulnerabilityAssessmentScanResultsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SqlVulnerabilityAssessmentScanResultsClientImpl.java @@ -210,14 +210,16 @@ private Mono getAsync(String scanId, String scanResultId, Strin * @param scanResultId The rule Id of the results. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the scan results of a single rule in a scan record. + * @return the scan results of a single rule in a scan record along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ScanResultInner get(String scanId, String scanResultId, String workspaceId, String resourceId) { - return getAsync(scanId, scanResultId, workspaceId, resourceId).block(); + public Response getWithResponse( + String scanId, String scanResultId, String workspaceId, String resourceId, Context context) { + return getWithResponseAsync(scanId, scanResultId, workspaceId, resourceId, context).block(); } /** @@ -227,16 +229,14 @@ public ScanResultInner get(String scanId, String scanResultId, String workspaceI * @param scanResultId The rule Id of the results. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the scan results of a single rule in a scan record along with {@link Response}. + * @return the scan results of a single rule in a scan record. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String scanId, String scanResultId, String workspaceId, String resourceId, Context context) { - return getWithResponseAsync(scanId, scanResultId, workspaceId, resourceId, context).block(); + public ScanResultInner get(String scanId, String scanResultId, String workspaceId, String resourceId) { + return getWithResponse(scanId, scanResultId, workspaceId, resourceId, Context.NONE).getValue(); } /** @@ -338,14 +338,16 @@ private Mono listAsync(String scanId, String workspaceId, Stri * @param scanId The scan Id. Type 'latest' to get the scan results for the latest scan. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of scan results for a single scan record. + * @return a list of scan results for a single scan record along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ScanResultsInner list(String scanId, String workspaceId, String resourceId) { - return listAsync(scanId, workspaceId, resourceId).block(); + public Response listWithResponse( + String scanId, String workspaceId, String resourceId, Context context) { + return listWithResponseAsync(scanId, workspaceId, resourceId, context).block(); } /** @@ -354,15 +356,13 @@ public ScanResultsInner list(String scanId, String workspaceId, String resourceI * @param scanId The scan Id. Type 'latest' to get the scan results for the latest scan. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of scan results for a single scan record along with {@link Response}. + * @return a list of scan results for a single scan record. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listWithResponse( - String scanId, String workspaceId, String resourceId, Context context) { - return listWithResponseAsync(scanId, workspaceId, resourceId, context).block(); + public ScanResultsInner list(String scanId, String workspaceId, String resourceId) { + return listWithResponse(scanId, workspaceId, resourceId, Context.NONE).getValue(); } } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SqlVulnerabilityAssessmentScanResultsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SqlVulnerabilityAssessmentScanResultsImpl.java index e728c45ec3132..ede3a2500e802 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SqlVulnerabilityAssessmentScanResultsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SqlVulnerabilityAssessmentScanResultsImpl.java @@ -29,15 +29,6 @@ public SqlVulnerabilityAssessmentScanResultsImpl( this.serviceManager = serviceManager; } - public ScanResult get(String scanId, String scanResultId, String workspaceId, String resourceId) { - ScanResultInner inner = this.serviceClient().get(scanId, scanResultId, workspaceId, resourceId); - if (inner != null) { - return new ScanResultImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String scanId, String scanResultId, String workspaceId, String resourceId, Context context) { Response inner = @@ -53,10 +44,10 @@ public Response getWithResponse( } } - public ScanResults list(String scanId, String workspaceId, String resourceId) { - ScanResultsInner inner = this.serviceClient().list(scanId, workspaceId, resourceId); + public ScanResult get(String scanId, String scanResultId, String workspaceId, String resourceId) { + ScanResultInner inner = this.serviceClient().get(scanId, scanResultId, workspaceId, resourceId); if (inner != null) { - return new ScanResultsImpl(inner, this.manager()); + return new ScanResultImpl(inner, this.manager()); } else { return null; } @@ -77,6 +68,15 @@ public Response listWithResponse( } } + public ScanResults list(String scanId, String workspaceId, String resourceId) { + ScanResultsInner inner = this.serviceClient().list(scanId, workspaceId, resourceId); + if (inner != null) { + return new ScanResultsImpl(inner, this.manager()); + } else { + return null; + } + } + private SqlVulnerabilityAssessmentScanResultsClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SqlVulnerabilityAssessmentScansClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SqlVulnerabilityAssessmentScansClientImpl.java index 0950f7f604b26..a62ccf1631470 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SqlVulnerabilityAssessmentScansClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SqlVulnerabilityAssessmentScansClientImpl.java @@ -180,14 +180,15 @@ private Mono getAsync(String scanId, String workspaceId, String resou * @param scanId The scan Id. Type 'latest' to get the scan record for the latest scan. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the scan details of a single scan record. + * @return the scan details of a single scan record along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ScanInner get(String scanId, String workspaceId, String resourceId) { - return getAsync(scanId, workspaceId, resourceId).block(); + public Response getWithResponse(String scanId, String workspaceId, String resourceId, Context context) { + return getWithResponseAsync(scanId, workspaceId, resourceId, context).block(); } /** @@ -196,15 +197,14 @@ public ScanInner get(String scanId, String workspaceId, String resourceId) { * @param scanId The scan Id. Type 'latest' to get the scan record for the latest scan. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the scan details of a single scan record along with {@link Response}. + * @return the scan details of a single scan record. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String scanId, String workspaceId, String resourceId, Context context) { - return getWithResponseAsync(scanId, workspaceId, resourceId, context).block(); + public ScanInner get(String scanId, String workspaceId, String resourceId) { + return getWithResponse(scanId, workspaceId, resourceId, Context.NONE).getValue(); } /** @@ -291,14 +291,15 @@ private Mono listAsync(String workspaceId, String resourceId) { * * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of scan records. + * @return a list of scan records along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ScansInner list(String workspaceId, String resourceId) { - return listAsync(workspaceId, resourceId).block(); + public Response listWithResponse(String workspaceId, String resourceId, Context context) { + return listWithResponseAsync(workspaceId, resourceId, context).block(); } /** @@ -306,14 +307,13 @@ public ScansInner list(String workspaceId, String resourceId) { * * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of scan records along with {@link Response}. + * @return a list of scan records. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listWithResponse(String workspaceId, String resourceId, Context context) { - return listWithResponseAsync(workspaceId, resourceId, context).block(); + public ScansInner list(String workspaceId, String resourceId) { + return listWithResponse(workspaceId, resourceId, Context.NONE).getValue(); } } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SqlVulnerabilityAssessmentScansImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SqlVulnerabilityAssessmentScansImpl.java index 431d36d5b57a3..8f16764d6269d 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SqlVulnerabilityAssessmentScansImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SqlVulnerabilityAssessmentScansImpl.java @@ -29,15 +29,6 @@ public SqlVulnerabilityAssessmentScansImpl( this.serviceManager = serviceManager; } - public Scan get(String scanId, String workspaceId, String resourceId) { - ScanInner inner = this.serviceClient().get(scanId, workspaceId, resourceId); - if (inner != null) { - return new ScanImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse(String scanId, String workspaceId, String resourceId, Context context) { Response inner = this.serviceClient().getWithResponse(scanId, workspaceId, resourceId, context); if (inner != null) { @@ -51,10 +42,10 @@ public Response getWithResponse(String scanId, String workspaceId, String } } - public Scans list(String workspaceId, String resourceId) { - ScansInner inner = this.serviceClient().list(workspaceId, resourceId); + public Scan get(String scanId, String workspaceId, String resourceId) { + ScanInner inner = this.serviceClient().get(scanId, workspaceId, resourceId); if (inner != null) { - return new ScansImpl(inner, this.manager()); + return new ScanImpl(inner, this.manager()); } else { return null; } @@ -73,6 +64,15 @@ public Response listWithResponse(String workspaceId, String resourceId, C } } + public Scans list(String workspaceId, String resourceId) { + ScansInner inner = this.serviceClient().list(workspaceId, resourceId); + if (inner != null) { + return new ScansImpl(inner, this.manager()); + } else { + return null; + } + } + private SqlVulnerabilityAssessmentScansClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SubAssessmentsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SubAssessmentsClientImpl.java index 7c6d34661fe6e..3ceec21169a21 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SubAssessmentsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SubAssessmentsClientImpl.java @@ -531,14 +531,16 @@ private Mono getAsync(String scope, String assessmen * management group (/providers/Microsoft.Management/managementGroups/mgName). * @param assessmentName The Assessment Key - Unique key for the assessment type. * @param subAssessmentName The Sub-Assessment Key - Unique key for the sub-assessment type. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a security sub-assessment on your scanned resource. + * @return a security sub-assessment on your scanned resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SecuritySubAssessmentInner get(String scope, String assessmentName, String subAssessmentName) { - return getAsync(scope, assessmentName, subAssessmentName).block(); + public Response getWithResponse( + String scope, String assessmentName, String subAssessmentName, Context context) { + return getWithResponseAsync(scope, assessmentName, subAssessmentName, context).block(); } /** @@ -548,16 +550,14 @@ public SecuritySubAssessmentInner get(String scope, String assessmentName, Strin * management group (/providers/Microsoft.Management/managementGroups/mgName). * @param assessmentName The Assessment Key - Unique key for the assessment type. * @param subAssessmentName The Sub-Assessment Key - Unique key for the sub-assessment type. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a security sub-assessment on your scanned resource along with {@link Response}. + * @return a security sub-assessment on your scanned resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String scope, String assessmentName, String subAssessmentName, Context context) { - return getWithResponseAsync(scope, assessmentName, subAssessmentName, context).block(); + public SecuritySubAssessmentInner get(String scope, String assessmentName, String subAssessmentName) { + return getWithResponse(scope, assessmentName, subAssessmentName, Context.NONE).getValue(); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SubAssessmentsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SubAssessmentsImpl.java index c6b1706f293f0..ed66f565392b7 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SubAssessmentsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SubAssessmentsImpl.java @@ -47,15 +47,6 @@ public PagedIterable list(String scope, String assessment return Utils.mapPage(inner, inner1 -> new SecuritySubAssessmentImpl(inner1, this.manager())); } - public SecuritySubAssessment get(String scope, String assessmentName, String subAssessmentName) { - SecuritySubAssessmentInner inner = this.serviceClient().get(scope, assessmentName, subAssessmentName); - if (inner != null) { - return new SecuritySubAssessmentImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String scope, String assessmentName, String subAssessmentName, Context context) { Response inner = @@ -71,6 +62,15 @@ public Response getWithResponse( } } + public SecuritySubAssessment get(String scope, String assessmentName, String subAssessmentName) { + SecuritySubAssessmentInner inner = this.serviceClient().get(scope, assessmentName, subAssessmentName); + if (inner != null) { + return new SecuritySubAssessmentImpl(inner, this.manager()); + } else { + return null; + } + } + private SubAssessmentsClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/TasksClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/TasksClientImpl.java index e164fd55d7759..c340cf675ad06 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/TasksClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/TasksClientImpl.java @@ -671,14 +671,16 @@ private Mono getSubscriptionLevelTaskAsync(String ascLocation * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param taskName Name of the task object, will be a GUID. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security task that we recommend to do in order to strengthen security. + * @return security task that we recommend to do in order to strengthen security along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SecurityTaskInner getSubscriptionLevelTask(String ascLocation, String taskName) { - return getSubscriptionLevelTaskAsync(ascLocation, taskName).block(); + public Response getSubscriptionLevelTaskWithResponse( + String ascLocation, String taskName, Context context) { + return getSubscriptionLevelTaskWithResponseAsync(ascLocation, taskName, context).block(); } /** @@ -687,16 +689,14 @@ public SecurityTaskInner getSubscriptionLevelTask(String ascLocation, String tas * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param taskName Name of the task object, will be a GUID. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security task that we recommend to do in order to strengthen security along with {@link Response}. + * @return security task that we recommend to do in order to strengthen security. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getSubscriptionLevelTaskWithResponse( - String ascLocation, String taskName, Context context) { - return getSubscriptionLevelTaskWithResponseAsync(ascLocation, taskName, context).block(); + public SecurityTaskInner getSubscriptionLevelTask(String ascLocation, String taskName) { + return getSubscriptionLevelTaskWithResponse(ascLocation, taskName, Context.NONE).getValue(); } /** @@ -833,14 +833,17 @@ private Mono updateSubscriptionLevelTaskStateAsync( * locations. * @param taskName Name of the task object, will be a GUID. * @param taskUpdateActionType Type of the action to do on the task. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public void updateSubscriptionLevelTaskState( - String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType) { - updateSubscriptionLevelTaskStateAsync(ascLocation, taskName, taskUpdateActionType).block(); + public Response updateSubscriptionLevelTaskStateWithResponse( + String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType, Context context) { + return updateSubscriptionLevelTaskStateWithResponseAsync(ascLocation, taskName, taskUpdateActionType, context) + .block(); } /** @@ -850,17 +853,14 @@ public void updateSubscriptionLevelTaskState( * locations. * @param taskName Name of the task object, will be a GUID. * @param taskUpdateActionType Type of the action to do on the task. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public Response updateSubscriptionLevelTaskStateWithResponse( - String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType, Context context) { - return updateSubscriptionLevelTaskStateWithResponseAsync(ascLocation, taskName, taskUpdateActionType, context) - .block(); + public void updateSubscriptionLevelTaskState( + String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType) { + updateSubscriptionLevelTaskStateWithResponse(ascLocation, taskName, taskUpdateActionType, Context.NONE); } /** @@ -1229,14 +1229,16 @@ private Mono getResourceGroupLevelTaskAsync( * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param taskName Name of the task object, will be a GUID. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security task that we recommend to do in order to strengthen security. + * @return security task that we recommend to do in order to strengthen security along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SecurityTaskInner getResourceGroupLevelTask(String resourceGroupName, String ascLocation, String taskName) { - return getResourceGroupLevelTaskAsync(resourceGroupName, ascLocation, taskName).block(); + public Response getResourceGroupLevelTaskWithResponse( + String resourceGroupName, String ascLocation, String taskName, Context context) { + return getResourceGroupLevelTaskWithResponseAsync(resourceGroupName, ascLocation, taskName, context).block(); } /** @@ -1247,16 +1249,14 @@ public SecurityTaskInner getResourceGroupLevelTask(String resourceGroupName, Str * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param taskName Name of the task object, will be a GUID. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security task that we recommend to do in order to strengthen security along with {@link Response}. + * @return security task that we recommend to do in order to strengthen security. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getResourceGroupLevelTaskWithResponse( - String resourceGroupName, String ascLocation, String taskName, Context context) { - return getResourceGroupLevelTaskWithResponseAsync(resourceGroupName, ascLocation, taskName, context).block(); + public SecurityTaskInner getResourceGroupLevelTask(String resourceGroupName, String ascLocation, String taskName) { + return getResourceGroupLevelTaskWithResponse(resourceGroupName, ascLocation, taskName, Context.NONE).getValue(); } /** @@ -1416,14 +1416,22 @@ private Mono updateResourceGroupLevelTaskStateAsync( * locations. * @param taskName Name of the task object, will be a GUID. * @param taskUpdateActionType Type of the action to do on the task. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public void updateResourceGroupLevelTaskState( - String resourceGroupName, String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType) { - updateResourceGroupLevelTaskStateAsync(resourceGroupName, ascLocation, taskName, taskUpdateActionType).block(); + public Response updateResourceGroupLevelTaskStateWithResponse( + String resourceGroupName, + String ascLocation, + String taskName, + TaskUpdateActionType taskUpdateActionType, + Context context) { + return updateResourceGroupLevelTaskStateWithResponseAsync( + resourceGroupName, ascLocation, taskName, taskUpdateActionType, context) + .block(); } /** @@ -1435,22 +1443,15 @@ public void updateResourceGroupLevelTaskState( * locations. * @param taskName Name of the task object, will be a GUID. * @param taskUpdateActionType Type of the action to do on the task. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public Response updateResourceGroupLevelTaskStateWithResponse( - String resourceGroupName, - String ascLocation, - String taskName, - TaskUpdateActionType taskUpdateActionType, - Context context) { - return updateResourceGroupLevelTaskStateWithResponseAsync( - resourceGroupName, ascLocation, taskName, taskUpdateActionType, context) - .block(); + public void updateResourceGroupLevelTaskState( + String resourceGroupName, String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType) { + updateResourceGroupLevelTaskStateWithResponse( + resourceGroupName, ascLocation, taskName, taskUpdateActionType, Context.NONE); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/TasksImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/TasksImpl.java index dee60d7be7e5f..ec884a63c55c3 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/TasksImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/TasksImpl.java @@ -47,15 +47,6 @@ public PagedIterable listByHomeRegion(String ascLocation, String f return Utils.mapPage(inner, inner1 -> new SecurityTaskImpl(inner1, this.manager())); } - public SecurityTask getSubscriptionLevelTask(String ascLocation, String taskName) { - SecurityTaskInner inner = this.serviceClient().getSubscriptionLevelTask(ascLocation, taskName); - if (inner != null) { - return new SecurityTaskImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getSubscriptionLevelTaskWithResponse( String ascLocation, String taskName, Context context) { Response inner = @@ -71,9 +62,13 @@ public Response getSubscriptionLevelTaskWithResponse( } } - public void updateSubscriptionLevelTaskState( - String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType) { - this.serviceClient().updateSubscriptionLevelTaskState(ascLocation, taskName, taskUpdateActionType); + public SecurityTask getSubscriptionLevelTask(String ascLocation, String taskName) { + SecurityTaskInner inner = this.serviceClient().getSubscriptionLevelTask(ascLocation, taskName); + if (inner != null) { + return new SecurityTaskImpl(inner, this.manager()); + } else { + return null; + } } public Response updateSubscriptionLevelTaskStateWithResponse( @@ -83,6 +78,11 @@ public Response updateSubscriptionLevelTaskStateWithResponse( .updateSubscriptionLevelTaskStateWithResponse(ascLocation, taskName, taskUpdateActionType, context); } + public void updateSubscriptionLevelTaskState( + String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType) { + this.serviceClient().updateSubscriptionLevelTaskState(ascLocation, taskName, taskUpdateActionType); + } + public PagedIterable listByResourceGroup(String resourceGroupName, String ascLocation) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, ascLocation); @@ -96,16 +96,6 @@ public PagedIterable listByResourceGroup( return Utils.mapPage(inner, inner1 -> new SecurityTaskImpl(inner1, this.manager())); } - public SecurityTask getResourceGroupLevelTask(String resourceGroupName, String ascLocation, String taskName) { - SecurityTaskInner inner = - this.serviceClient().getResourceGroupLevelTask(resourceGroupName, ascLocation, taskName); - if (inner != null) { - return new SecurityTaskImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getResourceGroupLevelTaskWithResponse( String resourceGroupName, String ascLocation, String taskName, Context context) { Response inner = @@ -123,11 +113,14 @@ public Response getResourceGroupLevelTaskWithResponse( } } - public void updateResourceGroupLevelTaskState( - String resourceGroupName, String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType) { - this - .serviceClient() - .updateResourceGroupLevelTaskState(resourceGroupName, ascLocation, taskName, taskUpdateActionType); + public SecurityTask getResourceGroupLevelTask(String resourceGroupName, String ascLocation, String taskName) { + SecurityTaskInner inner = + this.serviceClient().getResourceGroupLevelTask(resourceGroupName, ascLocation, taskName); + if (inner != null) { + return new SecurityTaskImpl(inner, this.manager()); + } else { + return null; + } } public Response updateResourceGroupLevelTaskStateWithResponse( @@ -142,6 +135,13 @@ public Response updateResourceGroupLevelTaskStateWithResponse( resourceGroupName, ascLocation, taskName, taskUpdateActionType, context); } + public void updateResourceGroupLevelTaskState( + String resourceGroupName, String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType) { + this + .serviceClient() + .updateResourceGroupLevelTaskState(resourceGroupName, ascLocation, taskName, taskUpdateActionType); + } + private TasksClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/TopologiesClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/TopologiesClientImpl.java index 32ae5b67cac25..3a8a74340ab5c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/TopologiesClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/TopologiesClientImpl.java @@ -564,14 +564,16 @@ private Mono getAsync( * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param topologyResourceName Name of a topology resources collection. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 topology component. + * @return a specific topology component along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public TopologyResourceInner get(String resourceGroupName, String ascLocation, String topologyResourceName) { - return getAsync(resourceGroupName, ascLocation, topologyResourceName).block(); + public Response getWithResponse( + String resourceGroupName, String ascLocation, String topologyResourceName, Context context) { + return getWithResponseAsync(resourceGroupName, ascLocation, topologyResourceName, context).block(); } /** @@ -582,16 +584,14 @@ public TopologyResourceInner get(String resourceGroupName, String ascLocation, S * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param topologyResourceName Name of a topology resources collection. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 topology component along with {@link Response}. + * @return a specific topology component. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String ascLocation, String topologyResourceName, Context context) { - return getWithResponseAsync(resourceGroupName, ascLocation, topologyResourceName, context).block(); + public TopologyResourceInner get(String resourceGroupName, String ascLocation, String topologyResourceName) { + return getWithResponse(resourceGroupName, ascLocation, topologyResourceName, Context.NONE).getValue(); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/TopologiesImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/TopologiesImpl.java index 408007fdbde25..7aa969963df63 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/TopologiesImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/TopologiesImpl.java @@ -47,15 +47,6 @@ public PagedIterable listByHomeRegion(String ascLocation, Cont return Utils.mapPage(inner, inner1 -> new TopologyResourceImpl(inner1, this.manager())); } - public TopologyResource get(String resourceGroupName, String ascLocation, String topologyResourceName) { - TopologyResourceInner inner = this.serviceClient().get(resourceGroupName, ascLocation, topologyResourceName); - if (inner != null) { - return new TopologyResourceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String ascLocation, String topologyResourceName, Context context) { Response inner = @@ -71,6 +62,15 @@ public Response getWithResponse( } } + public TopologyResource get(String resourceGroupName, String ascLocation, String topologyResourceName) { + TopologyResourceInner inner = this.serviceClient().get(resourceGroupName, ascLocation, topologyResourceName); + if (inner != null) { + return new TopologyResourceImpl(inner, this.manager()); + } else { + return null; + } + } + private TopologiesClient serviceClient() { return this.innerClient; } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/WorkspaceSettingsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/WorkspaceSettingsClientImpl.java index bb6ac41d38ab6..c9c168fb46771 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/WorkspaceSettingsClientImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/WorkspaceSettingsClientImpl.java @@ -381,14 +381,15 @@ private Mono getAsync(String workspaceSettingName) { * custom-workspace configuration was set. * * @param workspaceSettingName Name of the security setting. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return configures where to store the OMS agent data for workspaces under a scope. + * @return configures where to store the OMS agent data for workspaces under a scope along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkspaceSettingInner get(String workspaceSettingName) { - return getAsync(workspaceSettingName).block(); + public Response getWithResponse(String workspaceSettingName, Context context) { + return getWithResponseAsync(workspaceSettingName, context).block(); } /** @@ -396,15 +397,14 @@ public WorkspaceSettingInner get(String workspaceSettingName) { * custom-workspace configuration was set. * * @param workspaceSettingName Name of the security setting. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return configures where to store the OMS agent data for workspaces under a scope along with {@link Response}. + * @return configures where to store the OMS agent data for workspaces under a scope. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String workspaceSettingName, Context context) { - return getWithResponseAsync(workspaceSettingName, context).block(); + public WorkspaceSettingInner get(String workspaceSettingName) { + return getWithResponse(workspaceSettingName, Context.NONE).getValue(); } /** @@ -534,14 +534,16 @@ private Mono createAsync( * * @param workspaceSettingName Name of the security setting. * @param workspaceSetting Security data setting object. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return configures where to store the OMS agent data for workspaces under a scope. + * @return configures where to store the OMS agent data for workspaces under a scope along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkspaceSettingInner create(String workspaceSettingName, WorkspaceSettingInner workspaceSetting) { - return createAsync(workspaceSettingName, workspaceSetting).block(); + public Response createWithResponse( + String workspaceSettingName, WorkspaceSettingInner workspaceSetting, Context context) { + return createWithResponseAsync(workspaceSettingName, workspaceSetting, context).block(); } /** @@ -549,16 +551,14 @@ public WorkspaceSettingInner create(String workspaceSettingName, WorkspaceSettin * * @param workspaceSettingName Name of the security setting. * @param workspaceSetting Security data setting object. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return configures where to store the OMS agent data for workspaces under a scope along with {@link Response}. + * @return configures where to store the OMS agent data for workspaces under a scope. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createWithResponse( - String workspaceSettingName, WorkspaceSettingInner workspaceSetting, Context context) { - return createWithResponseAsync(workspaceSettingName, workspaceSetting, context).block(); + public WorkspaceSettingInner create(String workspaceSettingName, WorkspaceSettingInner workspaceSetting) { + return createWithResponse(workspaceSettingName, workspaceSetting, Context.NONE).getValue(); } /** @@ -688,14 +688,16 @@ private Mono updateAsync( * * @param workspaceSettingName Name of the security setting. * @param workspaceSetting Security data setting object. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return configures where to store the OMS agent data for workspaces under a scope. + * @return configures where to store the OMS agent data for workspaces under a scope along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkspaceSettingInner update(String workspaceSettingName, WorkspaceSettingInner workspaceSetting) { - return updateAsync(workspaceSettingName, workspaceSetting).block(); + public Response updateWithResponse( + String workspaceSettingName, WorkspaceSettingInner workspaceSetting, Context context) { + return updateWithResponseAsync(workspaceSettingName, workspaceSetting, context).block(); } /** @@ -703,16 +705,14 @@ public WorkspaceSettingInner update(String workspaceSettingName, WorkspaceSettin * * @param workspaceSettingName Name of the security setting. * @param workspaceSetting Security data setting object. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return configures where to store the OMS agent data for workspaces under a scope along with {@link Response}. + * @return configures where to store the OMS agent data for workspaces under a scope. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String workspaceSettingName, WorkspaceSettingInner workspaceSetting, Context context) { - return updateWithResponseAsync(workspaceSettingName, workspaceSetting, context).block(); + public WorkspaceSettingInner update(String workspaceSettingName, WorkspaceSettingInner workspaceSetting) { + return updateWithResponse(workspaceSettingName, workspaceSetting, Context.NONE).getValue(); } /** @@ -817,28 +817,28 @@ private Mono deleteAsync(String workspaceSettingName) { * Deletes the custom workspace settings for this subscription. new VMs will report to the default workspace. * * @param workspaceSettingName Name of the security setting. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public void delete(String workspaceSettingName) { - deleteAsync(workspaceSettingName).block(); + public Response deleteWithResponse(String workspaceSettingName, Context context) { + return deleteWithResponseAsync(workspaceSettingName, context).block(); } /** * Deletes the custom workspace settings for this subscription. new VMs will report to the default workspace. * * @param workspaceSettingName Name of the security setting. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public Response deleteWithResponse(String workspaceSettingName, Context context) { - return deleteWithResponseAsync(workspaceSettingName, context).block(); + public void delete(String workspaceSettingName) { + deleteWithResponse(workspaceSettingName, Context.NONE); } /** diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/WorkspaceSettingsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/WorkspaceSettingsImpl.java index 66a4eecf3cdd3..5917842ee7d16 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/WorkspaceSettingsImpl.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/WorkspaceSettingsImpl.java @@ -37,15 +37,6 @@ public PagedIterable list(Context context) { return Utils.mapPage(inner, inner1 -> new WorkspaceSettingImpl(inner1, this.manager())); } - public WorkspaceSetting get(String workspaceSettingName) { - WorkspaceSettingInner inner = this.serviceClient().get(workspaceSettingName); - if (inner != null) { - return new WorkspaceSettingImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse(String workspaceSettingName, Context context) { Response inner = this.serviceClient().getWithResponse(workspaceSettingName, context); if (inner != null) { @@ -59,14 +50,23 @@ public Response getWithResponse(String workspaceSettingName, C } } - public void delete(String workspaceSettingName) { - this.serviceClient().delete(workspaceSettingName); + public WorkspaceSetting get(String workspaceSettingName) { + WorkspaceSettingInner inner = this.serviceClient().get(workspaceSettingName); + if (inner != null) { + return new WorkspaceSettingImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse(String workspaceSettingName, Context context) { return this.serviceClient().deleteWithResponse(workspaceSettingName, context); } + public void delete(String workspaceSettingName) { + this.serviceClient().delete(workspaceSettingName); + } + public WorkspaceSetting getById(String id) { String workspaceSettingName = Utils.getValueFromIdByName(id, "workspaceSettings"); if (workspaceSettingName == null) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AadConnectivityStateAutoGenerated.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AadConnectivityStateAutoGenerated.java index d08fa974630b8..6cea9268f7e21 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AadConnectivityStateAutoGenerated.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AadConnectivityStateAutoGenerated.java @@ -16,6 +16,10 @@ public class AadConnectivityStateAutoGenerated { @JsonProperty(value = "connectivityState") private AadConnectivityState connectivityState; + /** Creates an instance of AadConnectivityStateAutoGenerated class. */ + public AadConnectivityStateAutoGenerated() { + } + /** * Get the connectivityState property: The connectivity state of the external AAD solution. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AadExternalSecuritySolution.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AadExternalSecuritySolution.java index aca0e4eb28dc1..400b5421f072c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AadExternalSecuritySolution.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AadExternalSecuritySolution.java @@ -21,6 +21,10 @@ public final class AadExternalSecuritySolution extends ExternalSecuritySolutionI @JsonProperty(value = "properties") private AadSolutionProperties properties; + /** Creates an instance of AadExternalSecuritySolution class. */ + public AadExternalSecuritySolution() { + } + /** * Get the properties property: The external security solution properties for AAD solutions. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AadSolutionProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AadSolutionProperties.java index 016e3de86db22..66c9643e1e5e5 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AadSolutionProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AadSolutionProperties.java @@ -16,6 +16,10 @@ public final class AadSolutionProperties extends ExternalSecuritySolutionPropert @JsonProperty(value = "connectivityState") private AadConnectivityState connectivityState; + /** Creates an instance of AadSolutionProperties class. */ + public AadSolutionProperties() { + } + /** * Get the connectivityState property: The connectivity state of the external AAD solution. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ActiveConnectionsNotInAllowedRange.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ActiveConnectionsNotInAllowedRange.java index eb420e131b2de..b8f0145eb2882 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ActiveConnectionsNotInAllowedRange.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ActiveConnectionsNotInAllowedRange.java @@ -14,6 +14,10 @@ @JsonTypeName("ActiveConnectionsNotInAllowedRange") @Fluent public final class ActiveConnectionsNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Creates an instance of ActiveConnectionsNotInAllowedRange class. */ + public ActiveConnectionsNotInAllowedRange() { + } + /** {@inheritDoc} */ @Override public ActiveConnectionsNotInAllowedRange withTimeWindowSize(Duration timeWindowSize) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdaptiveApplicationControlIssueSummary.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdaptiveApplicationControlIssueSummary.java index e7b4e52a218e7..57abcac239b7e 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdaptiveApplicationControlIssueSummary.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdaptiveApplicationControlIssueSummary.java @@ -22,6 +22,10 @@ public final class AdaptiveApplicationControlIssueSummary { @JsonProperty(value = "numberOfVms") private Float numberOfVms; + /** Creates an instance of AdaptiveApplicationControlIssueSummary class. */ + public AdaptiveApplicationControlIssueSummary() { + } + /** * Get the issue property: An alert that machines within a group can have. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdaptiveApplicationControls.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdaptiveApplicationControls.java index 4bd7fe9880947..e2584d847eb74 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdaptiveApplicationControls.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdaptiveApplicationControls.java @@ -9,15 +9,6 @@ /** Resource collection API of AdaptiveApplicationControls. */ public interface AdaptiveApplicationControls { - /** - * Gets a list of application control machine groups for the subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of application control machine groups for the subscription. - */ - AdaptiveApplicationControlGroups list(); - /** * Gets a list of application control machine groups for the subscription. * @@ -32,18 +23,28 @@ public interface AdaptiveApplicationControls { Response listWithResponse( Boolean includePathRecommendations, Boolean summary, Context context); + /** + * Gets a list of application control machine groups for the subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of application control machine groups for the subscription. + */ + AdaptiveApplicationControlGroups list(); + /** * Gets an application control VM/server group. * * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param groupName Name of an application control machine group. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 application control VM/server group. + * @return an application control VM/server group along with {@link Response}. */ - AdaptiveApplicationControlGroup get(String ascLocation, String groupName); + Response getWithResponse(String ascLocation, String groupName, Context context); /** * Gets an application control VM/server group. @@ -51,13 +52,12 @@ Response listWithResponse( * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param groupName Name of an application control machine group. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 application control VM/server group along with {@link Response}. + * @return an application control VM/server group. */ - Response getWithResponse(String ascLocation, String groupName, Context context); + AdaptiveApplicationControlGroup get(String ascLocation, String groupName); /** * Delete an application control machine group. @@ -65,11 +65,13 @@ Response listWithResponse( * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param groupName Name of an application control machine group. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. */ - void deleteByResourceGroup(String ascLocation, String groupName); + Response deleteByResourceGroupWithResponse(String ascLocation, String groupName, Context context); /** * Delete an application control machine group. @@ -77,13 +79,11 @@ Response listWithResponse( * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param groupName Name of an application control machine group. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. */ - Response deleteWithResponse(String ascLocation, String groupName, Context context); + void deleteByResourceGroup(String ascLocation, String groupName); /** * Gets an application control VM/server group. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdaptiveNetworkHardeningEnforceRequest.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdaptiveNetworkHardeningEnforceRequest.java index 9dc1b8788111a..0c6dfdd280f70 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdaptiveNetworkHardeningEnforceRequest.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdaptiveNetworkHardeningEnforceRequest.java @@ -25,6 +25,10 @@ public final class AdaptiveNetworkHardeningEnforceRequest { @JsonProperty(value = "networkSecurityGroups", required = true) private List networkSecurityGroups; + /** Creates an instance of AdaptiveNetworkHardeningEnforceRequest class. */ + public AdaptiveNetworkHardeningEnforceRequest() { + } + /** * Get the rules property: The rules to enforce. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdaptiveNetworkHardenings.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdaptiveNetworkHardenings.java index 628fb303f3b55..735512030947b 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdaptiveNetworkHardenings.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdaptiveNetworkHardenings.java @@ -54,17 +54,19 @@ PagedIterable listByExtendedResource( * @param resourceType The type of the resource. * @param resourceName Name of the resource. * @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening 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 single Adaptive Network Hardening resource. + * @return a single Adaptive Network Hardening resource along with {@link Response}. */ - AdaptiveNetworkHardening get( + Response getWithResponse( String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, - String adaptiveNetworkHardeningResourceName); + String adaptiveNetworkHardeningResourceName, + Context context); /** * Gets a single Adaptive Network Hardening resource. @@ -75,19 +77,17 @@ AdaptiveNetworkHardening get( * @param resourceType The type of the resource. * @param resourceName Name of the resource. * @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening 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 single Adaptive Network Hardening resource along with {@link Response}. + * @return a single Adaptive Network Hardening resource. */ - Response getWithResponse( + AdaptiveNetworkHardening get( String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, - String adaptiveNetworkHardeningResourceName, - Context context); + String adaptiveNetworkHardeningResourceName); /** * Enforces the given rules on the NSG(s) listed in the request. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdaptiveNetworkHardeningsList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdaptiveNetworkHardeningsList.java index 1f42d54fdffbe..f4c80bcc0897b 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdaptiveNetworkHardeningsList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdaptiveNetworkHardeningsList.java @@ -24,6 +24,10 @@ public final class AdaptiveNetworkHardeningsList { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of AdaptiveNetworkHardeningsList class. */ + public AdaptiveNetworkHardeningsList() { + } + /** * Get the value property: A list of Adaptive Network Hardenings resources. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdditionalData.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdditionalData.java index a69e4f8eb2e7b..ded9fba6be531 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdditionalData.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdditionalData.java @@ -23,6 +23,10 @@ }) @Immutable public class AdditionalData { + /** Creates an instance of AdditionalData class. */ + public AdditionalData() { + } + /** * Validates the instance. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdditionalWorkspacesProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdditionalWorkspacesProperties.java index acf7920aca7d3..7cd4c486ec2d6 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdditionalWorkspacesProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdditionalWorkspacesProperties.java @@ -29,6 +29,10 @@ public final class AdditionalWorkspacesProperties { @JsonProperty(value = "dataTypes") private List dataTypes; + /** Creates an instance of AdditionalWorkspacesProperties class. */ + public AdditionalWorkspacesProperties() { + } + /** * Get the workspace property: Workspace resource id. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdvancedThreatProtections.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdvancedThreatProtections.java index 7998b032f15d8..e513a77e747af 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdvancedThreatProtections.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AdvancedThreatProtections.java @@ -13,24 +13,24 @@ public interface AdvancedThreatProtections { * Gets the Advanced Threat Protection settings for the specified 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 the Advanced Threat Protection settings for the specified resource. + * @return the Advanced Threat Protection settings for the specified resource along with {@link Response}. */ - AdvancedThreatProtectionSetting get(String resourceId); + Response getWithResponse(String resourceId, Context context); /** * Gets the Advanced Threat Protection settings for the specified 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 the Advanced Threat Protection settings for the specified resource along with {@link Response}. + * @return the Advanced Threat Protection settings for the specified resource. */ - Response getWithResponse(String resourceId, Context context); + AdvancedThreatProtectionSetting get(String resourceId); /** * Gets the Advanced Threat Protection settings for the specified resource. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertEntity.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertEntity.java index 5828f88e47096..b835d2cab6fbb 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertEntity.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertEntity.java @@ -26,6 +26,10 @@ public final class AlertEntity { */ @JsonIgnore private Map additionalProperties; + /** Creates an instance of AlertEntity class. */ + public AlertEntity() { + } + /** * Get the type property: Type of entity. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertList.java index d3c2d47feb540..3e5b19511e577 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertList.java @@ -24,6 +24,10 @@ public final class AlertList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of AlertList class. */ + public AlertList() { + } + /** * Get the value property: describes security alert properties. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertPropertiesSupportingEvidence.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertPropertiesSupportingEvidence.java index a77303ff743fa..b0e6a2f61c503 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertPropertiesSupportingEvidence.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertPropertiesSupportingEvidence.java @@ -26,6 +26,10 @@ public final class AlertPropertiesSupportingEvidence { */ @JsonIgnore private Map additionalProperties; + /** Creates an instance of AlertPropertiesSupportingEvidence class. */ + public AlertPropertiesSupportingEvidence() { + } + /** * Get the type property: Type of the supportingEvidence. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertSimulatorBundlesRequestProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertSimulatorBundlesRequestProperties.java index 0471134970943..63f1f1f6633b0 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertSimulatorBundlesRequestProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertSimulatorBundlesRequestProperties.java @@ -21,6 +21,10 @@ public final class AlertSimulatorBundlesRequestProperties extends AlertSimulator @JsonProperty(value = "bundles") private List bundles; + /** Creates an instance of AlertSimulatorBundlesRequestProperties class. */ + public AlertSimulatorBundlesRequestProperties() { + } + /** * Get the bundles property: Bundles list. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertSimulatorRequestBody.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertSimulatorRequestBody.java index 4c05826c5986d..0e6c98294c16b 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertSimulatorRequestBody.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertSimulatorRequestBody.java @@ -16,6 +16,10 @@ public final class AlertSimulatorRequestBody { @JsonProperty(value = "properties") private AlertSimulatorRequestProperties properties; + /** Creates an instance of AlertSimulatorRequestBody class. */ + public AlertSimulatorRequestBody() { + } + /** * Get the properties property: Alert Simulator request body data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertSimulatorRequestProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertSimulatorRequestProperties.java index f34b231ed499d..f4bc7b5b76c87 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertSimulatorRequestProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertSimulatorRequestProperties.java @@ -29,6 +29,10 @@ public class AlertSimulatorRequestProperties { */ @JsonIgnore private Map additionalProperties; + /** Creates an instance of AlertSimulatorRequestProperties class. */ + public AlertSimulatorRequestProperties() { + } + /** * Get the additionalProperties property: Describes properties of an alert simulation request. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertSyncSettings.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertSyncSettings.java index 268388cabf72e..029123d935682 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertSyncSettings.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertSyncSettings.java @@ -22,6 +22,10 @@ public final class AlertSyncSettings extends SettingInner { @JsonProperty(value = "properties") private AlertSyncSettingProperties innerProperties; + /** Creates an instance of AlertSyncSettings class. */ + public AlertSyncSettings() { + } + /** * Get the innerProperties property: Alert sync setting data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Alerts.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Alerts.java index 01ec99a89c9da..6b849c8c6c062 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Alerts.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Alerts.java @@ -109,19 +109,6 @@ public interface Alerts { */ PagedIterable listResourceGroupLevelByRegion(String ascLocation, String resourceGroupName, Context context); - /** - * 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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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. - */ - Alert getSubscriptionLevel(String ascLocation, String alertName); - /** * Get an alert that is associated with a subscription. * @@ -137,19 +124,17 @@ public interface Alerts { Response getSubscriptionLevelWithResponse(String ascLocation, String alertName, Context context); /** - * Get an alert that is associated a resource group or a resource in a 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 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. + * @return an alert that is associated with a subscription. */ - Alert getResourceGroupLevel(String resourceGroupName, String ascLocation, String alertName); + Alert getSubscriptionLevel(String ascLocation, String alertName); /** * Get an alert that is associated a resource group or a resource in a resource group. @@ -170,16 +155,19 @@ 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 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. */ - void updateSubscriptionLevelStateToDismiss(String ascLocation, String alertName); + Alert getResourceGroupLevel(String resourceGroupName, String ascLocation, String alertName); /** * Update the alert's state. @@ -206,7 +194,7 @@ Response updateSubscriptionLevelStateToDismissWithResponse( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void updateSubscriptionLevelStateToResolve(String ascLocation, String alertName); + void updateSubscriptionLevelStateToDismiss(String ascLocation, String alertName); /** * Update the alert's state. @@ -233,7 +221,7 @@ Response updateSubscriptionLevelStateToResolveWithResponse( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void updateSubscriptionLevelStateToActivate(String ascLocation, String alertName); + void updateSubscriptionLevelStateToResolve(String ascLocation, String alertName); /** * Update the alert's state. @@ -260,7 +248,7 @@ Response updateSubscriptionLevelStateToActivateWithResponse( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void updateSubscriptionLevelStateToInProgress(String ascLocation, String alertName); + void updateSubscriptionLevelStateToActivate(String ascLocation, String alertName); /** * Update the alert's state. @@ -280,8 +268,6 @@ Response updateSubscriptionLevelStateToInProgressWithResponse( /** * 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. @@ -289,7 +275,7 @@ Response updateSubscriptionLevelStateToInProgressWithResponse( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void updateResourceGroupLevelStateToResolve(String resourceGroupName, String ascLocation, String alertName); + void updateSubscriptionLevelStateToInProgress(String ascLocation, String alertName); /** * Update the alert's state. @@ -320,7 +306,7 @@ Response updateResourceGroupLevelStateToResolveWithResponse( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void updateResourceGroupLevelStateToDismiss(String resourceGroupName, String ascLocation, String alertName); + void updateResourceGroupLevelStateToResolve(String resourceGroupName, String ascLocation, String alertName); /** * Update the alert's state. @@ -351,7 +337,7 @@ Response updateResourceGroupLevelStateToDismissWithResponse( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void updateResourceGroupLevelStateToActivate(String resourceGroupName, String ascLocation, String alertName); + void updateResourceGroupLevelStateToDismiss(String resourceGroupName, String ascLocation, String alertName); /** * Update the alert's state. @@ -382,7 +368,7 @@ Response updateResourceGroupLevelStateToActivateWithResponse( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void updateResourceGroupLevelStateToInProgress(String resourceGroupName, String ascLocation, String alertName); + void updateResourceGroupLevelStateToActivate(String resourceGroupName, String ascLocation, String alertName); /** * Update the alert's state. @@ -401,6 +387,20 @@ Response updateResourceGroupLevelStateToActivateWithResponse( Response updateResourceGroupLevelStateToInProgressWithResponse( String resourceGroupName, String ascLocation, String alertName, 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 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. + */ + void updateResourceGroupLevelStateToInProgress(String resourceGroupName, String ascLocation, String alertName); + /** * Simulate security alerts. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertsSuppressionRules.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertsSuppressionRules.java index c9c371d4162d1..201e06daeff1b 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertsSuppressionRules.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertsSuppressionRules.java @@ -36,71 +36,71 @@ public interface AlertsSuppressionRules { * 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. + * @return dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription along with {@link + * Response}. */ - AlertsSuppressionRule get(String alertsSuppressionRuleName); + 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. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. + * @return dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription. */ - Response getWithResponse(String alertsSuppressionRuleName, Context context); + AlertsSuppressionRule 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. + * @return describes the suppression rule along with {@link Response}. */ - AlertsSuppressionRule update(String alertsSuppressionRuleName, AlertsSuppressionRuleInner alertsSuppressionRule); + 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. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. + * @return describes the suppression rule. */ - Response updateWithResponse( - String alertsSuppressionRuleName, AlertsSuppressionRuleInner alertsSuppressionRule, Context context); + AlertsSuppressionRule 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}. */ - void delete(String alertsSuppressionRuleName); + Response deleteWithResponse(String alertsSuppressionRuleName, Context context); /** * 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}. */ - Response deleteWithResponse(String alertsSuppressionRuleName, Context context); + void delete(String alertsSuppressionRuleName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertsSuppressionRulesList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertsSuppressionRulesList.java index 60289831d7de0..7d0e5106fcd2e 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertsSuppressionRulesList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AlertsSuppressionRulesList.java @@ -25,6 +25,10 @@ public final class AlertsSuppressionRulesList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of AlertsSuppressionRulesList class. */ + public AlertsSuppressionRulesList() { + } + /** * Get the value property: The value property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AllowedConnections.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AllowedConnections.java index 460f546fce336..7dc20e8e9240b 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AllowedConnections.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AllowedConnections.java @@ -68,13 +68,15 @@ public interface AllowedConnections { * @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. + * type along with {@link Response}. */ - AllowedConnectionsResource get(String resourceGroupName, String ascLocation, ConnectionType connectionType); + Response getWithResponse( + String resourceGroupName, String ascLocation, ConnectionType connectionType, Context context); /** * Gets the list of all possible traffic between resources for the subscription and location, based on connection @@ -85,13 +87,11 @@ public interface AllowedConnections { * @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}. + * type. */ - Response getWithResponse( - String resourceGroupName, String ascLocation, ConnectionType connectionType, Context context); + AllowedConnectionsResource get(String resourceGroupName, String ascLocation, ConnectionType connectionType); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AllowedConnectionsList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AllowedConnectionsList.java index 99e4bff590de4..aa29c6120ec3f 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AllowedConnectionsList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AllowedConnectionsList.java @@ -24,6 +24,10 @@ public final class AllowedConnectionsList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of AllowedConnectionsList class. */ + public AllowedConnectionsList() { + } + /** * Get the value property: The value property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AllowlistCustomAlertRule.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AllowlistCustomAlertRule.java index e47dd15f2e45f..31e157bbd2e82 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AllowlistCustomAlertRule.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AllowlistCustomAlertRule.java @@ -33,6 +33,10 @@ public class AllowlistCustomAlertRule extends ListCustomAlertRule { @JsonProperty(value = "allowlistValues", required = true) private List allowlistValues; + /** Creates an instance of AllowlistCustomAlertRule class. */ + public AllowlistCustomAlertRule() { + } + /** * Get the allowlistValues property: The values to allow. The format of the values depends on the rule type. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AmqpC2DMessagesNotInAllowedRange.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AmqpC2DMessagesNotInAllowedRange.java index abeb81b3c8a7f..14079d7a02f2c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AmqpC2DMessagesNotInAllowedRange.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AmqpC2DMessagesNotInAllowedRange.java @@ -14,6 +14,10 @@ @JsonTypeName("AmqpC2DMessagesNotInAllowedRange") @Fluent public final class AmqpC2DMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Creates an instance of AmqpC2DMessagesNotInAllowedRange class. */ + public AmqpC2DMessagesNotInAllowedRange() { + } + /** {@inheritDoc} */ @Override public AmqpC2DMessagesNotInAllowedRange withTimeWindowSize(Duration timeWindowSize) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AmqpC2DRejectedMessagesNotInAllowedRange.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AmqpC2DRejectedMessagesNotInAllowedRange.java index 517b6cb191d12..833c457e1fcc1 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AmqpC2DRejectedMessagesNotInAllowedRange.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AmqpC2DRejectedMessagesNotInAllowedRange.java @@ -14,6 +14,10 @@ @JsonTypeName("AmqpC2DRejectedMessagesNotInAllowedRange") @Fluent public final class AmqpC2DRejectedMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Creates an instance of AmqpC2DRejectedMessagesNotInAllowedRange class. */ + public AmqpC2DRejectedMessagesNotInAllowedRange() { + } + /** {@inheritDoc} */ @Override public AmqpC2DRejectedMessagesNotInAllowedRange withTimeWindowSize(Duration timeWindowSize) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AmqpD2CMessagesNotInAllowedRange.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AmqpD2CMessagesNotInAllowedRange.java index 8935ee095cb05..d7cb03368abcc 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AmqpD2CMessagesNotInAllowedRange.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AmqpD2CMessagesNotInAllowedRange.java @@ -14,6 +14,10 @@ @JsonTypeName("AmqpD2CMessagesNotInAllowedRange") @Fluent public final class AmqpD2CMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Creates an instance of AmqpD2CMessagesNotInAllowedRange class. */ + public AmqpD2CMessagesNotInAllowedRange() { + } + /** {@inheritDoc} */ @Override public AmqpD2CMessagesNotInAllowedRange withTimeWindowSize(Duration timeWindowSize) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ApplicationOperations.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ApplicationOperations.java index 0f1a35dd0d9b3..233b962c3115a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ApplicationOperations.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ApplicationOperations.java @@ -13,46 +13,46 @@ public interface ApplicationOperations { * 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. + * @return a specific application for the requested scope by applicationId along with {@link Response}. */ - Application get(String applicationId); + 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. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. + * @return a specific application for the requested scope by applicationId. */ - Response getWithResponse(String applicationId, Context context); + Application get(String applicationId); /** * 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}. */ - void delete(String applicationId); + 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. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. */ - Response deleteWithResponse(String applicationId, Context context); + void delete(String applicationId); /** * Get a specific application for the requested scope by applicationId. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ApplicationsList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ApplicationsList.java index 6ea0318da118d..deccd03c7231d 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ApplicationsList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ApplicationsList.java @@ -24,6 +24,10 @@ public final class ApplicationsList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of ApplicationsList class. */ + public ApplicationsList() { + } + /** * Get the value property: Collection of applications in this page. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AscLocationList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AscLocationList.java index b9d4685ef3760..c8d7e61915583 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AscLocationList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AscLocationList.java @@ -24,6 +24,10 @@ public final class AscLocationList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of AscLocationList class. */ + public AscLocationList() { + } + /** * Get the value property: The value property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AssessmentLinks.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AssessmentLinks.java index a766ca7f87b1e..7c6620d027bd9 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AssessmentLinks.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AssessmentLinks.java @@ -16,6 +16,10 @@ public final class AssessmentLinks { @JsonProperty(value = "azurePortalUri", access = JsonProperty.Access.WRITE_ONLY) private String azurePortalUri; + /** Creates an instance of AssessmentLinks class. */ + public AssessmentLinks() { + } + /** * Get the azurePortalUri property: Link to assessment in Azure Portal. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AssessmentStatus.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AssessmentStatus.java index 0ec6803239544..3acea6c5664ad 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AssessmentStatus.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AssessmentStatus.java @@ -29,6 +29,10 @@ public class AssessmentStatus { @JsonProperty(value = "description") private String description; + /** Creates an instance of AssessmentStatus class. */ + public AssessmentStatus() { + } + /** * Get the code property: Programmatic code for the status of the assessment. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AssessmentStatusResponse.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AssessmentStatusResponse.java index 4979a1695c880..44837f46729be 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AssessmentStatusResponse.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AssessmentStatusResponse.java @@ -23,6 +23,10 @@ public final class AssessmentStatusResponse extends AssessmentStatus { @JsonProperty(value = "statusChangeDate", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime statusChangeDate; + /** Creates an instance of AssessmentStatusResponse class. */ + public AssessmentStatusResponse() { + } + /** * Get the firstEvaluationDate property: The time that the assessment was created and first evaluated. Returned as * UTC time in ISO 8601 format. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Assessments.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Assessments.java index 852fa4d519a74..d986d2a6d2542 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Assessments.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Assessments.java @@ -42,27 +42,27 @@ public interface Assessments { * * @param resourceId The 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a security assessment on your scanned resource. + * @return a security assessment on your scanned resource along with {@link Response}. */ - SecurityAssessmentResponse get(String resourceId, String assessmentName); + Response getWithResponse( + String resourceId, String assessmentName, ExpandEnum expand, Context context); /** * Get a security assessment on your scanned resource. * * @param resourceId The 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a security assessment on your scanned resource along with {@link Response}. + * @return a security assessment on your scanned resource. */ - Response getWithResponse( - String resourceId, String assessmentName, ExpandEnum expand, Context context); + SecurityAssessmentResponse get(String resourceId, String assessmentName); /** * Delete a security assessment on your resource. An assessment metadata that describes this assessment must be @@ -70,11 +70,13 @@ Response getWithResponse( * * @param resourceId The 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. * @throws com.azure.core.management.exception.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}. */ - void deleteByResourceGroup(String resourceId, String assessmentName); + Response deleteByResourceGroupWithResponse(String resourceId, String assessmentName, Context context); /** * Delete a security assessment on your resource. An assessment metadata that describes this assessment must be @@ -82,13 +84,11 @@ Response getWithResponse( * * @param resourceId The 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. * @throws com.azure.core.management.exception.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}. */ - Response deleteWithResponse(String resourceId, String assessmentName, Context context); + void deleteByResourceGroup(String resourceId, String assessmentName); /** * Get a security assessment on your scanned resource. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AssessmentsMetadatas.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AssessmentsMetadatas.java index 93102bed958d7..e5145325396c8 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AssessmentsMetadatas.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AssessmentsMetadatas.java @@ -34,24 +34,24 @@ public interface AssessmentsMetadatas { * Get metadata information on an assessment type. * * @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. + * @return metadata information on an assessment type along with {@link Response}. */ - SecurityAssessmentMetadataResponse get(String assessmentMetadataName); + Response getWithResponse(String assessmentMetadataName, Context context); /** * Get metadata information on an assessment type. * * @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 along with {@link Response}. + * @return metadata information on an assessment type. */ - Response getWithResponse(String assessmentMetadataName, Context context); + SecurityAssessmentMetadataResponse get(String assessmentMetadataName); /** * Get metadata information on all assessment types in a specific subscription. @@ -79,49 +79,49 @@ public interface AssessmentsMetadatas { * 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 an assessment type in a specific subscription. + * @return metadata information on an assessment type in a specific subscription along with {@link Response}. */ - SecurityAssessmentMetadataResponse getInSubscription(String assessmentMetadataName); + Response getInSubscriptionWithResponse( + String assessmentMetadataName, Context context); /** * 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 an assessment type in a specific subscription along with {@link Response}. + * @return metadata information on an assessment type in a specific subscription. */ - Response getInSubscriptionWithResponse( - String assessmentMetadataName, Context context); + SecurityAssessmentMetadataResponse getInSubscription(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. * * @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}. */ - void deleteInSubscription(String assessmentMetadataName); + Response deleteInSubscriptionWithResponse(String assessmentMetadataName, Context context); /** * 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 the {@link Response}. */ - Response deleteInSubscriptionWithResponse(String assessmentMetadataName, Context context); + void deleteInSubscription(String assessmentMetadataName); /** * Get metadata information on an assessment type in a specific subscription. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AtaExternalSecuritySolution.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AtaExternalSecuritySolution.java index 53285a0b07e4b..218d2ba95a851 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AtaExternalSecuritySolution.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AtaExternalSecuritySolution.java @@ -21,6 +21,10 @@ public final class AtaExternalSecuritySolution extends ExternalSecuritySolutionI @JsonProperty(value = "properties") private AtaSolutionProperties properties; + /** Creates an instance of AtaExternalSecuritySolution class. */ + public AtaExternalSecuritySolution() { + } + /** * Get the properties property: The external security solution properties for ATA solutions. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AtaSolutionProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AtaSolutionProperties.java index 118f268bc8d78..5167966f1d5d5 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AtaSolutionProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AtaSolutionProperties.java @@ -16,6 +16,10 @@ public final class AtaSolutionProperties extends ExternalSecuritySolutionPropert @JsonProperty(value = "lastEventReceived") private String lastEventReceived; + /** Creates an instance of AtaSolutionProperties class. */ + public AtaSolutionProperties() { + } + /** * Get the lastEventReceived property: The lastEventReceived property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AuthenticationDetailsProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AuthenticationDetailsProperties.java index 9dc848cbe13f9..71b7f498e5e93 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AuthenticationDetailsProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AuthenticationDetailsProperties.java @@ -37,6 +37,10 @@ public class AuthenticationDetailsProperties { @JsonProperty(value = "grantedPermissions", access = JsonProperty.Access.WRITE_ONLY) private List grantedPermissions; + /** Creates an instance of AuthenticationDetailsProperties class. */ + public AuthenticationDetailsProperties() { + } + /** * Get the authenticationProvisioningState property: State of the multi-cloud connector. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutoProvisioningSettingList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutoProvisioningSettingList.java index 063ceaebd0554..de263eefa9dd6 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutoProvisioningSettingList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutoProvisioningSettingList.java @@ -24,6 +24,10 @@ public final class AutoProvisioningSettingList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of AutoProvisioningSettingList class. */ + public AutoProvisioningSettingList() { + } + /** * Get the value property: List of all the auto provisioning settings. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutoProvisioningSettings.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutoProvisioningSettings.java index 79fe2d675b49d..2b050e6bc336e 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutoProvisioningSettings.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutoProvisioningSettings.java @@ -34,24 +34,24 @@ public interface AutoProvisioningSettings { * 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. + * @return auto provisioning setting along with {@link Response}. */ - AutoProvisioningSetting get(String settingName); + Response getWithResponse(String settingName, Context context); /** * Details of a specific setting. * * @param settingName Auto provisioning setting key. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return auto provisioning setting along with {@link Response}. + * @return auto provisioning setting. */ - Response getWithResponse(String settingName, Context context); + AutoProvisioningSetting get(String settingName); /** * Details of a specific setting. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Automation.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Automation.java index 9cd0e2e6916c3..b584f1a114a34 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Automation.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Automation.java @@ -372,23 +372,23 @@ interface WithActions { * client. * * @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. + * @return the security automation model state property bag along with {@link Response}. */ - AutomationValidationStatus validate(AutomationInner automation); + Response validateWithResponse(AutomationInner automation, Context context); /** * Validates the security automation model before create or update. Any validation errors are returned to the * client. * * @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}. + * @return the security automation model state property bag. */ - Response validateWithResponse(AutomationInner automation, Context context); + AutomationValidationStatus validate(AutomationInner automation); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationAction.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationAction.java index 21154ab244776..5aab572dca457 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationAction.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationAction.java @@ -23,6 +23,10 @@ }) @Immutable public class AutomationAction { + /** Creates an instance of AutomationAction class. */ + public AutomationAction() { + } + /** * Validates the instance. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationActionEventHub.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationActionEventHub.java index 04a895f940f0b..8d4a940480da5 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationActionEventHub.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationActionEventHub.java @@ -35,6 +35,10 @@ public final class AutomationActionEventHub extends AutomationAction { @JsonProperty(value = "connectionString") private String connectionString; + /** Creates an instance of AutomationActionEventHub class. */ + public AutomationActionEventHub() { + } + /** * Get the eventHubResourceId property: The target Event Hub Azure Resource ID. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationActionLogicApp.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationActionLogicApp.java index 246d12eb9ecda..38fe7c5d0598e 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationActionLogicApp.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationActionLogicApp.java @@ -30,6 +30,10 @@ public final class AutomationActionLogicApp extends AutomationAction { @JsonProperty(value = "uri") private String uri; + /** Creates an instance of AutomationActionLogicApp class. */ + public AutomationActionLogicApp() { + } + /** * Get the logicAppResourceId property: The triggered Logic App Azure Resource ID. This can also reside on other * subscriptions, given that you have permissions to trigger the Logic App. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationActionWorkspace.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationActionWorkspace.java index 63d2614d1e896..9fd967924bdfe 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationActionWorkspace.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationActionWorkspace.java @@ -26,6 +26,10 @@ public final class AutomationActionWorkspace extends AutomationAction { @JsonProperty(value = "workspaceResourceId") private String workspaceResourceId; + /** Creates an instance of AutomationActionWorkspace class. */ + public AutomationActionWorkspace() { + } + /** * Get the workspaceResourceId property: The fully qualified Log Analytics Workspace Azure Resource ID. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationList.java index 73fcc0f092194..4bc9fc3e432c4 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationList.java @@ -25,6 +25,10 @@ public final class AutomationList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of AutomationList class. */ + public AutomationList() { + } + /** * Get the value property: The list of security automations under the given scope. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationRuleSet.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationRuleSet.java index 9ff905dad7a98..eb1a7a25fcd6d 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationRuleSet.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationRuleSet.java @@ -20,6 +20,10 @@ public final class AutomationRuleSet { @JsonProperty(value = "rules") private List rules; + /** Creates an instance of AutomationRuleSet class. */ + public AutomationRuleSet() { + } + /** * Get the rules property: The rules property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationScope.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationScope.java index 00118c3c0f08e..b6797a2853f0f 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationScope.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationScope.java @@ -23,6 +23,10 @@ public final class AutomationScope { @JsonProperty(value = "scopePath") private String scopePath; + /** Creates an instance of AutomationScope class. */ + public AutomationScope() { + } + /** * Get the description property: The resources scope description. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationSource.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationSource.java index 5b796d884043f..7488319504ca2 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationSource.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationSource.java @@ -28,6 +28,10 @@ public final class AutomationSource { @JsonProperty(value = "ruleSets") private List ruleSets; + /** Creates an instance of AutomationSource class. */ + public AutomationSource() { + } + /** * Get the eventSource property: A valid event source type. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationTriggeringRule.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationTriggeringRule.java index 58c5d1ff7acc0..662e8158cfe2f 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationTriggeringRule.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AutomationTriggeringRule.java @@ -37,6 +37,10 @@ public final class AutomationTriggeringRule { @JsonProperty(value = "operator") private Operator operator; + /** Creates an instance of AutomationTriggeringRule class. */ + public AutomationTriggeringRule() { + } + /** * Get the propertyJPath property: The JPath of the entity model property that should be checked. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Automations.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Automations.java index 38918b9941a04..73b46db3ba19f 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Automations.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Automations.java @@ -66,12 +66,14 @@ public interface Automations { * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param automationName The security automation name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the security automation resource. + * @return the security automation resource along with {@link Response}. */ - Automation getByResourceGroup(String resourceGroupName, String automationName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String automationName, Context context); /** * Retrieves information about the model of a security automation. @@ -79,14 +81,12 @@ public interface Automations { * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param automationName The security automation name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the security automation resource along with {@link Response}. + * @return the security automation resource. */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String automationName, Context context); + Automation getByResourceGroup(String resourceGroupName, String automationName); /** * Deletes a security automation. @@ -94,11 +94,13 @@ Response getByResourceGroupWithResponse( * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param automationName The security automation name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void deleteByResourceGroup(String resourceGroupName, String automationName); + Response deleteByResourceGroupWithResponse(String resourceGroupName, String automationName, Context context); /** * Deletes a security automation. @@ -106,13 +108,11 @@ Response getByResourceGroupWithResponse( * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param automationName The security automation name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response deleteWithResponse(String resourceGroupName, String automationName, Context context); + void deleteByResourceGroup(String resourceGroupName, String automationName); /** * Validates the security automation model before create or update. Any validation errors are returned to the @@ -122,12 +122,14 @@ Response getByResourceGroupWithResponse( * 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. + * @return the security automation model state property bag along with {@link Response}. */ - AutomationValidationStatus validate(String resourceGroupName, String automationName, AutomationInner automation); + 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 @@ -137,14 +139,12 @@ Response getByResourceGroupWithResponse( * 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}. + * @return the security automation model state property bag. */ - Response validateWithResponse( - String resourceGroupName, String automationName, AutomationInner automation, Context context); + AutomationValidationStatus validate(String resourceGroupName, String automationName, AutomationInner automation); /** * Retrieves information about the model of a security automation. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwAssumeRoleAuthenticationDetailsProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwAssumeRoleAuthenticationDetailsProperties.java index d771357d9c2e3..636cbdb29fbb6 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwAssumeRoleAuthenticationDetailsProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwAssumeRoleAuthenticationDetailsProperties.java @@ -38,6 +38,10 @@ public final class AwAssumeRoleAuthenticationDetailsProperties extends Authentic @JsonProperty(value = "awsExternalId", required = true) private String awsExternalId; + /** Creates an instance of AwAssumeRoleAuthenticationDetailsProperties class. */ + public AwAssumeRoleAuthenticationDetailsProperties() { + } + /** * Get the accountId property: The ID of the cloud account. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwsCredsAuthenticationDetailsProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwsCredsAuthenticationDetailsProperties.java index 675d2de812d36..5cff776d8f7a0 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwsCredsAuthenticationDetailsProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwsCredsAuthenticationDetailsProperties.java @@ -37,6 +37,10 @@ public final class AwsCredsAuthenticationDetailsProperties extends Authenticatio @JsonProperty(value = "awsSecretAccessKey", required = true) private String awsSecretAccessKey; + /** Creates an instance of AwsCredsAuthenticationDetailsProperties class. */ + public AwsCredsAuthenticationDetailsProperties() { + } + /** * Get the accountId property: The ID of the cloud account. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwsEnvironmentData.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwsEnvironmentData.java index f34acdc14e917..a07591446a21c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwsEnvironmentData.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwsEnvironmentData.java @@ -20,6 +20,10 @@ public final class AwsEnvironmentData extends EnvironmentData { @JsonProperty(value = "organizationalData") private AwsOrganizationalData organizationalData; + /** Creates an instance of AwsEnvironmentData class. */ + public AwsEnvironmentData() { + } + /** * Get the organizationalData property: The AWS account's organizational data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwsOrganizationalData.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwsOrganizationalData.java index 7e00d3fa7b76e..21cb27804c137 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwsOrganizationalData.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwsOrganizationalData.java @@ -22,6 +22,10 @@ }) @Immutable public class AwsOrganizationalData { + /** Creates an instance of AwsOrganizationalData class. */ + public AwsOrganizationalData() { + } + /** * Validates the instance. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwsOrganizationalDataMaster.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwsOrganizationalDataMaster.java index 6f2a72b89f5e3..a70cfc52287f1 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwsOrganizationalDataMaster.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwsOrganizationalDataMaster.java @@ -27,6 +27,10 @@ public final class AwsOrganizationalDataMaster extends AwsOrganizationalData { @JsonProperty(value = "excludedAccountIds") private List excludedAccountIds; + /** Creates an instance of AwsOrganizationalDataMaster class. */ + public AwsOrganizationalDataMaster() { + } + /** * Get the stacksetName property: If the multi cloud account is of membership type organization, this will be the * name of the onboarding stackset. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwsOrganizationalDataMember.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwsOrganizationalDataMember.java index 3c58b17ec042c..de2ed6cfe3888 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwsOrganizationalDataMember.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwsOrganizationalDataMember.java @@ -20,6 +20,10 @@ public final class AwsOrganizationalDataMember extends AwsOrganizationalData { @JsonProperty(value = "parentHierarchyId") private String parentHierarchyId; + /** Creates an instance of AwsOrganizationalDataMember class. */ + public AwsOrganizationalDataMember() { + } + /** * Get the parentHierarchyId property: If the multi cloud account is not of membership type organization, this will * be the ID of the account's parent. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AzureDevOpsScopeEnvironmentData.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AzureDevOpsScopeEnvironmentData.java index 4cc6084a78f17..1f9e0d85d8461 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AzureDevOpsScopeEnvironmentData.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AzureDevOpsScopeEnvironmentData.java @@ -13,6 +13,10 @@ @JsonTypeName("AzureDevOpsScope") @Immutable public final class AzureDevOpsScopeEnvironmentData extends EnvironmentData { + /** Creates an instance of AzureDevOpsScopeEnvironmentData class. */ + public AzureDevOpsScopeEnvironmentData() { + } + /** * Validates the instance. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AzureResourceDetails.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AzureResourceDetails.java index e8b3f9f7106b5..93ae42309e0ef 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AzureResourceDetails.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AzureResourceDetails.java @@ -20,6 +20,10 @@ public final class AzureResourceDetails extends ResourceDetails { @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) private String id; + /** Creates an instance of AzureResourceDetails class. */ + public AzureResourceDetails() { + } + /** * Get the id property: Azure resource Id of the assessed resource. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AzureResourceIdentifier.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AzureResourceIdentifier.java index ded675e063b3b..71269931e0706 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AzureResourceIdentifier.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AzureResourceIdentifier.java @@ -20,6 +20,10 @@ public final class AzureResourceIdentifier extends ResourceIdentifier { @JsonProperty(value = "azureResourceId", access = JsonProperty.Access.WRITE_ONLY) private String azureResourceId; + /** Creates an instance of AzureResourceIdentifier class. */ + public AzureResourceIdentifier() { + } + /** * Get the azureResourceId property: ARM resource identifier for the cloud resource being alerted on. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AzureResourceLink.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AzureResourceLink.java index 28fb4595435e2..fb5c7218394af 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AzureResourceLink.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AzureResourceLink.java @@ -16,6 +16,10 @@ public final class AzureResourceLink { @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) private String id; + /** Creates an instance of AzureResourceLink class. */ + public AzureResourceLink() { + } + /** * Get the id property: Azure resource Id. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AzureTrackedResourceLocation.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AzureTrackedResourceLocation.java index b44a52f10613c..c48378441c4cc 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AzureTrackedResourceLocation.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AzureTrackedResourceLocation.java @@ -16,6 +16,10 @@ public class AzureTrackedResourceLocation { @JsonProperty(value = "location") private String location; + /** Creates an instance of AzureTrackedResourceLocation class. */ + public AzureTrackedResourceLocation() { + } + /** * Get the location property: Location where the resource is stored. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Baseline.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Baseline.java index 9aee28b838df0..99852d05bed64 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Baseline.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Baseline.java @@ -24,6 +24,10 @@ public final class Baseline { @JsonProperty(value = "updatedTime") private OffsetDateTime updatedTime; + /** Creates an instance of Baseline class. */ + public Baseline() { + } + /** * Get the expectedResults property: Expected results. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/BaselineAdjustedResult.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/BaselineAdjustedResult.java index 14ca13da54ac5..dfd5b9663173c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/BaselineAdjustedResult.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/BaselineAdjustedResult.java @@ -35,6 +35,10 @@ public final class BaselineAdjustedResult { @JsonProperty(value = "resultsOnlyInBaseline") private List> resultsOnlyInBaseline; + /** Creates an instance of BaselineAdjustedResult class. */ + public BaselineAdjustedResult() { + } + /** * Get the baseline property: Baseline details. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/BenchmarkReference.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/BenchmarkReference.java index 1cd0c1e29fac0..06dc061d3069e 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/BenchmarkReference.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/BenchmarkReference.java @@ -22,6 +22,10 @@ public final class BenchmarkReference { @JsonProperty(value = "reference") private String reference; + /** Creates an instance of BenchmarkReference class. */ + public BenchmarkReference() { + } + /** * Get the benchmark property: The benchmark name. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CefExternalSecuritySolution.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CefExternalSecuritySolution.java index 1d56236670fb2..7fd9efb1e94b8 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CefExternalSecuritySolution.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CefExternalSecuritySolution.java @@ -21,6 +21,10 @@ public final class CefExternalSecuritySolution extends ExternalSecuritySolutionI @JsonProperty(value = "properties") private CefSolutionProperties properties; + /** Creates an instance of CefExternalSecuritySolution class. */ + public CefExternalSecuritySolution() { + } + /** * Get the properties property: The external security solution properties for CEF solutions. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CefSolutionProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CefSolutionProperties.java index ee247fe529abc..aa7d3c3e7e1b2 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CefSolutionProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CefSolutionProperties.java @@ -28,6 +28,10 @@ public final class CefSolutionProperties extends ExternalSecuritySolutionPropert @JsonProperty(value = "lastEventReceived") private String lastEventReceived; + /** Creates an instance of CefSolutionProperties class. */ + public CefSolutionProperties() { + } + /** * Get the hostname property: The hostname property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CloudOffering.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CloudOffering.java index cdc2d424758af..8898d612405d8 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CloudOffering.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CloudOffering.java @@ -42,6 +42,10 @@ public class CloudOffering { @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY) private String description; + /** Creates an instance of CloudOffering class. */ + public CloudOffering() { + } + /** * Get the description property: The offering description. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ComplianceList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ComplianceList.java index 6b6870b90569b..c325572625cc5 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ComplianceList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ComplianceList.java @@ -24,6 +24,10 @@ public final class ComplianceList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of ComplianceList class. */ + public ComplianceList() { + } + /** * Get the value property: List of Compliance objects. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ComplianceResultList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ComplianceResultList.java index 9d2940d4ad420..53df27fd84992 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ComplianceResultList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ComplianceResultList.java @@ -25,6 +25,10 @@ public final class ComplianceResultList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of ComplianceResultList class. */ + public ComplianceResultList() { + } + /** * Get the value property: List of compliance results. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ComplianceResults.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ComplianceResults.java index b29b6bffdef5e..dfea3d0538114 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ComplianceResults.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ComplianceResults.java @@ -40,23 +40,23 @@ public interface ComplianceResults { * * @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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 a compliance result along with {@link Response}. */ - ComplianceResult get(String resourceId, String complianceResultName); + Response getWithResponse(String resourceId, String complianceResultName, Context context); /** * Security Compliance Result. * * @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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 a compliance result. */ - Response getWithResponse(String resourceId, String complianceResultName, Context context); + ComplianceResult get(String resourceId, String complianceResultName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ComplianceSegment.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ComplianceSegment.java index f70b8d8f6b708..92424ee5d4b5e 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ComplianceSegment.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ComplianceSegment.java @@ -22,6 +22,10 @@ public final class ComplianceSegment { @JsonProperty(value = "percentage", access = JsonProperty.Access.WRITE_ONLY) private Double percentage; + /** Creates an instance of ComplianceSegment class. */ + public ComplianceSegment() { + } + /** * Get the segmentType property: The segment type, e.g. compliant, non-compliance, insufficient coverage, N/A, etc. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Compliances.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Compliances.java index 133d6f403c385..3aed2c4ad78b1 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Compliances.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Compliances.java @@ -41,12 +41,13 @@ public interface Compliances { * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or * management group (/providers/Microsoft.Management/managementGroups/mgName). * @param complianceName name of the Compliance. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return compliance of a scope. + * @return compliance of a scope along with {@link Response}. */ - Compliance get(String scope, String complianceName); + Response getWithResponse(String scope, String complianceName, Context context); /** * Details of a specific Compliance. @@ -54,11 +55,10 @@ public interface Compliances { * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or * management group (/providers/Microsoft.Management/managementGroups/mgName). * @param complianceName name of the Compliance. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return compliance of a scope along with {@link Response}. + * @return compliance of a scope. */ - Response getWithResponse(String scope, String complianceName, Context context); + Compliance get(String scope, String complianceName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ConnectableResource.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ConnectableResource.java index 1ce46c3b69770..19acfd395a631 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ConnectableResource.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ConnectableResource.java @@ -29,6 +29,10 @@ public final class ConnectableResource { @JsonProperty(value = "outboundConnectedResources", access = JsonProperty.Access.WRITE_ONLY) private List outboundConnectedResources; + /** Creates an instance of ConnectableResource class. */ + public ConnectableResource() { + } + /** * Get the id property: The Azure resource id. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ConnectedResource.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ConnectedResource.java index a19dd2ba72351..222924164abd2 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ConnectedResource.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ConnectedResource.java @@ -28,6 +28,10 @@ public final class ConnectedResource { @JsonProperty(value = "udpPorts", access = JsonProperty.Access.WRITE_ONLY) private String udpPorts; + /** Creates an instance of ConnectedResource class. */ + public ConnectedResource() { + } + /** * Get the connectedResourceId property: The Azure resource id of the connected resource. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ConnectedWorkspace.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ConnectedWorkspace.java index 0780ea55a8e0d..34a0ad3b5ccf9 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ConnectedWorkspace.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ConnectedWorkspace.java @@ -16,6 +16,10 @@ public final class ConnectedWorkspace { @JsonProperty(value = "id") private String id; + /** Creates an instance of ConnectedWorkspace class. */ + public ConnectedWorkspace() { + } + /** * Get the id property: Azure resource ID of the connected OMS workspace. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ConnectionFromIpNotAllowed.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ConnectionFromIpNotAllowed.java index 4d50dcf4e9362..09db2166904f3 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ConnectionFromIpNotAllowed.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ConnectionFromIpNotAllowed.java @@ -14,6 +14,10 @@ @JsonTypeName("ConnectionFromIpNotAllowed") @Fluent public final class ConnectionFromIpNotAllowed extends AllowlistCustomAlertRule { + /** Creates an instance of ConnectionFromIpNotAllowed class. */ + public ConnectionFromIpNotAllowed() { + } + /** {@inheritDoc} */ @Override public ConnectionFromIpNotAllowed withAllowlistValues(List allowlistValues) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ConnectionToIpNotAllowed.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ConnectionToIpNotAllowed.java index 7d7dfd7784b03..59841c97d2d05 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ConnectionToIpNotAllowed.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ConnectionToIpNotAllowed.java @@ -14,6 +14,10 @@ @JsonTypeName("ConnectionToIpNotAllowed") @Fluent public final class ConnectionToIpNotAllowed extends AllowlistCustomAlertRule { + /** Creates an instance of ConnectionToIpNotAllowed class. */ + public ConnectionToIpNotAllowed() { + } + /** {@inheritDoc} */ @Override public ConnectionToIpNotAllowed withAllowlistValues(List allowlistValues) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ConnectorSettingList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ConnectorSettingList.java index f7e208992e353..f593b57393806 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ConnectorSettingList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ConnectorSettingList.java @@ -24,6 +24,10 @@ public final class ConnectorSettingList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of ConnectorSettingList class. */ + public ConnectorSettingList() { + } + /** * Get the value property: List of all the cloud account connector settings. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Connectors.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Connectors.java index 6e62702b0262f..0fbe5c0e8ca4b 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Connectors.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Connectors.java @@ -36,46 +36,46 @@ public interface Connectors { * Details of a specific cloud account connector. * * @param connectorName Name of the cloud account connector. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the connector setting. + * @return the connector setting along with {@link Response}. */ - ConnectorSetting get(String connectorName); + Response getWithResponse(String connectorName, Context context); /** * Details of a specific cloud account connector. * * @param connectorName Name of the cloud account connector. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the connector setting along with {@link Response}. + * @return the connector setting. */ - Response getWithResponse(String connectorName, Context context); + ConnectorSetting get(String connectorName); /** * Delete a cloud account connector from a subscription. * * @param connectorName Name of the cloud account connector. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void delete(String connectorName); + Response deleteWithResponse(String connectorName, Context context); /** * Delete a cloud account connector from a subscription. * * @param connectorName Name of the cloud account connector. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response deleteWithResponse(String connectorName, Context context); + void delete(String connectorName); /** * Details of a specific cloud account connector. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ContainerRegistryVulnerabilityProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ContainerRegistryVulnerabilityProperties.java index 36111f85c5787..490b6e85e689a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ContainerRegistryVulnerabilityProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ContainerRegistryVulnerabilityProperties.java @@ -67,6 +67,10 @@ public final class ContainerRegistryVulnerabilityProperties extends AdditionalDa @JsonProperty(value = "imageDigest", access = JsonProperty.Access.WRITE_ONLY) private String imageDigest; + /** Creates an instance of ContainerRegistryVulnerabilityProperties class. */ + public ContainerRegistryVulnerabilityProperties() { + } + /** * Get the type property: Vulnerability Type. e.g: Vulnerability, Potential Vulnerability, Information Gathered, * Vulnerability. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CspmMonitorAwsOffering.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CspmMonitorAwsOffering.java index 88b3dabc52396..3ead5e6e1dca6 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CspmMonitorAwsOffering.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CspmMonitorAwsOffering.java @@ -20,6 +20,10 @@ public final class CspmMonitorAwsOffering extends CloudOffering { @JsonProperty(value = "nativeCloudConnection") private CspmMonitorAwsOfferingNativeCloudConnection nativeCloudConnection; + /** Creates an instance of CspmMonitorAwsOffering class. */ + public CspmMonitorAwsOffering() { + } + /** * Get the nativeCloudConnection property: The native cloud connection configuration. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CspmMonitorAwsOfferingNativeCloudConnection.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CspmMonitorAwsOfferingNativeCloudConnection.java index 78ba159ece416..0c58266fdcb86 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CspmMonitorAwsOfferingNativeCloudConnection.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CspmMonitorAwsOfferingNativeCloudConnection.java @@ -16,6 +16,10 @@ public final class CspmMonitorAwsOfferingNativeCloudConnection { @JsonProperty(value = "cloudRoleArn") private String cloudRoleArn; + /** Creates an instance of CspmMonitorAwsOfferingNativeCloudConnection class. */ + public CspmMonitorAwsOfferingNativeCloudConnection() { + } + /** * Get the cloudRoleArn property: The cloud role ARN in AWS for this feature. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CspmMonitorAzureDevOpsOffering.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CspmMonitorAzureDevOpsOffering.java index afa048883b285..37effcc24def8 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CspmMonitorAzureDevOpsOffering.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CspmMonitorAzureDevOpsOffering.java @@ -13,6 +13,10 @@ @JsonTypeName("CspmMonitorAzureDevOps") @Immutable public final class CspmMonitorAzureDevOpsOffering extends CloudOffering { + /** Creates an instance of CspmMonitorAzureDevOpsOffering class. */ + public CspmMonitorAzureDevOpsOffering() { + } + /** * Validates the instance. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CspmMonitorGcpOffering.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CspmMonitorGcpOffering.java index 078ec8da14703..48f5c5f63a00b 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CspmMonitorGcpOffering.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CspmMonitorGcpOffering.java @@ -20,6 +20,10 @@ public final class CspmMonitorGcpOffering extends CloudOffering { @JsonProperty(value = "nativeCloudConnection") private CspmMonitorGcpOfferingNativeCloudConnection nativeCloudConnection; + /** Creates an instance of CspmMonitorGcpOffering class. */ + public CspmMonitorGcpOffering() { + } + /** * Get the nativeCloudConnection property: The native cloud connection configuration. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CspmMonitorGcpOfferingNativeCloudConnection.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CspmMonitorGcpOfferingNativeCloudConnection.java index f39947c25bc72..3b653d78726c7 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CspmMonitorGcpOfferingNativeCloudConnection.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CspmMonitorGcpOfferingNativeCloudConnection.java @@ -22,6 +22,10 @@ public final class CspmMonitorGcpOfferingNativeCloudConnection { @JsonProperty(value = "serviceAccountEmailAddress") private String serviceAccountEmailAddress; + /** Creates an instance of CspmMonitorGcpOfferingNativeCloudConnection class. */ + public CspmMonitorGcpOfferingNativeCloudConnection() { + } + /** * Get the workloadIdentityProviderId property: The GCP workload identity provider id for the offering. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CspmMonitorGithubOffering.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CspmMonitorGithubOffering.java index ace7782b51227..1039d0c712fdc 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CspmMonitorGithubOffering.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CspmMonitorGithubOffering.java @@ -13,6 +13,10 @@ @JsonTypeName("CspmMonitorGithub") @Immutable public final class CspmMonitorGithubOffering extends CloudOffering { + /** Creates an instance of CspmMonitorGithubOffering class. */ + public CspmMonitorGithubOffering() { + } + /** * Validates the instance. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomAlertRule.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomAlertRule.java index 75e093f2e58be..6b17e8b182ee6 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomAlertRule.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomAlertRule.java @@ -41,6 +41,10 @@ public class CustomAlertRule { @JsonProperty(value = "isEnabled", required = true) private boolean isEnabled; + /** Creates an instance of CustomAlertRule class. */ + public CustomAlertRule() { + } + /** * Get the displayName property: The display name of the custom alert. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomAssessmentAutomationRequest.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomAssessmentAutomationRequest.java index d3d3775d3b305..0c48f14f9c28b 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomAssessmentAutomationRequest.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomAssessmentAutomationRequest.java @@ -18,6 +18,10 @@ public final class CustomAssessmentAutomationRequest extends ProxyResource { @JsonProperty(value = "properties") private CustomAssessmentAutomationRequestProperties innerProperties; + /** Creates an instance of CustomAssessmentAutomationRequest class. */ + public CustomAssessmentAutomationRequest() { + } + /** * Get the innerProperties property: describes Custom Assessment Automation request properties. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomAssessmentAutomations.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomAssessmentAutomations.java index 18878966cb4da..5a3c288c946fd 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomAssessmentAutomations.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomAssessmentAutomations.java @@ -18,12 +18,15 @@ public interface CustomAssessmentAutomations { * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param customAssessmentAutomationName Name of the Custom Assessment Automation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a single custom assessment automation by name for the provided subscription and resource group. + * @return a single custom assessment automation by name for the provided subscription and resource group along with + * {@link Response}. */ - CustomAssessmentAutomation getByResourceGroup(String resourceGroupName, String customAssessmentAutomationName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String customAssessmentAutomationName, Context context); /** * Gets a custom assessment automation @@ -33,15 +36,12 @@ public interface CustomAssessmentAutomations { * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param customAssessmentAutomationName Name of the Custom Assessment Automation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a single custom assessment automation by name for the provided subscription and resource group along with - * {@link Response}. + * @return a single custom assessment automation by name for the provided subscription and resource group. */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String customAssessmentAutomationName, Context context); + CustomAssessmentAutomation getByResourceGroup(String resourceGroupName, String customAssessmentAutomationName); /** * Deletes a custom assessment automation @@ -51,11 +51,14 @@ Response getByResourceGroupWithResponse( * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param customAssessmentAutomationName Name of the Custom Assessment Automation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void deleteByResourceGroup(String resourceGroupName, String customAssessmentAutomationName); + Response deleteByResourceGroupWithResponse( + String resourceGroupName, String customAssessmentAutomationName, Context context); /** * Deletes a custom assessment automation @@ -65,13 +68,11 @@ Response getByResourceGroupWithResponse( * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param customAssessmentAutomationName Name of the Custom Assessment Automation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response deleteWithResponse(String resourceGroupName, String customAssessmentAutomationName, Context context); + void deleteByResourceGroup(String resourceGroupName, String customAssessmentAutomationName); /** * List custom assessment automations in a subscription and a resource group diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomAssessmentAutomationsListResult.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomAssessmentAutomationsListResult.java index 83bf3d1baebf1..12e9233976c19 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomAssessmentAutomationsListResult.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomAssessmentAutomationsListResult.java @@ -24,6 +24,10 @@ public final class CustomAssessmentAutomationsListResult { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of CustomAssessmentAutomationsListResult class. */ + public CustomAssessmentAutomationsListResult() { + } + /** * Get the value property: Collection of Custom Assessment Automations. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomEntityStoreAssignmentRequest.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomEntityStoreAssignmentRequest.java index 7d4422b17c38f..915238a0ec4a3 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomEntityStoreAssignmentRequest.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomEntityStoreAssignmentRequest.java @@ -17,6 +17,10 @@ public final class CustomEntityStoreAssignmentRequest { @JsonProperty(value = "properties") private CustomEntityStoreAssignmentRequestProperties innerProperties; + /** Creates an instance of CustomEntityStoreAssignmentRequest class. */ + public CustomEntityStoreAssignmentRequest() { + } + /** * Get the innerProperties property: describes properties of custom entity store assignment request. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomEntityStoreAssignments.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomEntityStoreAssignments.java index 2336051569983..6267ac669e8e0 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomEntityStoreAssignments.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomEntityStoreAssignments.java @@ -18,12 +18,15 @@ public interface CustomEntityStoreAssignments { * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a single custom entity store assignment by name for the provided subscription and resource group. + * @return a single custom entity store assignment by name for the provided subscription and resource group along + * with {@link Response}. */ - CustomEntityStoreAssignment getByResourceGroup(String resourceGroupName, String customEntityStoreAssignmentName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String customEntityStoreAssignmentName, Context context); /** * Gets a custom entity store assignment @@ -33,15 +36,12 @@ public interface CustomEntityStoreAssignments { * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a single custom entity store assignment by name for the provided subscription and resource group along - * with {@link Response}. + * @return a single custom entity store assignment by name for the provided subscription and resource group. */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String customEntityStoreAssignmentName, Context context); + CustomEntityStoreAssignment getByResourceGroup(String resourceGroupName, String customEntityStoreAssignmentName); /** * Deleted a custom entity store assignment @@ -51,11 +51,14 @@ Response getByResourceGroupWithResponse( * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void deleteByResourceGroup(String resourceGroupName, String customEntityStoreAssignmentName); + Response deleteByResourceGroupWithResponse( + String resourceGroupName, String customEntityStoreAssignmentName, Context context); /** * Deleted a custom entity store assignment @@ -65,14 +68,11 @@ Response getByResourceGroupWithResponse( * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response deleteWithResponse( - String resourceGroupName, String customEntityStoreAssignmentName, Context context); + void deleteByResourceGroup(String resourceGroupName, String customEntityStoreAssignmentName); /** * List custom entity store assignments in a subscription and a resource group diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomEntityStoreAssignmentsListResult.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomEntityStoreAssignmentsListResult.java index e9724bb6747e1..72fd9d924f5f2 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomEntityStoreAssignmentsListResult.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/CustomEntityStoreAssignmentsListResult.java @@ -24,6 +24,10 @@ public final class CustomEntityStoreAssignmentsListResult { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of CustomEntityStoreAssignmentsListResult class. */ + public CustomEntityStoreAssignmentsListResult() { + } + /** * Get the value property: Collection of custom entity store assignments. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Cve.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Cve.java index 3d8a3e0b00692..d7ce9a9681b1f 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Cve.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Cve.java @@ -22,6 +22,10 @@ public final class Cve { @JsonProperty(value = "link", access = JsonProperty.Access.WRITE_ONLY) private String link; + /** Creates an instance of Cve class. */ + public Cve() { + } + /** * Get the title property: CVE title. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Cvss.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Cvss.java index bfc7b872bdb35..2e1f3a22d5347 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Cvss.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Cvss.java @@ -16,6 +16,10 @@ public final class Cvss { @JsonProperty(value = "base", access = JsonProperty.Access.WRITE_ONLY) private Float base; + /** Creates an instance of Cvss class. */ + public Cvss() { + } + /** * Get the base property: CVSS base. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DataExportSettings.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DataExportSettings.java index e9cc1c0ba8911..ed4306d488793 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DataExportSettings.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DataExportSettings.java @@ -22,6 +22,10 @@ public final class DataExportSettings extends SettingInner { @JsonProperty(value = "properties") private DataExportSettingProperties innerProperties; + /** Creates an instance of DataExportSettings class. */ + public DataExportSettings() { + } + /** * Get the innerProperties property: Data export setting data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderCspmAwsOffering.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderCspmAwsOffering.java index 9aca5476cc535..a044f1dcc498c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderCspmAwsOffering.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderCspmAwsOffering.java @@ -20,6 +20,10 @@ public final class DefenderCspmAwsOffering extends CloudOffering { @JsonProperty(value = "vmScanners") private DefenderCspmAwsOfferingVmScanners vmScanners; + /** Creates an instance of DefenderCspmAwsOffering class. */ + public DefenderCspmAwsOffering() { + } + /** * Get the vmScanners property: The Microsoft Defender for Server VM scanning configuration. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderCspmAwsOfferingVmScanners.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderCspmAwsOfferingVmScanners.java index 921dacc3d521d..8854c0967acf4 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderCspmAwsOfferingVmScanners.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderCspmAwsOfferingVmScanners.java @@ -22,6 +22,10 @@ public final class DefenderCspmAwsOfferingVmScanners { @JsonProperty(value = "configuration") private DefenderCspmAwsOfferingVmScannersConfiguration configuration; + /** Creates an instance of DefenderCspmAwsOfferingVmScanners class. */ + public DefenderCspmAwsOfferingVmScanners() { + } + /** * Get the enabled property: Is Microsoft Defender for Server VM scanning enabled. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderCspmAwsOfferingVmScannersConfiguration.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderCspmAwsOfferingVmScannersConfiguration.java index 9e991230849ed..56d1856c6efb7 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderCspmAwsOfferingVmScannersConfiguration.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderCspmAwsOfferingVmScannersConfiguration.java @@ -31,6 +31,10 @@ public final class DefenderCspmAwsOfferingVmScannersConfiguration { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map exclusionTags; + /** Creates an instance of DefenderCspmAwsOfferingVmScannersConfiguration class. */ + public DefenderCspmAwsOfferingVmScannersConfiguration() { + } + /** * Get the cloudRoleArn property: The cloud role ARN in AWS for this feature. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderCspmGcpOffering.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderCspmGcpOffering.java index d31c1715ae359..cea6a0f8d95e1 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderCspmGcpOffering.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderCspmGcpOffering.java @@ -13,6 +13,10 @@ @JsonTypeName("DefenderCspmGcp") @Immutable public final class DefenderCspmGcpOffering extends CloudOffering { + /** Creates an instance of DefenderCspmGcpOffering class. */ + public DefenderCspmGcpOffering() { + } + /** * Validates the instance. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderFoDatabasesAwsOffering.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderFoDatabasesAwsOffering.java index d07c4334c56e1..bb9a22aac0c2a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderFoDatabasesAwsOffering.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderFoDatabasesAwsOffering.java @@ -26,6 +26,10 @@ public final class DefenderFoDatabasesAwsOffering extends CloudOffering { @JsonProperty(value = "rds") private DefenderFoDatabasesAwsOfferingRds rds; + /** Creates an instance of DefenderFoDatabasesAwsOffering class. */ + public DefenderFoDatabasesAwsOffering() { + } + /** * Get the arcAutoProvisioning property: The ARC autoprovisioning configuration. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderFoDatabasesAwsOfferingArcAutoProvisioning.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderFoDatabasesAwsOfferingArcAutoProvisioning.java index 93fd0e492746d..0b038370f4abd 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderFoDatabasesAwsOfferingArcAutoProvisioning.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderFoDatabasesAwsOfferingArcAutoProvisioning.java @@ -22,6 +22,10 @@ public final class DefenderFoDatabasesAwsOfferingArcAutoProvisioning { @JsonProperty(value = "cloudRoleArn") private String cloudRoleArn; + /** Creates an instance of DefenderFoDatabasesAwsOfferingArcAutoProvisioning class. */ + public DefenderFoDatabasesAwsOfferingArcAutoProvisioning() { + } + /** * Get the enabled property: Is arc auto provisioning enabled. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderFoDatabasesAwsOfferingRds.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderFoDatabasesAwsOfferingRds.java index 26b4b2c37449b..73c9f6277ef59 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderFoDatabasesAwsOfferingRds.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderFoDatabasesAwsOfferingRds.java @@ -22,6 +22,10 @@ public final class DefenderFoDatabasesAwsOfferingRds { @JsonProperty(value = "cloudRoleArn") private String cloudRoleArn; + /** Creates an instance of DefenderFoDatabasesAwsOfferingRds class. */ + public DefenderFoDatabasesAwsOfferingRds() { + } + /** * Get the enabled property: Is RDS protection enabled. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOffering.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOffering.java index 81a9dbbcebd4d..9877dfd1b9384 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOffering.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOffering.java @@ -74,6 +74,10 @@ public final class DefenderForContainersAwsOffering extends CloudOffering { @JsonProperty(value = "scubaExternalId") private String scubaExternalId; + /** Creates an instance of DefenderForContainersAwsOffering class. */ + public DefenderForContainersAwsOffering() { + } + /** * Get the kubernetesService property: The kubernetes service connection configuration. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOfferingCloudWatchToKinesis.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOfferingCloudWatchToKinesis.java index f5872ffee65d0..d27c5a0afc7bd 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOfferingCloudWatchToKinesis.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOfferingCloudWatchToKinesis.java @@ -16,6 +16,10 @@ public final class DefenderForContainersAwsOfferingCloudWatchToKinesis { @JsonProperty(value = "cloudRoleArn") private String cloudRoleArn; + /** Creates an instance of DefenderForContainersAwsOfferingCloudWatchToKinesis class. */ + public DefenderForContainersAwsOfferingCloudWatchToKinesis() { + } + /** * Get the cloudRoleArn property: The cloud role ARN in AWS used by CloudWatch to transfer data into Kinesis. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOfferingContainerVulnerabilityAssessment.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOfferingContainerVulnerabilityAssessment.java index 2ce66d7362252..a1348cee8522e 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOfferingContainerVulnerabilityAssessment.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOfferingContainerVulnerabilityAssessment.java @@ -16,6 +16,10 @@ public final class DefenderForContainersAwsOfferingContainerVulnerabilityAssessm @JsonProperty(value = "cloudRoleArn") private String cloudRoleArn; + /** Creates an instance of DefenderForContainersAwsOfferingContainerVulnerabilityAssessment class. */ + public DefenderForContainersAwsOfferingContainerVulnerabilityAssessment() { + } + /** * Get the cloudRoleArn property: The cloud role ARN in AWS for this feature. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask.java index c65f37fd8bf00..711d36db19c0a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask.java @@ -16,6 +16,10 @@ public final class DefenderForContainersAwsOfferingContainerVulnerabilityAssessm @JsonProperty(value = "cloudRoleArn") private String cloudRoleArn; + /** Creates an instance of DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask class. */ + public DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask() { + } + /** * Get the cloudRoleArn property: The cloud role ARN in AWS for this feature. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOfferingKinesisToS3.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOfferingKinesisToS3.java index 94555f47da576..1dc228f61ddf5 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOfferingKinesisToS3.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOfferingKinesisToS3.java @@ -16,6 +16,10 @@ public final class DefenderForContainersAwsOfferingKinesisToS3 { @JsonProperty(value = "cloudRoleArn") private String cloudRoleArn; + /** Creates an instance of DefenderForContainersAwsOfferingKinesisToS3 class. */ + public DefenderForContainersAwsOfferingKinesisToS3() { + } + /** * Get the cloudRoleArn property: The cloud role ARN in AWS used by Kinesis to transfer data into S3. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOfferingKubernetesScubaReader.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOfferingKubernetesScubaReader.java index 6bc0751540e38..13533efccb8ff 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOfferingKubernetesScubaReader.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOfferingKubernetesScubaReader.java @@ -16,6 +16,10 @@ public final class DefenderForContainersAwsOfferingKubernetesScubaReader { @JsonProperty(value = "cloudRoleArn") private String cloudRoleArn; + /** Creates an instance of DefenderForContainersAwsOfferingKubernetesScubaReader class. */ + public DefenderForContainersAwsOfferingKubernetesScubaReader() { + } + /** * Get the cloudRoleArn property: The cloud role ARN in AWS for this feature used for reading data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOfferingKubernetesService.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOfferingKubernetesService.java index 9e9608554d990..391c18cb98e0e 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOfferingKubernetesService.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersAwsOfferingKubernetesService.java @@ -16,6 +16,10 @@ public final class DefenderForContainersAwsOfferingKubernetesService { @JsonProperty(value = "cloudRoleArn") private String cloudRoleArn; + /** Creates an instance of DefenderForContainersAwsOfferingKubernetesService class. */ + public DefenderForContainersAwsOfferingKubernetesService() { + } + /** * Get the cloudRoleArn property: The cloud role ARN in AWS for this feature used for provisioning resources. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersGcpOffering.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersGcpOffering.java index 8cb928be53dcc..4f6379839b469 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersGcpOffering.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersGcpOffering.java @@ -44,6 +44,10 @@ public final class DefenderForContainersGcpOffering extends CloudOffering { @JsonProperty(value = "policyAgentAutoProvisioningFlag") private Boolean policyAgentAutoProvisioningFlag; + /** Creates an instance of DefenderForContainersGcpOffering class. */ + public DefenderForContainersGcpOffering() { + } + /** * Get the nativeCloudConnection property: The native cloud connection configuration. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection.java index e94baa5af9635..263ea9aa2cc4a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection.java @@ -22,6 +22,10 @@ public final class DefenderForContainersGcpOfferingDataPipelineNativeCloudConnec @JsonProperty(value = "workloadIdentityProviderId") private String workloadIdentityProviderId; + /** Creates an instance of DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection class. */ + public DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection() { + } + /** * Get the serviceAccountEmailAddress property: The data collection service account email address in GCP for this * offering. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersGcpOfferingNativeCloudConnection.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersGcpOfferingNativeCloudConnection.java index eb2ff97e2743d..bc0088a59a9d4 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersGcpOfferingNativeCloudConnection.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForContainersGcpOfferingNativeCloudConnection.java @@ -22,6 +22,10 @@ public final class DefenderForContainersGcpOfferingNativeCloudConnection { @JsonProperty(value = "workloadIdentityProviderId") private String workloadIdentityProviderId; + /** Creates an instance of DefenderForContainersGcpOfferingNativeCloudConnection class. */ + public DefenderForContainersGcpOfferingNativeCloudConnection() { + } + /** * Get the serviceAccountEmailAddress property: The service account email address in GCP for this offering. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForDatabasesGcpOffering.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForDatabasesGcpOffering.java index bc4e8c2286ba5..0dc9a2ad7509e 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForDatabasesGcpOffering.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForDatabasesGcpOffering.java @@ -27,6 +27,10 @@ public final class DefenderForDatabasesGcpOffering extends CloudOffering { private DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning defenderForDatabasesArcAutoProvisioning; + /** Creates an instance of DefenderForDatabasesGcpOffering class. */ + public DefenderForDatabasesGcpOffering() { + } + /** * Get the arcAutoProvisioning property: The ARC autoprovisioning configuration. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForDatabasesGcpOfferingArcAutoProvisioning.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForDatabasesGcpOfferingArcAutoProvisioning.java index 5d52d39040de2..6217e826a9c6c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForDatabasesGcpOfferingArcAutoProvisioning.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForDatabasesGcpOfferingArcAutoProvisioning.java @@ -16,6 +16,10 @@ public final class DefenderForDatabasesGcpOfferingArcAutoProvisioning { @JsonProperty(value = "enabled") private Boolean enabled; + /** Creates an instance of DefenderForDatabasesGcpOfferingArcAutoProvisioning class. */ + public DefenderForDatabasesGcpOfferingArcAutoProvisioning() { + } + /** * Get the enabled property: Is arc auto provisioning enabled. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning.java index 3a7a7501b1225..552d3f4dd765a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning.java @@ -22,6 +22,10 @@ public final class DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoPro @JsonProperty(value = "workloadIdentityProviderId") private String workloadIdentityProviderId; + /** Creates an instance of DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning class. */ + public DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning() { + } + /** * Get the serviceAccountEmailAddress property: The service account email address in GCP for this offering. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForDevOpsAzureDevOpsOffering.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForDevOpsAzureDevOpsOffering.java index b0eef6319bb25..841f547633802 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForDevOpsAzureDevOpsOffering.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForDevOpsAzureDevOpsOffering.java @@ -13,6 +13,10 @@ @JsonTypeName("DefenderForDevOpsAzureDevOps") @Immutable public final class DefenderForDevOpsAzureDevOpsOffering extends CloudOffering { + /** Creates an instance of DefenderForDevOpsAzureDevOpsOffering class. */ + public DefenderForDevOpsAzureDevOpsOffering() { + } + /** * Validates the instance. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForDevOpsGithubOffering.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForDevOpsGithubOffering.java index 6056436f11087..22df7340c130b 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForDevOpsGithubOffering.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForDevOpsGithubOffering.java @@ -13,6 +13,10 @@ @JsonTypeName("DefenderForDevOpsGithub") @Immutable public final class DefenderForDevOpsGithubOffering extends CloudOffering { + /** Creates an instance of DefenderForDevOpsGithubOffering class. */ + public DefenderForDevOpsGithubOffering() { + } + /** * Validates the instance. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOffering.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOffering.java index 941dd691b5cf5..e261069b5d20c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOffering.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOffering.java @@ -50,6 +50,10 @@ public final class DefenderForServersAwsOffering extends CloudOffering { @JsonProperty(value = "vmScanners") private DefenderForServersAwsOfferingVmScanners vmScanners; + /** Creates an instance of DefenderForServersAwsOffering class. */ + public DefenderForServersAwsOffering() { + } + /** * Get the defenderForServers property: The Defender for servers connection configuration. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingArcAutoProvisioning.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingArcAutoProvisioning.java index 534f2942bb3b3..f78f734deddab 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingArcAutoProvisioning.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingArcAutoProvisioning.java @@ -22,6 +22,10 @@ public final class DefenderForServersAwsOfferingArcAutoProvisioning { @JsonProperty(value = "cloudRoleArn") private String cloudRoleArn; + /** Creates an instance of DefenderForServersAwsOfferingArcAutoProvisioning class. */ + public DefenderForServersAwsOfferingArcAutoProvisioning() { + } + /** * Get the enabled property: Is arc auto provisioning enabled. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingDefenderForServers.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingDefenderForServers.java index 68bf02f979a2a..aa05784fa66b1 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingDefenderForServers.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingDefenderForServers.java @@ -16,6 +16,10 @@ public final class DefenderForServersAwsOfferingDefenderForServers { @JsonProperty(value = "cloudRoleArn") private String cloudRoleArn; + /** Creates an instance of DefenderForServersAwsOfferingDefenderForServers class. */ + public DefenderForServersAwsOfferingDefenderForServers() { + } + /** * Get the cloudRoleArn property: The cloud role ARN in AWS for this feature. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingMdeAutoProvisioning.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingMdeAutoProvisioning.java index df4486fb3b75f..0bef82c51ccb0 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingMdeAutoProvisioning.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingMdeAutoProvisioning.java @@ -22,6 +22,10 @@ public final class DefenderForServersAwsOfferingMdeAutoProvisioning { @JsonProperty(value = "configuration") private Object configuration; + /** Creates an instance of DefenderForServersAwsOfferingMdeAutoProvisioning class. */ + public DefenderForServersAwsOfferingMdeAutoProvisioning() { + } + /** * Get the enabled property: Is Microsoft Defender for Endpoint auto provisioning enabled. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingSubPlan.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingSubPlan.java index 1ff96452b6eaf..b9f80ce25dca0 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingSubPlan.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingSubPlan.java @@ -16,6 +16,10 @@ public final class DefenderForServersAwsOfferingSubPlan { @JsonProperty(value = "type") private SubPlan type; + /** Creates an instance of DefenderForServersAwsOfferingSubPlan class. */ + public DefenderForServersAwsOfferingSubPlan() { + } + /** * Get the type property: The available sub plans. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingVaAutoProvisioning.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingVaAutoProvisioning.java index 255292d2ded28..ec83a52f46eba 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingVaAutoProvisioning.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingVaAutoProvisioning.java @@ -22,6 +22,10 @@ public final class DefenderForServersAwsOfferingVaAutoProvisioning { @JsonProperty(value = "configuration") private DefenderForServersAwsOfferingVaAutoProvisioningConfiguration configuration; + /** Creates an instance of DefenderForServersAwsOfferingVaAutoProvisioning class. */ + public DefenderForServersAwsOfferingVaAutoProvisioning() { + } + /** * Get the enabled property: Is Vulnerability Assessment auto provisioning enabled. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingVaAutoProvisioningConfiguration.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingVaAutoProvisioningConfiguration.java index 9c6377212e128..1afa0a454e4cd 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingVaAutoProvisioningConfiguration.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingVaAutoProvisioningConfiguration.java @@ -16,6 +16,10 @@ public final class DefenderForServersAwsOfferingVaAutoProvisioningConfiguration @JsonProperty(value = "type") private Type type; + /** Creates an instance of DefenderForServersAwsOfferingVaAutoProvisioningConfiguration class. */ + public DefenderForServersAwsOfferingVaAutoProvisioningConfiguration() { + } + /** * Get the type property: The Vulnerability Assessment solution to be provisioned. Can be either 'TVM' or 'Qualys'. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingVmScanners.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingVmScanners.java index 054e93ff3eead..bc3612691f4e9 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingVmScanners.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingVmScanners.java @@ -22,6 +22,10 @@ public final class DefenderForServersAwsOfferingVmScanners { @JsonProperty(value = "configuration") private DefenderForServersAwsOfferingVmScannersConfiguration configuration; + /** Creates an instance of DefenderForServersAwsOfferingVmScanners class. */ + public DefenderForServersAwsOfferingVmScanners() { + } + /** * Get the enabled property: Is Microsoft Defender for Server VM scanning enabled. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingVmScannersConfiguration.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingVmScannersConfiguration.java index 4eb175933636e..b864cb7a0392f 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingVmScannersConfiguration.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersAwsOfferingVmScannersConfiguration.java @@ -31,6 +31,10 @@ public final class DefenderForServersAwsOfferingVmScannersConfiguration { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map exclusionTags; + /** Creates an instance of DefenderForServersAwsOfferingVmScannersConfiguration class. */ + public DefenderForServersAwsOfferingVmScannersConfiguration() { + } + /** * Get the cloudRoleArn property: The cloud role ARN in AWS for this feature. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOffering.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOffering.java index 24b26bcf1fe5c..058b4a0bab36a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOffering.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOffering.java @@ -44,6 +44,10 @@ public final class DefenderForServersGcpOffering extends CloudOffering { @JsonProperty(value = "subPlan") private DefenderForServersGcpOfferingSubPlan subPlan; + /** Creates an instance of DefenderForServersGcpOffering class. */ + public DefenderForServersGcpOffering() { + } + /** * Get the defenderForServers property: The Defender for servers connection configuration. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOfferingArcAutoProvisioning.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOfferingArcAutoProvisioning.java index 13c3d8d73887e..79452d71a581e 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOfferingArcAutoProvisioning.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOfferingArcAutoProvisioning.java @@ -16,6 +16,10 @@ public final class DefenderForServersGcpOfferingArcAutoProvisioning { @JsonProperty(value = "enabled") private Boolean enabled; + /** Creates an instance of DefenderForServersGcpOfferingArcAutoProvisioning class. */ + public DefenderForServersGcpOfferingArcAutoProvisioning() { + } + /** * Get the enabled property: Is arc auto provisioning enabled. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOfferingDefenderForServers.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOfferingDefenderForServers.java index b4a9d6f26b6f8..1533e9171d673 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOfferingDefenderForServers.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOfferingDefenderForServers.java @@ -22,6 +22,10 @@ public final class DefenderForServersGcpOfferingDefenderForServers { @JsonProperty(value = "serviceAccountEmailAddress") private String serviceAccountEmailAddress; + /** Creates an instance of DefenderForServersGcpOfferingDefenderForServers class. */ + public DefenderForServersGcpOfferingDefenderForServers() { + } + /** * Get the workloadIdentityProviderId property: The workload identity provider id in GCP for this feature. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOfferingMdeAutoProvisioning.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOfferingMdeAutoProvisioning.java index d56d5e6d8777d..51bb244074163 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOfferingMdeAutoProvisioning.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOfferingMdeAutoProvisioning.java @@ -22,6 +22,10 @@ public final class DefenderForServersGcpOfferingMdeAutoProvisioning { @JsonProperty(value = "configuration") private Object configuration; + /** Creates an instance of DefenderForServersGcpOfferingMdeAutoProvisioning class. */ + public DefenderForServersGcpOfferingMdeAutoProvisioning() { + } + /** * Get the enabled property: Is Microsoft Defender for Endpoint auto provisioning enabled. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOfferingSubPlan.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOfferingSubPlan.java index a880625176fdf..22ba934ffb525 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOfferingSubPlan.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOfferingSubPlan.java @@ -16,6 +16,10 @@ public final class DefenderForServersGcpOfferingSubPlan { @JsonProperty(value = "type") private SubPlan type; + /** Creates an instance of DefenderForServersGcpOfferingSubPlan class. */ + public DefenderForServersGcpOfferingSubPlan() { + } + /** * Get the type property: The available sub plans. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOfferingVaAutoProvisioning.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOfferingVaAutoProvisioning.java index c3ca5d2695964..f6b41f749fd8c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOfferingVaAutoProvisioning.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOfferingVaAutoProvisioning.java @@ -22,6 +22,10 @@ public final class DefenderForServersGcpOfferingVaAutoProvisioning { @JsonProperty(value = "configuration") private DefenderForServersGcpOfferingVaAutoProvisioningConfiguration configuration; + /** Creates an instance of DefenderForServersGcpOfferingVaAutoProvisioning class. */ + public DefenderForServersGcpOfferingVaAutoProvisioning() { + } + /** * Get the enabled property: Is Vulnerability Assessment auto provisioning enabled. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOfferingVaAutoProvisioningConfiguration.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOfferingVaAutoProvisioningConfiguration.java index b7a7bbca06e09..4c51b2de77486 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOfferingVaAutoProvisioningConfiguration.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DefenderForServersGcpOfferingVaAutoProvisioningConfiguration.java @@ -16,6 +16,10 @@ public final class DefenderForServersGcpOfferingVaAutoProvisioningConfiguration @JsonProperty(value = "type") private Type type; + /** Creates an instance of DefenderForServersGcpOfferingVaAutoProvisioningConfiguration class. */ + public DefenderForServersGcpOfferingVaAutoProvisioningConfiguration() { + } + /** * Get the type property: The Vulnerability Assessment solution to be provisioned. Can be either 'TVM' or 'Qualys'. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DenylistCustomAlertRule.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DenylistCustomAlertRule.java index 0c997fef83c26..184d7b23a1f56 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DenylistCustomAlertRule.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DenylistCustomAlertRule.java @@ -22,6 +22,10 @@ public final class DenylistCustomAlertRule extends ListCustomAlertRule { @JsonProperty(value = "denylistValues", required = true) private List denylistValues; + /** Creates an instance of DenylistCustomAlertRule class. */ + public DenylistCustomAlertRule() { + } + /** * Get the denylistValues property: The values to deny. The format of the values depends on the rule type. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DeviceSecurityGroupList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DeviceSecurityGroupList.java index 44e7f7b4510cf..037c1991ff6e3 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DeviceSecurityGroupList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DeviceSecurityGroupList.java @@ -24,6 +24,10 @@ public final class DeviceSecurityGroupList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of DeviceSecurityGroupList class. */ + public DeviceSecurityGroupList() { + } + /** * Get the value property: List of device security group objects. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DeviceSecurityGroups.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DeviceSecurityGroups.java index 6c39d44dd65e8..83cc69b063b73 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DeviceSecurityGroups.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DeviceSecurityGroups.java @@ -39,12 +39,13 @@ public interface DeviceSecurityGroups { * @param resourceId The 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 device security group resource. + * @return the device security group resource along with {@link Response}. */ - DeviceSecurityGroup get(String resourceId, String deviceSecurityGroupName); + Response getWithResponse(String resourceId, String deviceSecurityGroupName, Context context); /** * Use this method to get the device security group for the specified IoT Hub resource. @@ -52,13 +53,12 @@ public interface DeviceSecurityGroups { * @param resourceId The 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 device security group resource along with {@link Response}. + * @return the device security group resource. */ - Response getWithResponse(String resourceId, String deviceSecurityGroupName, Context context); + DeviceSecurityGroup get(String resourceId, String deviceSecurityGroupName); /** * User this method to deletes the device security group. @@ -66,11 +66,14 @@ public interface DeviceSecurityGroups { * @param resourceId The 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. */ - void deleteByResourceGroup(String resourceId, String deviceSecurityGroupName); + Response deleteByResourceGroupWithResponse( + String resourceId, String deviceSecurityGroupName, Context context); /** * User this method to deletes the device security group. @@ -78,13 +81,11 @@ public interface DeviceSecurityGroups { * @param resourceId The 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. */ - Response deleteWithResponse(String resourceId, String deviceSecurityGroupName, Context context); + void deleteByResourceGroup(String resourceId, String deviceSecurityGroupName); /** * Use this method to get the device security group for the specified IoT Hub resource. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DirectMethodInvokesNotInAllowedRange.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DirectMethodInvokesNotInAllowedRange.java index 2efe1632d2431..2a932e08c998c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DirectMethodInvokesNotInAllowedRange.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DirectMethodInvokesNotInAllowedRange.java @@ -14,6 +14,10 @@ @JsonTypeName("DirectMethodInvokesNotInAllowedRange") @Fluent public final class DirectMethodInvokesNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Creates an instance of DirectMethodInvokesNotInAllowedRange class. */ + public DirectMethodInvokesNotInAllowedRange() { + } + /** {@inheritDoc} */ @Override public DirectMethodInvokesNotInAllowedRange withTimeWindowSize(Duration timeWindowSize) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DiscoveredSecuritySolutionList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DiscoveredSecuritySolutionList.java index 05193ce79abb8..b20c1a5413ad9 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DiscoveredSecuritySolutionList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DiscoveredSecuritySolutionList.java @@ -24,6 +24,10 @@ public final class DiscoveredSecuritySolutionList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of DiscoveredSecuritySolutionList class. */ + public DiscoveredSecuritySolutionList() { + } + /** * Get the value property: The value property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DiscoveredSecuritySolutions.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DiscoveredSecuritySolutions.java index fdf42210816ca..0dec60d24da01 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DiscoveredSecuritySolutions.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/DiscoveredSecuritySolutions.java @@ -67,12 +67,14 @@ public interface DiscoveredSecuritySolutions { * @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 specific discovered Security Solution along with {@link Response}. */ - DiscoveredSecuritySolution get(String resourceGroupName, String ascLocation, String discoveredSecuritySolutionName); + Response getWithResponse( + String resourceGroupName, String ascLocation, String discoveredSecuritySolutionName, Context context); /** * Gets a specific discovered Security Solution. @@ -82,12 +84,10 @@ public interface DiscoveredSecuritySolutions { * @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 specific discovered Security Solution. */ - Response getWithResponse( - String resourceGroupName, String ascLocation, String discoveredSecuritySolutionName, Context context); + DiscoveredSecuritySolution get(String resourceGroupName, String ascLocation, String discoveredSecuritySolutionName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/EffectiveNetworkSecurityGroups.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/EffectiveNetworkSecurityGroups.java index 111fca450d411..de51e989459e7 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/EffectiveNetworkSecurityGroups.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/EffectiveNetworkSecurityGroups.java @@ -23,6 +23,10 @@ public final class EffectiveNetworkSecurityGroups { @JsonProperty(value = "networkSecurityGroups") private List networkSecurityGroups; + /** Creates an instance of EffectiveNetworkSecurityGroups class. */ + public EffectiveNetworkSecurityGroups() { + } + /** * Get the networkInterface property: The Azure resource ID of the network interface. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/EnvironmentData.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/EnvironmentData.java index c02fd42d0919d..ce839b5a9e245 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/EnvironmentData.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/EnvironmentData.java @@ -24,6 +24,10 @@ }) @Immutable public class EnvironmentData { + /** Creates an instance of EnvironmentData class. */ + public EnvironmentData() { + } + /** * Validates the instance. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Etag.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Etag.java index a521743076c16..0e0178c4057fc 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Etag.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Etag.java @@ -16,6 +16,10 @@ public class Etag { @JsonProperty(value = "etag") private String etag; + /** Creates an instance of Etag class. */ + public Etag() { + } + /** * Get the etag property: Entity tag is used for comparing two or more entities from the same requested resource. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ExecuteGovernanceRuleParams.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ExecuteGovernanceRuleParams.java index 67c1270eed77a..985f61f947582 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ExecuteGovernanceRuleParams.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ExecuteGovernanceRuleParams.java @@ -16,6 +16,10 @@ public final class ExecuteGovernanceRuleParams { @JsonProperty(value = "override") private Boolean override; + /** Creates an instance of ExecuteGovernanceRuleParams class. */ + public ExecuteGovernanceRuleParams() { + } + /** * Get the override property: Describe if governance rule should be override. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ExternalSecuritySolutionList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ExternalSecuritySolutionList.java index be4c616495a2e..8afc46f34ad08 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ExternalSecuritySolutionList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ExternalSecuritySolutionList.java @@ -24,6 +24,10 @@ public final class ExternalSecuritySolutionList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of ExternalSecuritySolutionList class. */ + public ExternalSecuritySolutionList() { + } + /** * Get the value property: The value property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ExternalSecuritySolutionProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ExternalSecuritySolutionProperties.java index 40fe827714cf5..83ad48819fe28 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ExternalSecuritySolutionProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ExternalSecuritySolutionProperties.java @@ -38,6 +38,10 @@ public class ExternalSecuritySolutionProperties { */ @JsonIgnore private Map additionalProperties; + /** Creates an instance of ExternalSecuritySolutionProperties class. */ + public ExternalSecuritySolutionProperties() { + } + /** * Get the deviceVendor property: The deviceVendor property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ExternalSecuritySolutions.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ExternalSecuritySolutions.java index fddee35248fb1..60dc430b9b7fb 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ExternalSecuritySolutions.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ExternalSecuritySolutions.java @@ -67,12 +67,14 @@ public interface ExternalSecuritySolutions { * @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 specific external Security Solution along with {@link Response}. */ - ExternalSecuritySolution get(String resourceGroupName, String ascLocation, String externalSecuritySolutionsName); + Response getWithResponse( + String resourceGroupName, String ascLocation, String externalSecuritySolutionsName, Context context); /** * Gets a specific external Security Solution. @@ -82,12 +84,10 @@ public interface ExternalSecuritySolutions { * @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 specific external Security Solution. */ - Response getWithResponse( - String resourceGroupName, String ascLocation, String externalSecuritySolutionsName, Context context); + ExternalSecuritySolution get(String resourceGroupName, String ascLocation, String externalSecuritySolutionsName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/FailedLocalLoginsNotInAllowedRange.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/FailedLocalLoginsNotInAllowedRange.java index 0afbea2274100..47e4200079025 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/FailedLocalLoginsNotInAllowedRange.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/FailedLocalLoginsNotInAllowedRange.java @@ -14,6 +14,10 @@ @JsonTypeName("FailedLocalLoginsNotInAllowedRange") @Fluent public final class FailedLocalLoginsNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Creates an instance of FailedLocalLoginsNotInAllowedRange class. */ + public FailedLocalLoginsNotInAllowedRange() { + } + /** {@inheritDoc} */ @Override public FailedLocalLoginsNotInAllowedRange withTimeWindowSize(Duration timeWindowSize) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/FileUploadsNotInAllowedRange.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/FileUploadsNotInAllowedRange.java index c3742b06d8a31..69f8cf762e203 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/FileUploadsNotInAllowedRange.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/FileUploadsNotInAllowedRange.java @@ -14,6 +14,10 @@ @JsonTypeName("FileUploadsNotInAllowedRange") @Fluent public final class FileUploadsNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Creates an instance of FileUploadsNotInAllowedRange class. */ + public FileUploadsNotInAllowedRange() { + } + /** {@inheritDoc} */ @Override public FileUploadsNotInAllowedRange withTimeWindowSize(Duration timeWindowSize) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GcpCredentialsDetailsProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GcpCredentialsDetailsProperties.java index a36d86e000018..ee933d133b168 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GcpCredentialsDetailsProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GcpCredentialsDetailsProperties.java @@ -84,6 +84,10 @@ public final class GcpCredentialsDetailsProperties extends AuthenticationDetails @JsonProperty(value = "clientX509CertUrl", required = true) private String clientX509CertUrl; + /** Creates an instance of GcpCredentialsDetailsProperties class. */ + public GcpCredentialsDetailsProperties() { + } + /** * Get the organizationId property: The organization ID of the GCP cloud account. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GcpOrganizationalData.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GcpOrganizationalData.java index b2a3219c52efd..4dabcf13f8202 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GcpOrganizationalData.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GcpOrganizationalData.java @@ -22,6 +22,10 @@ }) @Immutable public class GcpOrganizationalData { + /** Creates an instance of GcpOrganizationalData class. */ + public GcpOrganizationalData() { + } + /** * Validates the instance. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GcpOrganizationalDataMember.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GcpOrganizationalDataMember.java index aa360581d467d..7fda4d5a6317f 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GcpOrganizationalDataMember.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GcpOrganizationalDataMember.java @@ -26,6 +26,10 @@ public final class GcpOrganizationalDataMember extends GcpOrganizationalData { @JsonProperty(value = "managementProjectNumber") private String managementProjectNumber; + /** Creates an instance of GcpOrganizationalDataMember class. */ + public GcpOrganizationalDataMember() { + } + /** * Get the parentHierarchyId property: If the multi cloud account is not of membership type organization, this will * be the ID of the project's parent. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GcpOrganizationalDataOrganization.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GcpOrganizationalDataOrganization.java index bf71961cfdabb..f318643fba893 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GcpOrganizationalDataOrganization.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GcpOrganizationalDataOrganization.java @@ -34,6 +34,10 @@ public final class GcpOrganizationalDataOrganization extends GcpOrganizationalDa @JsonProperty(value = "workloadIdentityProviderId") private String workloadIdentityProviderId; + /** Creates an instance of GcpOrganizationalDataOrganization class. */ + public GcpOrganizationalDataOrganization() { + } + /** * Get the excludedProjectNumbers property: If the multi cloud account is of membership type organization, list of * accounts excluded from offering. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GcpProjectDetails.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GcpProjectDetails.java index bb5f89b64d597..5fea623f6d41b 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GcpProjectDetails.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GcpProjectDetails.java @@ -28,6 +28,10 @@ public final class GcpProjectDetails { @JsonProperty(value = "workloadIdentityPoolId", access = JsonProperty.Access.WRITE_ONLY) private String workloadIdentityPoolId; + /** Creates an instance of GcpProjectDetails class. */ + public GcpProjectDetails() { + } + /** * Get the projectNumber property: The unique GCP Project number. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GcpProjectEnvironmentData.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GcpProjectEnvironmentData.java index 491824c941165..68697c94c1f44 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GcpProjectEnvironmentData.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GcpProjectEnvironmentData.java @@ -26,6 +26,10 @@ public final class GcpProjectEnvironmentData extends EnvironmentData { @JsonProperty(value = "projectDetails") private GcpProjectDetails projectDetails; + /** Creates an instance of GcpProjectEnvironmentData class. */ + public GcpProjectEnvironmentData() { + } + /** * Get the organizationalData property: The Gcp project's organizational data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GithubScopeEnvironmentData.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GithubScopeEnvironmentData.java index 3f623013405e0..15bdf9ab57fff 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GithubScopeEnvironmentData.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GithubScopeEnvironmentData.java @@ -13,6 +13,10 @@ @JsonTypeName("GithubScope") @Immutable public final class GithubScopeEnvironmentData extends EnvironmentData { + /** Creates an instance of GithubScopeEnvironmentData class. */ + public GithubScopeEnvironmentData() { + } + /** * Validates the instance. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceAssignmentAdditionalData.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceAssignmentAdditionalData.java index 9901478afd225..65e03a10a5290 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceAssignmentAdditionalData.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceAssignmentAdditionalData.java @@ -28,6 +28,10 @@ public final class GovernanceAssignmentAdditionalData { @JsonProperty(value = "ticketStatus") private String ticketStatus; + /** Creates an instance of GovernanceAssignmentAdditionalData class. */ + public GovernanceAssignmentAdditionalData() { + } + /** * Get the ticketNumber property: Ticket number associated with this GovernanceAssignment. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceAssignments.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceAssignments.java index 8dc3e39fe8e83..2a65ca423e075 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceAssignments.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceAssignments.java @@ -47,12 +47,14 @@ public interface GovernanceAssignments { * @param assessmentName The Assessment Key - Unique key for the assessment type. * @param assignmentKey The security governance assignment key - the assessment key of the required governance * assignment. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specific governanceAssignment for the requested scope by AssignmentKey. + * @return a specific governanceAssignment for the requested scope by AssignmentKey along with {@link Response}. */ - GovernanceAssignment get(String scope, String assessmentName, String assignmentKey); + Response getWithResponse( + String scope, String assessmentName, String assignmentKey, Context context); /** * Get a specific governanceAssignment for the requested scope by AssignmentKey. @@ -62,14 +64,12 @@ public interface GovernanceAssignments { * @param assessmentName The Assessment Key - Unique key for the assessment type. * @param assignmentKey The security governance assignment key - the assessment key of the required governance * assignment. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specific governanceAssignment for the requested scope by AssignmentKey along with {@link Response}. + * @return a specific governanceAssignment for the requested scope by AssignmentKey. */ - Response getWithResponse( - String scope, String assessmentName, String assignmentKey, Context context); + GovernanceAssignment get(String scope, String assessmentName, String assignmentKey); /** * Delete a GovernanceAssignment over a given scope. @@ -79,11 +79,13 @@ Response getWithResponse( * @param assessmentName The Assessment Key - Unique key for the assessment type. * @param assignmentKey The security governance assignment key - the assessment key of the required governance * assignment. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void delete(String scope, String assessmentName, String assignmentKey); + Response deleteWithResponse(String scope, String assessmentName, String assignmentKey, Context context); /** * Delete a GovernanceAssignment over a given scope. @@ -93,13 +95,11 @@ Response getWithResponse( * @param assessmentName The Assessment Key - Unique key for the assessment type. * @param assignmentKey The security governance assignment key - the assessment key of the required governance * assignment. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response deleteWithResponse(String scope, String assessmentName, String assignmentKey, Context context); + void delete(String scope, String assessmentName, String assignmentKey); /** * Get a specific governanceAssignment for the requested scope by AssignmentKey. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceAssignmentsList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceAssignmentsList.java index 2b2ac4e41e8d6..16e725b80fe30 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceAssignmentsList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceAssignmentsList.java @@ -24,6 +24,10 @@ public final class GovernanceAssignmentsList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of GovernanceAssignmentsList class. */ + public GovernanceAssignmentsList() { + } + /** * Get the value property: Collection of governance assignments in this page. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceEmailNotification.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceEmailNotification.java index 2fa557e01cc78..78d051477224c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceEmailNotification.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceEmailNotification.java @@ -22,6 +22,10 @@ public final class GovernanceEmailNotification { @JsonProperty(value = "disableOwnerEmailNotification") private Boolean disableOwnerEmailNotification; + /** Creates an instance of GovernanceEmailNotification class. */ + public GovernanceEmailNotification() { + } + /** * Get the disableManagerEmailNotification property: Exclude manager from weekly email notification. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceRule.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceRule.java index 8497f84445e46..26fca1a2ee700 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceRule.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceRule.java @@ -452,16 +452,6 @@ interface WithGovernanceEmailNotification { */ GovernanceRule refresh(Context context); - /** - * Execute a security GovernanceRule on the given subscription. - * - * @param executeGovernanceRuleParams GovernanceRule 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. - */ - void ruleIdExecuteSingleSubscription(ExecuteGovernanceRuleParams executeGovernanceRuleParams); - /** * Execute a security GovernanceRule on the given subscription. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceRuleEmailNotification.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceRuleEmailNotification.java index 1e2615711e445..d39890d509c55 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceRuleEmailNotification.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceRuleEmailNotification.java @@ -22,6 +22,10 @@ public final class GovernanceRuleEmailNotification { @JsonProperty(value = "disableOwnerEmailNotification") private Boolean disableOwnerEmailNotification; + /** Creates an instance of GovernanceRuleEmailNotification class. */ + public GovernanceRuleEmailNotification() { + } + /** * Get the disableManagerEmailNotification property: Defines whether manager email notifications are disabled. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceRuleList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceRuleList.java index 1714e8aa3c55a..b43661b6b4f3d 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceRuleList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceRuleList.java @@ -24,6 +24,10 @@ public final class GovernanceRuleList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of GovernanceRuleList class. */ + public GovernanceRuleList() { + } + /** * Get the value property: Collection of governanceRules in this page. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceRuleOwnerSource.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceRuleOwnerSource.java index 1b36f21e0b45e..25f0716fbcf4b 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceRuleOwnerSource.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceRuleOwnerSource.java @@ -22,6 +22,10 @@ public final class GovernanceRuleOwnerSource { @JsonProperty(value = "value") private String value; + /** Creates an instance of GovernanceRuleOwnerSource class. */ + public GovernanceRuleOwnerSource() { + } + /** * Get the type property: The owner type for the governance rule owner source. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceRulesOperations.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceRulesOperations.java index fcbbe9c3587c2..d6a3504509ea0 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceRulesOperations.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GovernanceRulesOperations.java @@ -9,17 +9,6 @@ /** Resource collection API of GovernanceRulesOperations. */ public interface GovernanceRulesOperations { - /** - * Get a specific governanceRule for the requested scope by ruleId. - * - * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 governanceRule for the requested scope by ruleId. - */ - GovernanceRule get(String ruleId); - /** * Get a specific governanceRule for the requested scope by ruleId. * @@ -33,14 +22,15 @@ public interface GovernanceRulesOperations { Response getWithResponse(String ruleId, Context context); /** - * Delete a GovernanceRule over a given scope. + * Get a specific governanceRule for the requested scope by ruleId. * * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 governanceRule for the requested scope by ruleId. */ - void delete(String ruleId); + GovernanceRule get(String ruleId); /** * Delete a GovernanceRule over a given scope. @@ -55,15 +45,14 @@ public interface GovernanceRulesOperations { Response deleteWithResponse(String ruleId, Context context); /** - * Execute a security GovernanceRule on the given subscription. + * Delete a GovernanceRule over a given scope. * * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. - * @param executeGovernanceRuleParams GovernanceRule 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. */ - void ruleIdExecuteSingleSubscription(String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams); + void delete(String ruleId); /** * Execute a security GovernanceRule on the given subscription. @@ -88,24 +77,6 @@ public interface GovernanceRulesOperations { void ruleIdExecuteSingleSubscription( String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams, Context context); - /** - * Execute a security GovernanceRule on the given security connector. - * - * @param resourceGroupName The name of the resource group within the user's subscription. The name is case - * insensitive. - * @param securityConnectorName The security connector name. - * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. - * @param executeGovernanceRuleParams GovernanceRule 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. - */ - void ruleIdExecuteSingleSecurityConnector( - String resourceGroupName, - String securityConnectorName, - String ruleId, - ExecuteGovernanceRuleParams executeGovernanceRuleParams); - /** * Execute a security GovernanceRule on the given security connector. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/HttpC2DMessagesNotInAllowedRange.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/HttpC2DMessagesNotInAllowedRange.java index de14a34f8370f..e7d42f332e0dd 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/HttpC2DMessagesNotInAllowedRange.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/HttpC2DMessagesNotInAllowedRange.java @@ -14,6 +14,10 @@ @JsonTypeName("HttpC2DMessagesNotInAllowedRange") @Fluent public final class HttpC2DMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Creates an instance of HttpC2DMessagesNotInAllowedRange class. */ + public HttpC2DMessagesNotInAllowedRange() { + } + /** {@inheritDoc} */ @Override public HttpC2DMessagesNotInAllowedRange withTimeWindowSize(Duration timeWindowSize) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/HttpC2DRejectedMessagesNotInAllowedRange.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/HttpC2DRejectedMessagesNotInAllowedRange.java index 7fd9a3eaee827..49c6b26e1c01a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/HttpC2DRejectedMessagesNotInAllowedRange.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/HttpC2DRejectedMessagesNotInAllowedRange.java @@ -14,6 +14,10 @@ @JsonTypeName("HttpC2DRejectedMessagesNotInAllowedRange") @Fluent public final class HttpC2DRejectedMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Creates an instance of HttpC2DRejectedMessagesNotInAllowedRange class. */ + public HttpC2DRejectedMessagesNotInAllowedRange() { + } + /** {@inheritDoc} */ @Override public HttpC2DRejectedMessagesNotInAllowedRange withTimeWindowSize(Duration timeWindowSize) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/HttpD2CMessagesNotInAllowedRange.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/HttpD2CMessagesNotInAllowedRange.java index 11767ba8553ec..72e3529c7ee45 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/HttpD2CMessagesNotInAllowedRange.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/HttpD2CMessagesNotInAllowedRange.java @@ -14,6 +14,10 @@ @JsonTypeName("HttpD2CMessagesNotInAllowedRange") @Fluent public final class HttpD2CMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Creates an instance of HttpD2CMessagesNotInAllowedRange class. */ + public HttpD2CMessagesNotInAllowedRange() { + } + /** {@inheritDoc} */ @Override public HttpD2CMessagesNotInAllowedRange withTimeWindowSize(Duration timeWindowSize) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/HybridComputeSettingsProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/HybridComputeSettingsProperties.java index b1aaa8e799860..3c3591136994f 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/HybridComputeSettingsProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/HybridComputeSettingsProperties.java @@ -48,6 +48,10 @@ public final class HybridComputeSettingsProperties { @JsonProperty(value = "servicePrincipal") private ServicePrincipalProperties servicePrincipal; + /** Creates an instance of HybridComputeSettingsProperties class. */ + public HybridComputeSettingsProperties() { + } + /** * Get the hybridComputeProvisioningState property: State of the service principal and its secret. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InformationProtectionAwsOffering.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InformationProtectionAwsOffering.java index 7579a21509014..bcd3d3d18a550 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InformationProtectionAwsOffering.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InformationProtectionAwsOffering.java @@ -20,6 +20,10 @@ public final class InformationProtectionAwsOffering extends CloudOffering { @JsonProperty(value = "informationProtection") private InformationProtectionAwsOfferingInformationProtection informationProtection; + /** Creates an instance of InformationProtectionAwsOffering class. */ + public InformationProtectionAwsOffering() { + } + /** * Get the informationProtection property: The native cloud connection configuration. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InformationProtectionAwsOfferingInformationProtection.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InformationProtectionAwsOfferingInformationProtection.java index 2bcc41da63fc4..8953e588cc07b 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InformationProtectionAwsOfferingInformationProtection.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InformationProtectionAwsOfferingInformationProtection.java @@ -16,6 +16,10 @@ public final class InformationProtectionAwsOfferingInformationProtection { @JsonProperty(value = "cloudRoleArn") private String cloudRoleArn; + /** Creates an instance of InformationProtectionAwsOfferingInformationProtection class. */ + public InformationProtectionAwsOfferingInformationProtection() { + } + /** * Get the cloudRoleArn property: The cloud role ARN in AWS for this feature. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InformationProtectionKeyword.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InformationProtectionKeyword.java index 0e0e1bd965c2f..9f057b60c11df 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InformationProtectionKeyword.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InformationProtectionKeyword.java @@ -34,6 +34,10 @@ public final class InformationProtectionKeyword { @JsonProperty(value = "excluded") private Boolean excluded; + /** Creates an instance of InformationProtectionKeyword class. */ + public InformationProtectionKeyword() { + } + /** * Get the pattern property: The keyword pattern. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InformationProtectionPolicies.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InformationProtectionPolicies.java index 195f847d992cb..410b3ead7cc4d 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InformationProtectionPolicies.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InformationProtectionPolicies.java @@ -16,12 +16,14 @@ public interface InformationProtectionPolicies { * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or * management group (/providers/Microsoft.Management/managementGroups/mgName). * @param informationProtectionPolicyName Name of the information protection policy. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information protection policy. + * @return information protection policy along with {@link Response}. */ - InformationProtectionPolicy get(String scope, InformationProtectionPolicyName informationProtectionPolicyName); + Response getWithResponse( + String scope, InformationProtectionPolicyName informationProtectionPolicyName, Context context); /** * Details of the information protection policy. @@ -29,14 +31,12 @@ public interface InformationProtectionPolicies { * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or * management group (/providers/Microsoft.Management/managementGroups/mgName). * @param informationProtectionPolicyName Name of the information protection policy. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information protection policy along with {@link Response}. + * @return information protection policy. */ - Response getWithResponse( - String scope, InformationProtectionPolicyName informationProtectionPolicyName, Context context); + InformationProtectionPolicy get(String scope, InformationProtectionPolicyName informationProtectionPolicyName); /** * Information protection policies of a specific management group. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InformationProtectionPolicyList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InformationProtectionPolicyList.java index 0a43eab31291c..c69c92449f4ba 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InformationProtectionPolicyList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InformationProtectionPolicyList.java @@ -24,6 +24,10 @@ public final class InformationProtectionPolicyList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of InformationProtectionPolicyList class. */ + public InformationProtectionPolicyList() { + } + /** * Get the value property: List of information protection policies. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InformationType.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InformationType.java index dd58601b814a8..0b6a324196bc4 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InformationType.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InformationType.java @@ -54,6 +54,10 @@ public final class InformationType { @JsonProperty(value = "keywords") private List keywords; + /** Creates an instance of InformationType class. */ + public InformationType() { + } + /** * Get the displayName property: The name of the information type. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IngestionConnectionString.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IngestionConnectionString.java index b1796dce95d33..a21e6e058cd1d 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IngestionConnectionString.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IngestionConnectionString.java @@ -22,6 +22,10 @@ public final class IngestionConnectionString { @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY) private String value; + /** Creates an instance of IngestionConnectionString class. */ + public IngestionConnectionString() { + } + /** * Get the location property: The region where ingested logs and data resides. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IngestionSetting.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IngestionSetting.java index 90fec6fb7369f..6183e755a7617 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IngestionSetting.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IngestionSetting.java @@ -99,15 +99,6 @@ interface WithProperties { */ IngestionSetting refresh(Context context); - /** - * Returns the token that is used for correlating ingested telemetry with the resources in 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 configures how to correlate scan data and logs with resources associated with the subscription. - */ - IngestionSettingToken listTokens(); - /** * Returns the token that is used for correlating ingested telemetry with the resources in the subscription. * @@ -121,13 +112,13 @@ interface WithProperties { Response listTokensWithResponse(Context context); /** - * Connection strings for ingesting security scan logs and data. + * Returns the token that is used for correlating ingested telemetry with the resources in 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 connection string for ingesting security data and logs. + * @return configures how to correlate scan data and logs with resources associated with the subscription. */ - ConnectionStrings listConnectionStrings(); + IngestionSettingToken listTokens(); /** * Connection strings for ingesting security scan logs and data. @@ -139,4 +130,13 @@ interface WithProperties { * @return connection string for ingesting security data and logs along with {@link Response}. */ Response listConnectionStringsWithResponse(Context context); + + /** + * Connection strings for ingesting security scan logs and data. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connection string for ingesting security data and logs. + */ + ConnectionStrings listConnectionStrings(); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IngestionSettingList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IngestionSettingList.java index 8fcf897b3b1c4..4824d85ba1585 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IngestionSettingList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IngestionSettingList.java @@ -24,6 +24,10 @@ public final class IngestionSettingList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of IngestionSettingList class. */ + public IngestionSettingList() { + } + /** * Get the value property: List of ingestion settings. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IngestionSettings.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IngestionSettings.java index df60ee687b1c5..0f3c1c9af4a95 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IngestionSettings.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IngestionSettings.java @@ -30,17 +30,6 @@ public interface IngestionSettings { */ PagedIterable list(Context context); - /** - * Settings for ingesting security data and logs to correlate with resources associated with the subscription. - * - * @param ingestionSettingName Name of the ingestion setting. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return configures how to correlate scan data and logs with resources associated with the subscription. - */ - IngestionSetting get(String ingestionSettingName); - /** * Settings for ingesting security data and logs to correlate with resources associated with the subscription. * @@ -55,14 +44,15 @@ public interface IngestionSettings { Response getWithResponse(String ingestionSettingName, Context context); /** - * Deletes the ingestion settings for this subscription. + * Settings for ingesting security data and logs to correlate with resources associated with the subscription. * * @param ingestionSettingName Name of the ingestion setting. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return configures how to correlate scan data and logs with resources associated with the subscription. */ - void delete(String ingestionSettingName); + IngestionSetting get(String ingestionSettingName); /** * Deletes the ingestion settings for this subscription. @@ -77,15 +67,14 @@ public interface IngestionSettings { Response deleteWithResponse(String ingestionSettingName, Context context); /** - * Returns the token that is used for correlating ingested telemetry with the resources in the subscription. + * Deletes the ingestion settings for this subscription. * * @param ingestionSettingName Name of the ingestion setting. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return configures how to correlate scan data and logs with resources associated with the subscription. */ - IngestionSettingToken listTokens(String ingestionSettingName); + void delete(String ingestionSettingName); /** * Returns the token that is used for correlating ingested telemetry with the resources in the subscription. @@ -101,15 +90,15 @@ public interface IngestionSettings { Response listTokensWithResponse(String ingestionSettingName, Context context); /** - * Connection strings for ingesting security scan logs and data. + * Returns the token that is used for correlating ingested telemetry with the resources in the subscription. * * @param ingestionSettingName Name of the ingestion setting. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connection string for ingesting security data and logs. + * @return configures how to correlate scan data and logs with resources associated with the subscription. */ - ConnectionStrings listConnectionStrings(String ingestionSettingName); + IngestionSettingToken listTokens(String ingestionSettingName); /** * Connection strings for ingesting security scan logs and data. @@ -123,6 +112,17 @@ public interface IngestionSettings { */ Response listConnectionStringsWithResponse(String ingestionSettingName, Context context); + /** + * Connection strings for ingesting security scan logs and data. + * + * @param ingestionSettingName Name of the ingestion setting. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connection string for ingesting security data and logs. + */ + ConnectionStrings listConnectionStrings(String ingestionSettingName); + /** * Settings for ingesting security data and logs to correlate with resources associated with the subscription. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecurityAggregatedAlertList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecurityAggregatedAlertList.java index b859d15469f95..5b8c4abed000e 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecurityAggregatedAlertList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecurityAggregatedAlertList.java @@ -25,6 +25,10 @@ public final class IoTSecurityAggregatedAlertList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of IoTSecurityAggregatedAlertList class. */ + public IoTSecurityAggregatedAlertList() { + } + /** * Get the value property: List of aggregated alerts data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecurityAggregatedAlertPropertiesTopDevicesListItem.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecurityAggregatedAlertPropertiesTopDevicesListItem.java index 843dcb18f00f5..cfc3fa93f5735 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecurityAggregatedAlertPropertiesTopDevicesListItem.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecurityAggregatedAlertPropertiesTopDevicesListItem.java @@ -28,6 +28,10 @@ public final class IoTSecurityAggregatedAlertPropertiesTopDevicesListItem { @JsonProperty(value = "lastOccurrence", access = JsonProperty.Access.WRITE_ONLY) private String lastOccurrence; + /** Creates an instance of IoTSecurityAggregatedAlertPropertiesTopDevicesListItem class. */ + public IoTSecurityAggregatedAlertPropertiesTopDevicesListItem() { + } + /** * Get the deviceId property: Name of the device. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecurityAggregatedRecommendationList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecurityAggregatedRecommendationList.java index 8cb6d032ceaeb..a017f3493611c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecurityAggregatedRecommendationList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecurityAggregatedRecommendationList.java @@ -25,6 +25,10 @@ public final class IoTSecurityAggregatedRecommendationList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of IoTSecurityAggregatedRecommendationList class. */ + public IoTSecurityAggregatedRecommendationList() { + } + /** * Get the value property: List of aggregated recommendations data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecurityAlertedDevice.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecurityAlertedDevice.java index 1b5e022cd3911..8a0d2d7d4ee9a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecurityAlertedDevice.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecurityAlertedDevice.java @@ -22,6 +22,10 @@ public final class IoTSecurityAlertedDevice { @JsonProperty(value = "alertsCount", access = JsonProperty.Access.WRITE_ONLY) private Long alertsCount; + /** Creates an instance of IoTSecurityAlertedDevice class. */ + public IoTSecurityAlertedDevice() { + } + /** * Get the deviceId property: Device identifier. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecurityDeviceAlert.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecurityDeviceAlert.java index 65271e8326bb6..0f1e128cb283b 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecurityDeviceAlert.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecurityDeviceAlert.java @@ -28,6 +28,10 @@ public final class IoTSecurityDeviceAlert { @JsonProperty(value = "alertsCount", access = JsonProperty.Access.WRITE_ONLY) private Long alertsCount; + /** Creates an instance of IoTSecurityDeviceAlert class. */ + public IoTSecurityDeviceAlert() { + } + /** * Get the alertDisplayName property: Display name of the alert. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecurityDeviceRecommendation.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecurityDeviceRecommendation.java index 624ac2ab6dcc7..a6ffb1279932d 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecurityDeviceRecommendation.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecurityDeviceRecommendation.java @@ -28,6 +28,10 @@ public final class IoTSecurityDeviceRecommendation { @JsonProperty(value = "devicesCount", access = JsonProperty.Access.WRITE_ONLY) private Long devicesCount; + /** Creates an instance of IoTSecurityDeviceRecommendation class. */ + public IoTSecurityDeviceRecommendation() { + } + /** * Get the recommendationDisplayName property: Display name of the recommendation. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem.java index a8de3e6016855..c0f6ae3a6e974 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem.java @@ -23,6 +23,10 @@ public final class IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem @JsonProperty(value = "devicesMetrics") private IoTSeverityMetrics devicesMetrics; + /** Creates an instance of IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem class. */ + public IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem() { + } + /** * Get the date property: Aggregation of IoT Security solution device alert metrics by date. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecuritySolutionsList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecuritySolutionsList.java index 0432586457a79..d78336fc315a8 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecuritySolutionsList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSecuritySolutionsList.java @@ -25,6 +25,10 @@ public final class IoTSecuritySolutionsList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of IoTSecuritySolutionsList class. */ + public IoTSecuritySolutionsList() { + } + /** * Get the value property: List of IoT Security solutions. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSeverityMetrics.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSeverityMetrics.java index 7ee5bfa8a9f92..2b9d02e9d385b 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSeverityMetrics.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IoTSeverityMetrics.java @@ -28,6 +28,10 @@ public final class IoTSeverityMetrics { @JsonProperty(value = "low") private Long low; + /** Creates an instance of IoTSeverityMetrics class. */ + public IoTSeverityMetrics() { + } + /** * Get the high property: Count of high severity alerts/recommendations. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IotSecuritySolutionAnalytics.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IotSecuritySolutionAnalytics.java index dd4a8e46861cd..046b0e813aa75 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IotSecuritySolutionAnalytics.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IotSecuritySolutionAnalytics.java @@ -15,12 +15,14 @@ public interface IotSecuritySolutionAnalytics { * @param resourceGroupName The name of the resource group within the user's subscription. 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. + * @return list of Security analytics of your IoT Security solution along with {@link Response}. */ - IoTSecuritySolutionAnalyticsModelList list(String resourceGroupName, String solutionName); + Response listWithResponse( + String resourceGroupName, String solutionName, Context context); /** * Use this method to get IoT security Analytics metrics in an array. @@ -28,14 +30,12 @@ public interface IotSecuritySolutionAnalytics { * @param resourceGroupName The name of the resource group within the user's subscription. 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 list of Security analytics of your IoT Security solution. */ - Response listWithResponse( - String resourceGroupName, String solutionName, Context context); + IoTSecuritySolutionAnalyticsModelList list(String resourceGroupName, String solutionName); /** * Use this method to get IoT Security Analytics metrics. @@ -43,12 +43,14 @@ Response listWithResponse( * @param resourceGroupName The name of the resource group within the user's subscription. 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. + * @return security analytics of your IoT Security solution along with {@link Response}. */ - IoTSecuritySolutionAnalyticsModel get(String resourceGroupName, String solutionName); + Response getWithResponse( + String resourceGroupName, String solutionName, Context context); /** * Use this method to get IoT Security Analytics metrics. @@ -56,12 +58,10 @@ Response listWithResponse( * @param resourceGroupName The name of the resource group within the user's subscription. 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 security analytics of your IoT Security solution. */ - Response getWithResponse( - String resourceGroupName, String solutionName, Context context); + IoTSecuritySolutionAnalyticsModel get(String resourceGroupName, String solutionName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IotSecuritySolutions.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IotSecuritySolutions.java index 23f8c668078f4..88de488665d89 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IotSecuritySolutions.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IotSecuritySolutions.java @@ -64,12 +64,14 @@ PagedIterable listByResourceGroup( * @param resourceGroupName The name of the resource group within the user's subscription. 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 ioT Security solution configuration and resource information. + * @return ioT Security solution configuration and resource information along with {@link Response}. */ - IoTSecuritySolutionModel getByResourceGroup(String resourceGroupName, String solutionName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String solutionName, Context context); /** * User this method to get details of a specific IoT Security solution based on solution name. @@ -77,14 +79,12 @@ PagedIterable listByResourceGroup( * @param resourceGroupName The name of the resource group within the user's subscription. 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 ioT Security solution configuration and resource information along with {@link Response}. + * @return ioT Security solution configuration and resource information. */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String solutionName, Context context); + IoTSecuritySolutionModel getByResourceGroup(String resourceGroupName, String solutionName); /** * Use this method to delete yours IoT Security solution. @@ -92,11 +92,13 @@ Response getByResourceGroupWithResponse( * @param resourceGroupName The name of the resource group within the user's subscription. 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 the {@link Response}. */ - void deleteByResourceGroup(String resourceGroupName, String solutionName); + Response deleteByResourceGroupWithResponse(String resourceGroupName, String solutionName, Context context); /** * Use this method to delete yours IoT Security solution. @@ -104,13 +106,11 @@ Response getByResourceGroupWithResponse( * @param resourceGroupName The name of the resource group within the user's subscription. 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 the {@link Response}. */ - Response deleteWithResponse(String resourceGroupName, String solutionName, Context context); + void deleteByResourceGroup(String resourceGroupName, String solutionName); /** * User this method to get details of a specific IoT Security solution based on solution name. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IotSecuritySolutionsAnalyticsAggregatedAlerts.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IotSecuritySolutionsAnalyticsAggregatedAlerts.java index 6fb3d08dc18d3..f49eb2da49894 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IotSecuritySolutionsAnalyticsAggregatedAlerts.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IotSecuritySolutionsAnalyticsAggregatedAlerts.java @@ -47,12 +47,14 @@ PagedIterable list( * 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. + * @return security Solution Aggregated Alert information along with {@link Response}. */ - IoTSecurityAggregatedAlert get(String resourceGroupName, String solutionName, String aggregatedAlertName); + Response getWithResponse( + String resourceGroupName, String solutionName, String aggregatedAlertName, Context context); /** * Use this method to get a single the aggregated alert of yours IoT Security solution. This aggregation is @@ -62,14 +64,12 @@ PagedIterable list( * 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 security Solution Aggregated Alert information. */ - Response getWithResponse( - String resourceGroupName, String solutionName, String aggregatedAlertName, Context context); + IoTSecurityAggregatedAlert get(String resourceGroupName, String solutionName, String aggregatedAlertName); /** * Use this method to dismiss an aggregated IoT Security Solution Alert. @@ -78,11 +78,14 @@ Response getWithResponse( * 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 the {@link Response}. */ - void dismiss(String resourceGroupName, String solutionName, String aggregatedAlertName); + Response dismissWithResponse( + String resourceGroupName, String solutionName, String aggregatedAlertName, Context context); /** * Use this method to dismiss an aggregated IoT Security Solution Alert. @@ -91,12 +94,9 @@ Response getWithResponse( * 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 the {@link Response}. */ - Response dismissWithResponse( - String resourceGroupName, String solutionName, String aggregatedAlertName, Context context); + void dismiss(String resourceGroupName, String solutionName, String aggregatedAlertName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IotSecuritySolutionsAnalyticsRecommendations.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IotSecuritySolutionsAnalyticsRecommendations.java index d96d9f89718d5..6648f6a167817 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IotSecuritySolutionsAnalyticsRecommendations.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/IotSecuritySolutionsAnalyticsRecommendations.java @@ -18,13 +18,14 @@ public interface IotSecuritySolutionsAnalyticsRecommendations { * insensitive. * @param solutionName The name of the IoT Security solution. * @param aggregatedRecommendationName Name of the recommendation aggregated for this query. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return ioT Security solution recommendation information. + * @return ioT Security solution recommendation information along with {@link Response}. */ - IoTSecurityAggregatedRecommendation get( - String resourceGroupName, String solutionName, String aggregatedRecommendationName); + Response getWithResponse( + String resourceGroupName, String solutionName, String aggregatedRecommendationName, Context context); /** * Use this method to get the aggregated security analytics recommendation of yours IoT Security solution. This @@ -34,14 +35,13 @@ IoTSecurityAggregatedRecommendation get( * insensitive. * @param solutionName The name of the IoT Security solution. * @param aggregatedRecommendationName Name of the recommendation aggregated for this query. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return ioT Security solution recommendation information along with {@link Response}. + * @return ioT Security solution recommendation information. */ - Response getWithResponse( - String resourceGroupName, String solutionName, String aggregatedRecommendationName, Context context); + IoTSecurityAggregatedRecommendation get( + String resourceGroupName, String solutionName, String aggregatedRecommendationName); /** * Use this method to get the list of aggregated security analytics recommendations of yours IoT Security solution. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPolicies.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPolicies.java index 39350adcadb4a..92e516a6d1d5d 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPolicies.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPolicies.java @@ -118,12 +118,14 @@ PagedIterable listByResourceGroupAndRegion( * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration 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 the response. + * @return the response body along with {@link Response}. */ - JitNetworkAccessPolicy get(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName); + Response getWithResponse( + String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, Context context); /** * Policies for protecting resources using Just-in-Time access control for the subscription, location. @@ -133,14 +135,12 @@ PagedIterable listByResourceGroupAndRegion( * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration 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 the response body along with {@link Response}. + * @return the response. */ - Response getWithResponse( - String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, Context context); + JitNetworkAccessPolicy get(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName); /** * Delete a Just-in-Time access control policy. @@ -150,11 +150,14 @@ Response getWithResponse( * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration 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 the {@link Response}. */ - void delete(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName); + Response deleteWithResponse( + String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, Context context); /** * Delete a Just-in-Time access control policy. @@ -164,14 +167,11 @@ Response getWithResponse( * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration 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 the {@link Response}. */ - Response deleteWithResponse( - String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, Context context); + void delete(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName); /** * Initiate a JIT access from a specific Just-in-Time policy configuration. @@ -182,16 +182,18 @@ Response deleteWithResponse( * locations. * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. * @param body The body 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 the response. + * @return the response body along with {@link Response}. */ - JitNetworkAccessRequest initiate( + Response initiateWithResponse( String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, - JitNetworkAccessPolicyInitiateRequest body); + JitNetworkAccessPolicyInitiateRequest body, + Context context); /** * Initiate a JIT access from a specific Just-in-Time policy configuration. @@ -202,18 +204,16 @@ JitNetworkAccessRequest initiate( * locations. * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. * @param body The body 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 the response body along with {@link Response}. + * @return the response. */ - Response initiateWithResponse( + JitNetworkAccessRequest initiate( String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, - JitNetworkAccessPolicyInitiateRequest body, - Context context); + JitNetworkAccessPolicyInitiateRequest body); /** * Policies for protecting resources using Just-in-Time access control for the subscription, location. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPoliciesList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPoliciesList.java index ee65d53030fdd..61d94c76c6dc4 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPoliciesList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPoliciesList.java @@ -24,6 +24,10 @@ public final class JitNetworkAccessPoliciesList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of JitNetworkAccessPoliciesList class. */ + public JitNetworkAccessPoliciesList() { + } + /** * Get the value property: The value property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPolicyInitiatePort.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPolicyInitiatePort.java index 99a6dc580a33b..ba83fa723e4a2 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPolicyInitiatePort.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPolicyInitiatePort.java @@ -31,6 +31,10 @@ public final class JitNetworkAccessPolicyInitiatePort { @JsonProperty(value = "endTimeUtc", required = true) private OffsetDateTime endTimeUtc; + /** Creates an instance of JitNetworkAccessPolicyInitiatePort class. */ + public JitNetworkAccessPolicyInitiatePort() { + } + /** * Get the number property: The number property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPolicyInitiateRequest.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPolicyInitiateRequest.java index b3136e05f50d6..cc2b48c703380 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPolicyInitiateRequest.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPolicyInitiateRequest.java @@ -24,6 +24,10 @@ public final class JitNetworkAccessPolicyInitiateRequest { @JsonProperty(value = "justification") private String justification; + /** Creates an instance of JitNetworkAccessPolicyInitiateRequest class. */ + public JitNetworkAccessPolicyInitiateRequest() { + } + /** * Get the virtualMachines property: A list of virtual machines & ports to open access for. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPolicyInitiateVirtualMachine.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPolicyInitiateVirtualMachine.java index 7c4ec55603c2b..b2d94e882c091 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPolicyInitiateVirtualMachine.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPolicyInitiateVirtualMachine.java @@ -24,6 +24,10 @@ public final class JitNetworkAccessPolicyInitiateVirtualMachine { @JsonProperty(value = "ports", required = true) private List ports; + /** Creates an instance of JitNetworkAccessPolicyInitiateVirtualMachine class. */ + public JitNetworkAccessPolicyInitiateVirtualMachine() { + } + /** * Get the id property: Resource ID of the virtual machine that is linked to this policy. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPolicyVirtualMachine.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPolicyVirtualMachine.java index 1c3740b049cb4..dc96c3012fbe1 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPolicyVirtualMachine.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPolicyVirtualMachine.java @@ -30,6 +30,10 @@ public final class JitNetworkAccessPolicyVirtualMachine { @JsonProperty(value = "publicIpAddress") private String publicIpAddress; + /** Creates an instance of JitNetworkAccessPolicyVirtualMachine class. */ + public JitNetworkAccessPolicyVirtualMachine() { + } + /** * Get the id property: Resource ID of the virtual machine that is linked to this policy. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPortRule.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPortRule.java index b7039d28b2c6d..7c05517e68350 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPortRule.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessPortRule.java @@ -43,6 +43,10 @@ public final class JitNetworkAccessPortRule { @JsonProperty(value = "maxRequestAccessDuration", required = true) private String maxRequestAccessDuration; + /** Creates an instance of JitNetworkAccessPortRule class. */ + public JitNetworkAccessPortRule() { + } + /** * Get the number property: The number property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessRequestPort.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessRequestPort.java index a06f2597fb39e..c954e191ef6b1 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessRequestPort.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessRequestPort.java @@ -56,6 +56,10 @@ public final class JitNetworkAccessRequestPort { @JsonProperty(value = "mappedPort") private Integer mappedPort; + /** Creates an instance of JitNetworkAccessRequestPort class. */ + public JitNetworkAccessRequestPort() { + } + /** * Get the number property: The number property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessRequestVirtualMachine.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessRequestVirtualMachine.java index 934cdfcb68db3..a71907e968174 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessRequestVirtualMachine.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/JitNetworkAccessRequestVirtualMachine.java @@ -24,6 +24,10 @@ public final class JitNetworkAccessRequestVirtualMachine { @JsonProperty(value = "ports", required = true) private List ports; + /** Creates an instance of JitNetworkAccessRequestVirtualMachine class. */ + public JitNetworkAccessRequestVirtualMachine() { + } + /** * Get the id property: Resource ID of the virtual machine that is linked to this policy. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/KindAutoGenerated.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/KindAutoGenerated.java index 7255e50a382dc..58c82a454014b 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/KindAutoGenerated.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/KindAutoGenerated.java @@ -16,6 +16,10 @@ public class KindAutoGenerated { @JsonProperty(value = "kind") private String kind; + /** Creates an instance of KindAutoGenerated class. */ + public KindAutoGenerated() { + } + /** * Get the kind property: Kind of the resource. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ListCustomAlertRule.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ListCustomAlertRule.java index 6ac0d286a79e7..8d1243a560a16 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ListCustomAlertRule.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ListCustomAlertRule.java @@ -29,6 +29,10 @@ public class ListCustomAlertRule extends CustomAlertRule { @JsonProperty(value = "valueType", access = JsonProperty.Access.WRITE_ONLY) private ValueType valueType; + /** Creates an instance of ListCustomAlertRule class. */ + public ListCustomAlertRule() { + } + /** * Get the valueType property: The value type of the items in the list. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/LocalUserNotAllowed.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/LocalUserNotAllowed.java index 21aeb3658c68c..519315f88cced 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/LocalUserNotAllowed.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/LocalUserNotAllowed.java @@ -14,6 +14,10 @@ @JsonTypeName("LocalUserNotAllowed") @Fluent public final class LocalUserNotAllowed extends AllowlistCustomAlertRule { + /** Creates an instance of LocalUserNotAllowed class. */ + public LocalUserNotAllowed() { + } + /** {@inheritDoc} */ @Override public LocalUserNotAllowed withAllowlistValues(List allowlistValues) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Location.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Location.java index e0ca08e5c6866..96b08b9dec94c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Location.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Location.java @@ -16,6 +16,10 @@ public class Location { @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY) private String location; + /** Creates an instance of Location class. */ + public Location() { + } + /** * Get the location property: Location where the resource is stored. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Locations.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Locations.java index 9ba42fa513f9b..c6ab571c1b40f 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Locations.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Locations.java @@ -39,23 +39,23 @@ public interface Locations { * * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the ASC location of the subscription is in the "name" field. + * @return the ASC location of the subscription is in the "name" field along with {@link Response}. */ - AscLocation get(String ascLocation); + Response getWithResponse(String ascLocation, Context context); /** * Details of a specific location. * * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the ASC location of the subscription is in the "name" field along with {@link Response}. + * @return the ASC location of the subscription is in the "name" field. */ - Response getWithResponse(String ascLocation, Context context); + AscLocation get(String ascLocation); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/LogAnalyticsIdentifier.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/LogAnalyticsIdentifier.java index fa8307b6d4f67..8fc67f68f793c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/LogAnalyticsIdentifier.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/LogAnalyticsIdentifier.java @@ -38,6 +38,10 @@ public final class LogAnalyticsIdentifier extends ResourceIdentifier { @JsonProperty(value = "agentId", access = JsonProperty.Access.WRITE_ONLY) private String agentId; + /** Creates an instance of LogAnalyticsIdentifier class. */ + public LogAnalyticsIdentifier() { + } + /** * Get the workspaceId property: The LogAnalytics workspace id that stores this alert. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/MdeOnboardings.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/MdeOnboardings.java index 101787df45273..121961f1fb027 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/MdeOnboardings.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/MdeOnboardings.java @@ -9,15 +9,6 @@ /** Resource collection API of MdeOnboardings. */ public interface MdeOnboardings { - /** - * The configuration or data needed to onboard the machine to MDE. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of all MDE onboarding data resources. - */ - MdeOnboardingDataList list(); - /** * The configuration or data needed to onboard the machine to MDE. * @@ -30,13 +21,13 @@ public interface MdeOnboardings { Response listWithResponse(Context context); /** - * The default configuration or data needed to onboard the machine to MDE. + * The configuration or data needed to onboard the machine to MDE. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the resource of the configuration or data needed to onboard the machine to MDE. + * @return list of all MDE onboarding data resources. */ - MdeOnboardingData get(); + MdeOnboardingDataList list(); /** * The default configuration or data needed to onboard the machine to MDE. @@ -49,4 +40,13 @@ public interface MdeOnboardings { * Response}. */ Response getWithResponse(Context context); + + /** + * The default configuration or data needed to onboard the machine to MDE. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the resource of the configuration or data needed to onboard the machine to MDE. + */ + MdeOnboardingData get(); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/MqttC2DMessagesNotInAllowedRange.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/MqttC2DMessagesNotInAllowedRange.java index b6f265c4c26c6..ace4c3ab00ef2 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/MqttC2DMessagesNotInAllowedRange.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/MqttC2DMessagesNotInAllowedRange.java @@ -14,6 +14,10 @@ @JsonTypeName("MqttC2DMessagesNotInAllowedRange") @Fluent public final class MqttC2DMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Creates an instance of MqttC2DMessagesNotInAllowedRange class. */ + public MqttC2DMessagesNotInAllowedRange() { + } + /** {@inheritDoc} */ @Override public MqttC2DMessagesNotInAllowedRange withTimeWindowSize(Duration timeWindowSize) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/MqttC2DRejectedMessagesNotInAllowedRange.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/MqttC2DRejectedMessagesNotInAllowedRange.java index 8f39b7830630a..c3112f9811a4f 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/MqttC2DRejectedMessagesNotInAllowedRange.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/MqttC2DRejectedMessagesNotInAllowedRange.java @@ -14,6 +14,10 @@ @JsonTypeName("MqttC2DRejectedMessagesNotInAllowedRange") @Fluent public final class MqttC2DRejectedMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Creates an instance of MqttC2DRejectedMessagesNotInAllowedRange class. */ + public MqttC2DRejectedMessagesNotInAllowedRange() { + } + /** {@inheritDoc} */ @Override public MqttC2DRejectedMessagesNotInAllowedRange withTimeWindowSize(Duration timeWindowSize) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/MqttD2CMessagesNotInAllowedRange.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/MqttD2CMessagesNotInAllowedRange.java index 4198211979403..7d409250629d0 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/MqttD2CMessagesNotInAllowedRange.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/MqttD2CMessagesNotInAllowedRange.java @@ -14,6 +14,10 @@ @JsonTypeName("MqttD2CMessagesNotInAllowedRange") @Fluent public final class MqttD2CMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Creates an instance of MqttD2CMessagesNotInAllowedRange class. */ + public MqttD2CMessagesNotInAllowedRange() { + } + /** {@inheritDoc} */ @Override public MqttD2CMessagesNotInAllowedRange withTimeWindowSize(Duration timeWindowSize) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/OnPremiseResourceDetails.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/OnPremiseResourceDetails.java index 7f1451ba00a07..0fbc765232248 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/OnPremiseResourceDetails.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/OnPremiseResourceDetails.java @@ -45,6 +45,10 @@ public class OnPremiseResourceDetails extends ResourceDetails { @JsonProperty(value = "machineName", required = true) private String machineName; + /** Creates an instance of OnPremiseResourceDetails class. */ + public OnPremiseResourceDetails() { + } + /** * Get the workspaceId property: Azure resource Id of the workspace the machine is attached to. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/OnPremiseSqlResourceDetails.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/OnPremiseSqlResourceDetails.java index 9bcbaad6427e4..cdf5dcd7ea514 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/OnPremiseSqlResourceDetails.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/OnPremiseSqlResourceDetails.java @@ -27,6 +27,10 @@ public final class OnPremiseSqlResourceDetails extends OnPremiseResourceDetails @JsonProperty(value = "databaseName", required = true) private String databaseName; + /** Creates an instance of OnPremiseSqlResourceDetails class. */ + public OnPremiseSqlResourceDetails() { + } + /** * Get the serverName property: The Sql server name installed on the machine. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/OperationDisplay.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/OperationDisplay.java index e6a5fdf1fbf28..9cf93777953bb 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/OperationDisplay.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/OperationDisplay.java @@ -34,6 +34,10 @@ public final class OperationDisplay { @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY) private String description; + /** Creates an instance of OperationDisplay class. */ + public OperationDisplay() { + } + /** * Get the provider property: The resource provider for the operation. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/OperationList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/OperationList.java index c2ade2bcff315..8d0852a40677e 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/OperationList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/OperationList.java @@ -24,6 +24,10 @@ public final class OperationList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of OperationList class. */ + public OperationList() { + } + /** * Get the value property: List of Security operations. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/PathRecommendation.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/PathRecommendation.java index deeff49940338..5850e6bbe2544 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/PathRecommendation.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/PathRecommendation.java @@ -65,6 +65,10 @@ public final class PathRecommendation { @JsonProperty(value = "configurationStatus") private ConfigurationStatus configurationStatus; + /** Creates an instance of PathRecommendation class. */ + public PathRecommendation() { + } + /** * Get the path property: The full path of the file, or an identifier of the application. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Pricings.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Pricings.java index 982cd29d0d28c..e45fd5412a3a7 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Pricings.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Pricings.java @@ -13,71 +13,71 @@ public interface Pricings { /** * Lists Microsoft Defender for Cloud pricing configurations in 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 pricing configurations response. + * @return list of pricing configurations response along with {@link Response}. */ - PricingList list(); + Response listWithResponse(Context context); /** * Lists Microsoft Defender for Cloud pricing configurations in 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 pricing configurations response along with {@link Response}. + * @return list of pricing configurations response. */ - Response listWithResponse(Context context); + PricingList list(); /** * Gets a provided Microsoft Defender for Cloud pricing configuration in the subscription. * * @param pricingName name of the pricing configuration. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a provided Microsoft Defender for Cloud pricing configuration in the subscription. + * @return a provided Microsoft Defender for Cloud pricing configuration in the subscription along with {@link + * Response}. */ - Pricing get(String pricingName); + Response getWithResponse(String pricingName, Context context); /** * Gets a provided Microsoft Defender for Cloud pricing configuration in the subscription. * * @param pricingName name of the pricing configuration. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a provided Microsoft Defender for Cloud pricing configuration in the subscription along with {@link - * Response}. + * @return a provided Microsoft Defender for Cloud pricing configuration in the subscription. */ - Response getWithResponse(String pricingName, Context context); + Pricing get(String pricingName); /** * Updates a provided Microsoft Defender for Cloud pricing configuration in the subscription. * * @param pricingName name of the pricing configuration. * @param pricing Pricing 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 microsoft Defender for Cloud is provided in two pricing tiers: free and standard, with the standard tier - * available with a trial period. + * available with a trial period along with {@link Response}. */ - Pricing update(String pricingName, PricingInner pricing); + Response updateWithResponse(String pricingName, PricingInner pricing, Context context); /** * Updates a provided Microsoft Defender for Cloud pricing configuration in the subscription. * * @param pricingName name of the pricing configuration. * @param pricing Pricing 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 microsoft Defender for Cloud is provided in two pricing tiers: free and standard, with the standard tier - * available with a trial period along with {@link Response}. + * available with a trial period. */ - Response updateWithResponse(String pricingName, PricingInner pricing, Context context); + Pricing update(String pricingName, PricingInner pricing); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ProcessNotAllowed.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ProcessNotAllowed.java index 468ff80361775..029d6ffdc398d 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ProcessNotAllowed.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ProcessNotAllowed.java @@ -14,6 +14,10 @@ @JsonTypeName("ProcessNotAllowed") @Fluent public final class ProcessNotAllowed extends AllowlistCustomAlertRule { + /** Creates an instance of ProcessNotAllowed class. */ + public ProcessNotAllowed() { + } + /** {@inheritDoc} */ @Override public ProcessNotAllowed withAllowlistValues(List allowlistValues) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ProtectionMode.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ProtectionMode.java index 16b31fedb1d8b..91560dbbc4e5d 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ProtectionMode.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ProtectionMode.java @@ -36,6 +36,10 @@ public final class ProtectionMode { @JsonProperty(value = "executable") private EnforcementMode executable; + /** Creates an instance of ProtectionMode class. */ + public ProtectionMode() { + } + /** * Get the exe property: The application control policy enforcement/protection mode of the machine group. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ProxyServerProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ProxyServerProperties.java index e82294327a111..6da28fbe7187d 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ProxyServerProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ProxyServerProperties.java @@ -25,6 +25,10 @@ public final class ProxyServerProperties { @JsonProperty(value = "port") private String port; + /** Creates an instance of ProxyServerProperties class. */ + public ProxyServerProperties() { + } + /** * Get the ip property: Proxy server IP. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/PublisherInfo.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/PublisherInfo.java index 5802e979bfaab..c1f2751a1b376 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/PublisherInfo.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/PublisherInfo.java @@ -35,6 +35,10 @@ public final class PublisherInfo { @JsonProperty(value = "version") private String version; + /** Creates an instance of PublisherInfo class. */ + public PublisherInfo() { + } + /** * Get the publisherName property: The Subject field of the x.509 certificate used to sign the code, using the * following fields - O = Organization, L = Locality, S = State or Province, and C = Country. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/QueryCheck.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/QueryCheck.java index 5aa5b7f240f0e..900c61203f88e 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/QueryCheck.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/QueryCheck.java @@ -29,6 +29,10 @@ public final class QueryCheck { @JsonProperty(value = "columnNames") private List columnNames; + /** Creates an instance of QueryCheck class. */ + public QueryCheck() { + } + /** * Get the query property: The rule query. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/QueuePurgesNotInAllowedRange.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/QueuePurgesNotInAllowedRange.java index cc71d2a68af7d..15212b008c8c6 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/QueuePurgesNotInAllowedRange.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/QueuePurgesNotInAllowedRange.java @@ -14,6 +14,10 @@ @JsonTypeName("QueuePurgesNotInAllowedRange") @Fluent public final class QueuePurgesNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Creates an instance of QueuePurgesNotInAllowedRange class. */ + public QueuePurgesNotInAllowedRange() { + } + /** {@inheritDoc} */ @Override public QueuePurgesNotInAllowedRange withTimeWindowSize(Duration timeWindowSize) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RecommendationConfigurationProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RecommendationConfigurationProperties.java index 4bec9912d971d..a341b65e2f068 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RecommendationConfigurationProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RecommendationConfigurationProperties.java @@ -29,6 +29,10 @@ public final class RecommendationConfigurationProperties { @JsonProperty(value = "status", required = true) private RecommendationConfigStatus status; + /** Creates an instance of RecommendationConfigurationProperties class. */ + public RecommendationConfigurationProperties() { + } + /** * Get the recommendationType property: The type of IoT Security recommendation. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RegulatoryComplianceAssessmentList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RegulatoryComplianceAssessmentList.java index c7e398b0e2eee..78680ee26fd5a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RegulatoryComplianceAssessmentList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RegulatoryComplianceAssessmentList.java @@ -25,6 +25,10 @@ public final class RegulatoryComplianceAssessmentList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of RegulatoryComplianceAssessmentList class. */ + public RegulatoryComplianceAssessmentList() { + } + /** * Get the value property: The value property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RegulatoryComplianceAssessments.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RegulatoryComplianceAssessments.java index f7253394f0327..9160e3c7dd57b 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RegulatoryComplianceAssessments.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RegulatoryComplianceAssessments.java @@ -47,15 +47,17 @@ PagedIterable list( * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object. * @param regulatoryComplianceControlName Name of the regulatory compliance control object. * @param regulatoryComplianceAssessmentName Name of the regulatory compliance assessment object. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return regulatory compliance assessment details and state. + * @return regulatory compliance assessment details and state along with {@link Response}. */ - RegulatoryComplianceAssessment get( + Response getWithResponse( String regulatoryComplianceStandardName, String regulatoryComplianceControlName, - String regulatoryComplianceAssessmentName); + String regulatoryComplianceAssessmentName, + Context context); /** * Supported regulatory compliance details and state for selected assessment. @@ -63,15 +65,13 @@ RegulatoryComplianceAssessment get( * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object. * @param regulatoryComplianceControlName Name of the regulatory compliance control object. * @param regulatoryComplianceAssessmentName Name of the regulatory compliance assessment object. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return regulatory compliance assessment details and state along with {@link Response}. + * @return regulatory compliance assessment details and state. */ - Response getWithResponse( + RegulatoryComplianceAssessment get( String regulatoryComplianceStandardName, String regulatoryComplianceControlName, - String regulatoryComplianceAssessmentName, - Context context); + String regulatoryComplianceAssessmentName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RegulatoryComplianceControlList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RegulatoryComplianceControlList.java index 44595b0ec4579..6b2e5c9d399f4 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RegulatoryComplianceControlList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RegulatoryComplianceControlList.java @@ -25,6 +25,10 @@ public final class RegulatoryComplianceControlList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of RegulatoryComplianceControlList class. */ + public RegulatoryComplianceControlList() { + } + /** * Get the value property: List of regulatory compliance controls. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RegulatoryComplianceControls.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RegulatoryComplianceControls.java index 08782ab016523..385f2bd80b6a1 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RegulatoryComplianceControls.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RegulatoryComplianceControls.java @@ -40,24 +40,24 @@ PagedIterable list( * * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object. * @param regulatoryComplianceControlName Name of the regulatory compliance control object. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return regulatory compliance control details and state. + * @return regulatory compliance control details and state along with {@link Response}. */ - RegulatoryComplianceControl get(String regulatoryComplianceStandardName, String regulatoryComplianceControlName); + Response getWithResponse( + String regulatoryComplianceStandardName, String regulatoryComplianceControlName, Context context); /** * Selected regulatory compliance control details and state. * * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object. * @param regulatoryComplianceControlName Name of the regulatory compliance control object. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return regulatory compliance control details and state along with {@link Response}. + * @return regulatory compliance control details and state. */ - Response getWithResponse( - String regulatoryComplianceStandardName, String regulatoryComplianceControlName, Context context); + RegulatoryComplianceControl get(String regulatoryComplianceStandardName, String regulatoryComplianceControlName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RegulatoryComplianceStandardList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RegulatoryComplianceStandardList.java index 66e78c79f995a..7f8bdd1c520df 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RegulatoryComplianceStandardList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RegulatoryComplianceStandardList.java @@ -25,6 +25,10 @@ public final class RegulatoryComplianceStandardList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of RegulatoryComplianceStandardList class. */ + public RegulatoryComplianceStandardList() { + } + /** * Get the value property: The value property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RegulatoryComplianceStandards.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RegulatoryComplianceStandards.java index 0351f1167db04..ff0bde1f64499 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RegulatoryComplianceStandards.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RegulatoryComplianceStandards.java @@ -35,22 +35,22 @@ public interface RegulatoryComplianceStandards { * Supported regulatory compliance details state for selected standard. * * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return regulatory compliance standard details and state. + * @return regulatory compliance standard details and state along with {@link Response}. */ - RegulatoryComplianceStandard get(String regulatoryComplianceStandardName); + Response getWithResponse(String regulatoryComplianceStandardName, Context context); /** * Supported regulatory compliance details state for selected standard. * * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return regulatory compliance standard details and state along with {@link Response}. + * @return regulatory compliance standard details and state. */ - Response getWithResponse(String regulatoryComplianceStandardName, Context context); + RegulatoryComplianceStandard get(String regulatoryComplianceStandardName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Remediation.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Remediation.java index e7d2892e94840..291027cfae4a7 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Remediation.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Remediation.java @@ -35,6 +35,10 @@ public final class Remediation { @JsonProperty(value = "portalLink") private String portalLink; + /** Creates an instance of Remediation class. */ + public Remediation() { + } + /** * Get the description property: Remediation description. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RemediationEta.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RemediationEta.java index 7193093cb08ef..5027a272f4d2d 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RemediationEta.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RemediationEta.java @@ -24,6 +24,10 @@ public final class RemediationEta { @JsonProperty(value = "justification", required = true) private String justification; + /** Creates an instance of RemediationEta class. */ + public RemediationEta() { + } + /** * Get the eta property: ETA for remediation. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ResourceDetails.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ResourceDetails.java index e62e2b1734b29..ea029e1eee550 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ResourceDetails.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ResourceDetails.java @@ -22,6 +22,10 @@ }) @Immutable public class ResourceDetails { + /** Creates an instance of ResourceDetails class. */ + public ResourceDetails() { + } + /** * Validates the instance. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ResourceIdentifier.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ResourceIdentifier.java index 42e3205aba6b1..01ec2444db5b9 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ResourceIdentifier.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ResourceIdentifier.java @@ -25,6 +25,10 @@ }) @Immutable public class ResourceIdentifier { + /** Creates an instance of ResourceIdentifier class. */ + public ResourceIdentifier() { + } + /** * Validates the instance. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Rule.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Rule.java index a3cfcdd6f3341..6164291139467 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Rule.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Rule.java @@ -45,6 +45,10 @@ public final class Rule { @JsonProperty(value = "ipAddresses") private List ipAddresses; + /** Creates an instance of Rule class. */ + public Rule() { + } + /** * Get the name property: The name of the rule. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RuleResultsInput.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RuleResultsInput.java index d63de02c01e96..0251a0b35200a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RuleResultsInput.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RuleResultsInput.java @@ -24,6 +24,10 @@ public final class RuleResultsInput { @JsonProperty(value = "results") private List> results; + /** Creates an instance of RuleResultsInput class. */ + public RuleResultsInput() { + } + /** * Get the latestScan property: Take results from latest scan. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RuleResultsProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RuleResultsProperties.java index eac0c76aafc11..53f49fa986abc 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RuleResultsProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RuleResultsProperties.java @@ -17,6 +17,10 @@ public final class RuleResultsProperties { @JsonProperty(value = "results") private List> results; + /** Creates an instance of RuleResultsProperties class. */ + public RuleResultsProperties() { + } + /** * Get the results property: Expected results in the baseline. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RulesResultsInput.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RulesResultsInput.java index 037d11ac215ed..54f878f6256e3 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RulesResultsInput.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/RulesResultsInput.java @@ -27,6 +27,10 @@ public final class RulesResultsInput { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map>> results; + /** Creates an instance of RulesResultsInput class. */ + public RulesResultsInput() { + } + /** * Get the latestScan property: Take results from latest scan. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ScanProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ScanProperties.java index 21ef61660c41e..e0cd0eb6d4fe9 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ScanProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ScanProperties.java @@ -95,6 +95,10 @@ public final class ScanProperties { @JsonProperty(value = "isBaselineApplied") private Boolean isBaselineApplied; + /** Creates an instance of ScanProperties class. */ + public ScanProperties() { + } + /** * Get the triggerType property: The scan trigger type. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ScanResultProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ScanResultProperties.java index 94d4d60fbb8ef..da96966e92b6a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ScanResultProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ScanResultProperties.java @@ -53,6 +53,10 @@ public final class ScanResultProperties { @JsonProperty(value = "ruleMetadata") private VaRule ruleMetadata; + /** Creates an instance of ScanResultProperties class. */ + public ScanResultProperties() { + } + /** * Get the ruleId property: The rule Id. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ScopeElement.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ScopeElement.java index 5ea7c8a2e42f2..8eb0bdabdc8d2 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ScopeElement.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ScopeElement.java @@ -26,6 +26,10 @@ public final class ScopeElement { */ @JsonIgnore private Map additionalProperties; + /** Creates an instance of ScopeElement class. */ + public ScopeElement() { + } + /** * Get the field property: The alert entity type to suppress by. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecureScoreControlDefinitionList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecureScoreControlDefinitionList.java index 44662a04e48ee..c998268ff6f70 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecureScoreControlDefinitionList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecureScoreControlDefinitionList.java @@ -24,6 +24,10 @@ public final class SecureScoreControlDefinitionList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SecureScoreControlDefinitionList class. */ + public SecureScoreControlDefinitionList() { + } + /** * Get the value property: Collection of security controls definition in this page. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecureScoreControlDefinitionSource.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecureScoreControlDefinitionSource.java index 154c15bc518cf..cb58923bd5939 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecureScoreControlDefinitionSource.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecureScoreControlDefinitionSource.java @@ -16,6 +16,10 @@ public final class SecureScoreControlDefinitionSource { @JsonProperty(value = "sourceType") private ControlType sourceType; + /** Creates an instance of SecureScoreControlDefinitionSource class. */ + public SecureScoreControlDefinitionSource() { + } + /** * Get the sourceType property: The type of security control (for example, BuiltIn). * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecureScoreControlList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecureScoreControlList.java index a82c390450132..28c1e30072c1c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecureScoreControlList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecureScoreControlList.java @@ -24,6 +24,10 @@ public final class SecureScoreControlList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SecureScoreControlList class. */ + public SecureScoreControlList() { + } + /** * Get the value property: Collection of security controls in this page. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecureScores.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecureScores.java index 72e5d1372c228..0eaea250df3f1 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecureScores.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecureScores.java @@ -36,12 +36,14 @@ public interface SecureScores { * * @param secureScoreName The initiative name. For the ASC Default initiative, use 'ascScore' as in the sample * request below. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return secure score for a specific Microsoft Defender for Cloud initiative within your current scope. + * @return secure score for a specific Microsoft Defender for Cloud initiative within your current scope along with + * {@link Response}. */ - SecureScoreItem get(String secureScoreName); + Response getWithResponse(String secureScoreName, Context context); /** * Get secure score for a specific Microsoft Defender for Cloud initiative within your current scope. For the ASC @@ -49,12 +51,10 @@ public interface SecureScores { * * @param secureScoreName The initiative name. For the ASC Default initiative, use 'ascScore' as in the sample * request below. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return secure score for a specific Microsoft Defender for Cloud initiative within your current scope along with - * {@link Response}. + * @return secure score for a specific Microsoft Defender for Cloud initiative within your current scope. */ - Response getWithResponse(String secureScoreName, Context context); + SecureScoreItem get(String secureScoreName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecureScoresList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecureScoresList.java index 61e760addfcf2..2426cf1eb5593 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecureScoresList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecureScoresList.java @@ -24,6 +24,10 @@ public final class SecureScoresList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SecureScoresList class. */ + public SecureScoresList() { + } + /** * Get the value property: Collection of secure scores in this page. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessment.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessment.java index b6cba850bd204..601a6b0acd394 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessment.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessment.java @@ -20,6 +20,10 @@ public final class SecurityAssessment extends ProxyResource { @JsonProperty(value = "properties") private SecurityAssessmentProperties innerProperties; + /** Creates an instance of SecurityAssessment class. */ + public SecurityAssessment() { + } + /** * Get the innerProperties property: Describes properties of an assessment. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessmentList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessmentList.java index 9a6822e23387c..da8191d8e6fec 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessmentList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessmentList.java @@ -24,6 +24,10 @@ public final class SecurityAssessmentList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SecurityAssessmentList class. */ + public SecurityAssessmentList() { + } + /** * Get the value property: Collection of security assessments in this page. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessmentMetadataPartnerData.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessmentMetadataPartnerData.java index 49996c5483054..27d9d4195c0e2 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessmentMetadataPartnerData.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessmentMetadataPartnerData.java @@ -29,6 +29,10 @@ public final class SecurityAssessmentMetadataPartnerData { @JsonProperty(value = "secret", required = true) private String secret; + /** Creates an instance of SecurityAssessmentMetadataPartnerData class. */ + public SecurityAssessmentMetadataPartnerData() { + } + /** * Get the partnerName property: Name of the company of the partner. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessmentMetadataPropertiesResponsePublishDates.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessmentMetadataPropertiesResponsePublishDates.java index 803eb97d7df7d..1120250758c66 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessmentMetadataPropertiesResponsePublishDates.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessmentMetadataPropertiesResponsePublishDates.java @@ -23,6 +23,10 @@ public final class SecurityAssessmentMetadataPropertiesResponsePublishDates { @JsonProperty(value = "public", required = true) private String publicProperty; + /** Creates an instance of SecurityAssessmentMetadataPropertiesResponsePublishDates class. */ + public SecurityAssessmentMetadataPropertiesResponsePublishDates() { + } + /** * Get the ga property: The GA property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessmentMetadataResponseList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessmentMetadataResponseList.java index 44e2909f74ea2..775e521262aaa 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessmentMetadataResponseList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessmentMetadataResponseList.java @@ -24,6 +24,10 @@ public final class SecurityAssessmentMetadataResponseList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SecurityAssessmentMetadataResponseList class. */ + public SecurityAssessmentMetadataResponseList() { + } + /** * Get the value property: The value property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessmentPartnerData.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessmentPartnerData.java index 78e4131ebe0c2..4dce90e6516d3 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessmentPartnerData.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessmentPartnerData.java @@ -23,6 +23,10 @@ public final class SecurityAssessmentPartnerData { @JsonProperty(value = "secret", required = true) private String secret; + /** Creates an instance of SecurityAssessmentPartnerData class. */ + public SecurityAssessmentPartnerData() { + } + /** * Get the partnerName property: Name of the company of the partner. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessmentPropertiesBase.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessmentPropertiesBase.java index 7ba6093a7ee54..c595aa48c2530 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessmentPropertiesBase.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityAssessmentPropertiesBase.java @@ -51,6 +51,10 @@ public class SecurityAssessmentPropertiesBase { @JsonProperty(value = "partnersData") private SecurityAssessmentPartnerData partnersData; + /** Creates an instance of SecurityAssessmentPropertiesBase class. */ + public SecurityAssessmentPropertiesBase() { + } + /** * Get the resourceDetails property: Details of the resource that was assessed. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityConnectorApplicationOperations.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityConnectorApplicationOperations.java index 9d04d5c35366e..82ae177d90324 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityConnectorApplicationOperations.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityConnectorApplicationOperations.java @@ -10,20 +10,6 @@ /** Resource collection API of SecurityConnectorApplicationOperations. */ public interface SecurityConnectorApplicationOperations { - /** - * Get a specific application for the requested scope by applicationId. - * - * @param resourceGroupName The name of the resource group within the user's subscription. The name is case - * insensitive. - * @param securityConnectorName The security connector name. - * @param applicationId The security Application key - unique key for the standard application. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specific application for the requested scope by applicationId. - */ - Application get(String resourceGroupName, String securityConnectorName, String applicationId); - /** * Get a specific application for the requested scope by applicationId. * @@ -41,20 +27,18 @@ Response getWithResponse( String resourceGroupName, String securityConnectorName, String applicationId, Context context); /** - * Creates or update a security Application on the given security connector. + * Get a specific application for the requested scope by applicationId. * * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param securityConnectorName The security connector name. * @param applicationId The security Application key - unique key for the standard application. - * @param 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. + * @return a specific application for the requested scope by applicationId. */ - Application createOrUpdate( - String resourceGroupName, String securityConnectorName, String applicationId, ApplicationInner application); + Application get(String resourceGroupName, String securityConnectorName, String applicationId); /** * Creates or update a security Application on the given security connector. @@ -78,17 +62,20 @@ Response createOrUpdateWithResponse( Context context); /** - * Delete an Application over a given scope. + * Creates or update a security Application on the given security connector. * * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param securityConnectorName The security connector name. * @param applicationId The security Application key - unique key for the standard application. + * @param application Application over a subscription scope. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return security Application over a given scope. */ - void delete(String resourceGroupName, String securityConnectorName, String applicationId); + Application createOrUpdate( + String resourceGroupName, String securityConnectorName, String applicationId, ApplicationInner application); /** * Delete an Application over a given scope. @@ -105,4 +92,17 @@ Response createOrUpdateWithResponse( */ Response deleteWithResponse( String resourceGroupName, String securityConnectorName, String applicationId, Context context); + + /** + * Delete an Application over a given scope. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param securityConnectorName The security connector name. + * @param applicationId The security Application key - unique key for the standard application. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String securityConnectorName, String applicationId); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityConnectorGovernanceRulesOperations.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityConnectorGovernanceRulesOperations.java index 3a528c5bac2e1..8105ecc88148e 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityConnectorGovernanceRulesOperations.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityConnectorGovernanceRulesOperations.java @@ -10,20 +10,6 @@ /** Resource collection API of SecurityConnectorGovernanceRulesOperations. */ public interface SecurityConnectorGovernanceRulesOperations { - /** - * Get a specific governanceRule for the requested scope by ruleId. - * - * @param resourceGroupName The name of the resource group within the user's subscription. The name is case - * insensitive. - * @param securityConnectorName The security connector name. - * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 governanceRule for the requested scope by ruleId. - */ - GovernanceRule get(String resourceGroupName, String securityConnectorName, String ruleId); - /** * Get a specific governanceRule for the requested scope by ruleId. * @@ -41,20 +27,18 @@ Response getWithResponse( String resourceGroupName, String securityConnectorName, String ruleId, Context context); /** - * Creates or update a security GovernanceRule on the given security connector. + * Get a specific governanceRule for the requested scope by ruleId. * * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param securityConnectorName The security connector name. * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. - * @param governanceRule GovernanceRule 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 GovernanceRule over a given scope. + * @return a specific governanceRule for the requested scope by ruleId. */ - GovernanceRule createOrUpdate( - String resourceGroupName, String securityConnectorName, String ruleId, GovernanceRuleInner governanceRule); + GovernanceRule get(String resourceGroupName, String securityConnectorName, String ruleId); /** * Creates or update a security GovernanceRule on the given security connector. @@ -78,17 +62,20 @@ Response createOrUpdateWithResponse( Context context); /** - * Delete a GovernanceRule over a given scope. + * Creates or update a security GovernanceRule on the given security connector. * * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param securityConnectorName The security connector name. * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. + * @param governanceRule GovernanceRule 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 GovernanceRule over a given scope. */ - void delete(String resourceGroupName, String securityConnectorName, String ruleId); + GovernanceRule createOrUpdate( + String resourceGroupName, String securityConnectorName, String ruleId, GovernanceRuleInner governanceRule); /** * Delete a GovernanceRule over a given scope. @@ -105,4 +92,17 @@ Response createOrUpdateWithResponse( */ Response deleteWithResponse( String resourceGroupName, String securityConnectorName, String ruleId, Context context); + + /** + * Delete a GovernanceRule over a given scope. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param securityConnectorName The security connector name. + * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String securityConnectorName, String ruleId); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityConnectors.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityConnectors.java index f0aea1b7b37eb..771160d2616a7 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityConnectors.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityConnectors.java @@ -65,12 +65,14 @@ public interface SecurityConnectors { * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param securityConnectorName The security connector name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the security connector resource. + * @return the security connector resource along with {@link Response}. */ - SecurityConnector getByResourceGroup(String resourceGroupName, String securityConnectorName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String securityConnectorName, Context context); /** * Retrieves details of a specific security connector. @@ -78,14 +80,12 @@ public interface SecurityConnectors { * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param securityConnectorName The security connector name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the security connector resource along with {@link Response}. + * @return the security connector resource. */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String securityConnectorName, Context context); + SecurityConnector getByResourceGroup(String resourceGroupName, String securityConnectorName); /** * Deletes a security connector. @@ -93,11 +93,14 @@ Response getByResourceGroupWithResponse( * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param securityConnectorName The security connector name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void deleteByResourceGroup(String resourceGroupName, String securityConnectorName); + Response deleteByResourceGroupWithResponse( + String resourceGroupName, String securityConnectorName, Context context); /** * Deletes a security connector. @@ -105,13 +108,11 @@ Response getByResourceGroupWithResponse( * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param securityConnectorName The security connector name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response deleteWithResponse(String resourceGroupName, String securityConnectorName, Context context); + void deleteByResourceGroup(String resourceGroupName, String securityConnectorName); /** * Retrieves details of a specific security connector. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityConnectorsList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityConnectorsList.java index 1425f2ada5261..0ca9a3fac4039 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityConnectorsList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityConnectorsList.java @@ -25,6 +25,10 @@ public final class SecurityConnectorsList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SecurityConnectorsList class. */ + public SecurityConnectorsList() { + } + /** * Get the value property: The list of security connectors under the given scope. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityContactList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityContactList.java index d3a5812da7b88..b7d66ee7637a8 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityContactList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityContactList.java @@ -24,6 +24,10 @@ public final class SecurityContactList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SecurityContactList class. */ + public SecurityContactList() { + } + /** * Get the value property: List of security contacts. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityContactPropertiesAlertNotifications.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityContactPropertiesAlertNotifications.java index 2668974e611a4..81db15aec4f71 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityContactPropertiesAlertNotifications.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityContactPropertiesAlertNotifications.java @@ -22,6 +22,10 @@ public final class SecurityContactPropertiesAlertNotifications { @JsonProperty(value = "minimalSeverity") private MinimalSeverity minimalSeverity; + /** Creates an instance of SecurityContactPropertiesAlertNotifications class. */ + public SecurityContactPropertiesAlertNotifications() { + } + /** * Get the state property: Defines if email notifications will be sent about new security alerts. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityContactPropertiesNotificationsByRole.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityContactPropertiesNotificationsByRole.java index 4aa910fcc759f..b545f132b6f5c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityContactPropertiesNotificationsByRole.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityContactPropertiesNotificationsByRole.java @@ -28,6 +28,10 @@ public final class SecurityContactPropertiesNotificationsByRole { @JsonProperty(value = "roles") private List roles; + /** Creates an instance of SecurityContactPropertiesNotificationsByRole class. */ + public SecurityContactPropertiesNotificationsByRole() { + } + /** * Get the state property: Defines whether to send email notifications from AMicrosoft Defender for Cloud to persons * with specific RBAC roles on the subscription. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityContacts.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityContacts.java index 227ee9115bd83..e1412d1a5675f 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityContacts.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityContacts.java @@ -34,46 +34,46 @@ public interface SecurityContacts { * Get Default Security contact configurations for the subscription. * * @param securityContactName Name of the security contact object. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return default Security contact configurations for the subscription. + * @return default Security contact configurations for the subscription along with {@link Response}. */ - SecurityContact get(String securityContactName); + Response getWithResponse(String securityContactName, Context context); /** * Get Default Security contact configurations for the subscription. * * @param securityContactName Name of the security contact object. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return default Security contact configurations for the subscription along with {@link Response}. + * @return default Security contact configurations for the subscription. */ - Response getWithResponse(String securityContactName, Context context); + SecurityContact get(String securityContactName); /** * Delete security contact configurations for the subscription. * * @param securityContactName Name of the security contact object. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void delete(String securityContactName); + Response deleteWithResponse(String securityContactName, Context context); /** * Delete security contact configurations for the subscription. * * @param securityContactName Name of the security contact object. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response deleteWithResponse(String securityContactName, Context context); + void delete(String securityContactName); /** * Get Default Security contact configurations for the subscription. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecuritySolutionList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecuritySolutionList.java index 44123b201f721..a5fc878523e7a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecuritySolutionList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecuritySolutionList.java @@ -24,6 +24,10 @@ public final class SecuritySolutionList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SecuritySolutionList class. */ + public SecuritySolutionList() { + } + /** * Get the value property: The value property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecuritySolutions.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecuritySolutions.java index 99cc325dd7881..12e3cc8370d2a 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecuritySolutions.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecuritySolutions.java @@ -38,12 +38,14 @@ public interface SecuritySolutions { * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param securitySolutionName Name of 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 Security Solution. + * @return a specific Security Solution along with {@link Response}. */ - SecuritySolution get(String resourceGroupName, String ascLocation, String securitySolutionName); + Response getWithResponse( + String resourceGroupName, String ascLocation, String securitySolutionName, Context context); /** * Gets a specific Security Solution. @@ -53,12 +55,10 @@ public interface SecuritySolutions { * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param securitySolutionName Name of 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 Security Solution along with {@link Response}. + * @return a specific Security Solution. */ - Response getWithResponse( - String resourceGroupName, String ascLocation, String securitySolutionName, Context context); + SecuritySolution get(String resourceGroupName, String ascLocation, String securitySolutionName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecuritySolutionsReferenceData.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecuritySolutionsReferenceData.java index a3b4d8178645c..5eb1d385e607d 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecuritySolutionsReferenceData.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecuritySolutionsReferenceData.java @@ -25,6 +25,10 @@ public final class SecuritySolutionsReferenceData extends ProxyResource { @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY) private String location; + /** Creates an instance of SecuritySolutionsReferenceData class. */ + public SecuritySolutionsReferenceData() { + } + /** * Get the innerProperties property: The properties property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecuritySolutionsReferenceDatas.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecuritySolutionsReferenceDatas.java index 6ab41100c193d..bbd7275d64111 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecuritySolutionsReferenceDatas.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecuritySolutionsReferenceDatas.java @@ -12,45 +12,45 @@ public interface SecuritySolutionsReferenceDatas { /** * Gets a list of all supported Security Solutions for the subscription. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all supported Security Solutions for the subscription. + * @return a list of all supported Security Solutions for the subscription along with {@link Response}. */ - SecuritySolutionsReferenceDataList list(); + Response listWithResponse(Context context); /** * Gets a list of all supported Security Solutions for the subscription. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all supported Security Solutions for the subscription along with {@link Response}. + * @return a list of all supported Security Solutions for the subscription. */ - Response listWithResponse(Context context); + SecuritySolutionsReferenceDataList list(); /** * Gets list of all supported Security Solutions for subscription and location. * * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of all supported Security Solutions for subscription and location. + * @return list of all supported Security Solutions for subscription and location along with {@link Response}. */ - SecuritySolutionsReferenceDataList listByHomeRegion(String ascLocation); + Response listByHomeRegionWithResponse(String ascLocation, Context context); /** * Gets list of all supported Security Solutions for subscription and location. * * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of all supported Security Solutions for subscription and location along with {@link Response}. + * @return list of all supported Security Solutions for subscription and location. */ - Response listByHomeRegionWithResponse(String ascLocation, Context context); + SecuritySolutionsReferenceDataList listByHomeRegion(String ascLocation); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecuritySubAssessmentList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecuritySubAssessmentList.java index aed53d20f397e..a2d68d4562fb7 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecuritySubAssessmentList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecuritySubAssessmentList.java @@ -24,6 +24,10 @@ public final class SecuritySubAssessmentList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SecuritySubAssessmentList class. */ + public SecuritySubAssessmentList() { + } + /** * Get the value property: The value property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityTaskList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityTaskList.java index 4cf18c599f7c1..e48a857aa698f 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityTaskList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityTaskList.java @@ -24,6 +24,10 @@ public final class SecurityTaskList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SecurityTaskList class. */ + public SecurityTaskList() { + } + /** * Get the value property: The value property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityTaskParameters.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityTaskParameters.java index a113ab8e40f5d..3ae19b0403014 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityTaskParameters.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SecurityTaskParameters.java @@ -26,6 +26,10 @@ public final class SecurityTaskParameters { */ @JsonIgnore private Map additionalProperties; + /** Creates an instance of SecurityTaskParameters class. */ + public SecurityTaskParameters() { + } + /** * Get the name property: Name of the task type. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SensitivityLabel.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SensitivityLabel.java index 075587f097dbf..c7ef875b87661 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SensitivityLabel.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SensitivityLabel.java @@ -40,6 +40,10 @@ public final class SensitivityLabel { @JsonProperty(value = "enabled") private Boolean enabled; + /** Creates an instance of SensitivityLabel class. */ + public SensitivityLabel() { + } + /** * Get the displayName property: The name of the sensitivity label. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ServerVulnerabilityAssessments.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ServerVulnerabilityAssessments.java index f3de9ee48fd33..e6d69d38502b7 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ServerVulnerabilityAssessments.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ServerVulnerabilityAssessments.java @@ -17,13 +17,15 @@ public interface ServerVulnerabilityAssessments { * @param resourceNamespace The Namespace of the resource. * @param resourceType The type of the resource. * @param resourceName Name of the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of server vulnerability assessment onboarding statuses on a given resource. + * @return a list of server vulnerability assessment onboarding statuses on a given resource along with {@link + * Response}. */ - ServerVulnerabilityAssessmentsList listByExtendedResource( - String resourceGroupName, String resourceNamespace, String resourceType, String resourceName); + Response listByExtendedResourceWithResponse( + String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context); /** * Gets a list of server vulnerability assessment onboarding statuses on a given resource. @@ -33,15 +35,13 @@ ServerVulnerabilityAssessmentsList listByExtendedResource( * @param resourceNamespace The Namespace of the resource. * @param resourceType The type of the resource. * @param resourceName Name of the resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of server vulnerability assessment onboarding statuses on a given resource along with {@link - * Response}. + * @return a list of server vulnerability assessment onboarding statuses on a given resource. */ - Response listByExtendedResourceWithResponse( - String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context); + ServerVulnerabilityAssessmentsList listByExtendedResource( + String resourceGroupName, String resourceNamespace, String resourceType, String resourceName); /** * Gets a server vulnerability assessment onboarding statuses on a given resource. @@ -51,13 +51,14 @@ Response listByExtendedResourceWithResponse( * @param resourceNamespace The Namespace of the resource. * @param resourceType The type of the resource. * @param resourceName Name of the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a server vulnerability assessment onboarding statuses on a given resource. + * @return a server vulnerability assessment onboarding statuses on a given resource along with {@link Response}. */ - ServerVulnerabilityAssessment get( - String resourceGroupName, String resourceNamespace, String resourceType, String resourceName); + Response getWithResponse( + String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context); /** * Gets a server vulnerability assessment onboarding statuses on a given resource. @@ -67,14 +68,13 @@ ServerVulnerabilityAssessment get( * @param resourceNamespace The Namespace of the resource. * @param resourceType The type of the resource. * @param resourceName Name of the resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a server vulnerability assessment onboarding statuses on a given resource along with {@link Response}. + * @return a server vulnerability assessment onboarding statuses on a given resource. */ - Response getWithResponse( - String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context); + ServerVulnerabilityAssessment get( + String resourceGroupName, String resourceNamespace, String resourceType, String resourceName); /** * Creating a server vulnerability assessment on a resource, which will onboard a resource for having a @@ -85,13 +85,14 @@ Response getWithResponse( * @param resourceNamespace The Namespace of the resource. * @param resourceType The type of the resource. * @param resourceName Name of the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the server vulnerability assessment details on a resource. + * @return describes the server vulnerability assessment details on a resource along with {@link Response}. */ - ServerVulnerabilityAssessment createOrUpdate( - String resourceGroupName, String resourceNamespace, String resourceType, String resourceName); + Response createOrUpdateWithResponse( + String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context); /** * Creating a server vulnerability assessment on a resource, which will onboard a resource for having a @@ -102,14 +103,13 @@ ServerVulnerabilityAssessment createOrUpdate( * @param resourceNamespace The Namespace of the resource. * @param resourceType The type of the resource. * @param resourceName Name of the resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the server vulnerability assessment details on a resource along with {@link Response}. + * @return describes the server vulnerability assessment details on a resource. */ - Response createOrUpdateWithResponse( - String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context); + ServerVulnerabilityAssessment createOrUpdate( + String resourceGroupName, String resourceNamespace, String resourceType, String resourceName); /** * Removing server vulnerability assessment from a resource. diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ServerVulnerabilityProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ServerVulnerabilityProperties.java index 69b9187c4ea83..c7de7567c6270 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ServerVulnerabilityProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ServerVulnerabilityProperties.java @@ -61,6 +61,10 @@ public final class ServerVulnerabilityProperties extends AdditionalData { @JsonProperty(value = "vendorReferences", access = JsonProperty.Access.WRITE_ONLY) private List vendorReferences; + /** Creates an instance of ServerVulnerabilityProperties class. */ + public ServerVulnerabilityProperties() { + } + /** * Get the type property: Vulnerability Type. e.g: Vulnerability, Potential Vulnerability, Information Gathered. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ServicePrincipalProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ServicePrincipalProperties.java index 71b46d67c5f76..ac8e8dae079fd 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ServicePrincipalProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ServicePrincipalProperties.java @@ -23,6 +23,10 @@ public final class ServicePrincipalProperties { @JsonProperty(value = "secret") private String secret; + /** Creates an instance of ServicePrincipalProperties class. */ + public ServicePrincipalProperties() { + } + /** * Get the applicationId property: Application ID of service principal. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Settings.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Settings.java index 9da476550d083..07a2899484cee 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Settings.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Settings.java @@ -35,47 +35,47 @@ public interface Settings { * Settings of different configurations in Microsoft Defender for Cloud. * * @param settingName The name of the setting. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the kind of the security setting. + * @return the kind of the security setting along with {@link Response}. */ - Setting get(SettingName settingName); + Response getWithResponse(SettingName settingName, Context context); /** * Settings of different configurations in Microsoft Defender for Cloud. * * @param settingName The name of the setting. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the kind of the security setting along with {@link Response}. + * @return the kind of the security setting. */ - Response getWithResponse(SettingName settingName, Context context); + Setting get(SettingName settingName); /** * updating settings about different configurations in Microsoft Defender for Cloud. * * @param settingName The name of the setting. * @param setting Setting object. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the kind of the security setting. + * @return the kind of the security setting along with {@link Response}. */ - Setting update(SettingName settingName, SettingInner setting); + Response updateWithResponse(SettingName settingName, SettingInner setting, Context context); /** * updating settings about different configurations in Microsoft Defender for Cloud. * * @param settingName The name of the setting. * @param setting Setting object. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the kind of the security setting along with {@link Response}. + * @return the kind of the security setting. */ - Response updateWithResponse(SettingName settingName, SettingInner setting, Context context); + Setting update(SettingName settingName, SettingInner setting); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SettingsList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SettingsList.java index 9b7826c8cd3d8..2eed3069385b2 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SettingsList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SettingsList.java @@ -24,6 +24,10 @@ public final class SettingsList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SettingsList class. */ + public SettingsList() { + } + /** * Get the value property: The settings list. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SoftwareInventories.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SoftwareInventories.java index 8144e03dc49ba..39ef49cfcca15 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SoftwareInventories.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SoftwareInventories.java @@ -74,17 +74,19 @@ PagedIterable listByExtendedResource( * @param resourceType The type of the resource. * @param resourceName Name of the resource. * @param softwareName Name of the installed software. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a single software data of the virtual machine. + * @return a single software data of the virtual machine along with {@link Response}. */ - Software get( + Response getWithResponse( String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, - String softwareName); + String softwareName, + Context context); /** * Gets a single software data of the virtual machine. @@ -95,17 +97,15 @@ Software get( * @param resourceType The type of the resource. * @param resourceName Name of the resource. * @param softwareName Name of the installed software. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a single software data of the virtual machine along with {@link Response}. + * @return a single software data of the virtual machine. */ - Response getWithResponse( + Software get( String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, - String softwareName, - Context context); + String softwareName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SoftwaresList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SoftwaresList.java index 48805ffbfe447..8e5cfbd0350f2 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SoftwaresList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SoftwaresList.java @@ -24,6 +24,10 @@ public final class SoftwaresList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SoftwaresList class. */ + public SoftwaresList() { + } + /** * Get the value property: The value property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SqlServerVulnerabilityProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SqlServerVulnerabilityProperties.java index 91399e3be482d..2f7ed95eb8309 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SqlServerVulnerabilityProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SqlServerVulnerabilityProperties.java @@ -26,6 +26,10 @@ public final class SqlServerVulnerabilityProperties extends AdditionalData { @JsonProperty(value = "query", access = JsonProperty.Access.WRITE_ONLY) private String query; + /** Creates an instance of SqlServerVulnerabilityProperties class. */ + public SqlServerVulnerabilityProperties() { + } + /** * Get the type property: The resource type the sub assessment refers to in its resource details. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SqlVulnerabilityAssessmentBaselineRules.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SqlVulnerabilityAssessmentBaselineRules.java index ed6c859b131c4..56a81b4148ff3 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SqlVulnerabilityAssessmentBaselineRules.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SqlVulnerabilityAssessmentBaselineRules.java @@ -9,19 +9,6 @@ /** Resource collection API of SqlVulnerabilityAssessmentBaselineRules. */ public interface SqlVulnerabilityAssessmentBaselineRules { - /** - * Gets the results for a given rule in the Baseline. - * - * @param ruleId The rule Id. - * @param workspaceId The workspace Id. - * @param resourceId The identifier of the resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the results for a given rule in the Baseline. - */ - RuleResults get(String ruleId, String workspaceId, String resourceId); - /** * Gets the results for a given rule in the Baseline. * @@ -37,7 +24,7 @@ public interface SqlVulnerabilityAssessmentBaselineRules { Response getWithResponse(String ruleId, String workspaceId, String resourceId, Context context); /** - * Deletes a rule from the Baseline of a given database. + * Gets the results for a given rule in the Baseline. * * @param ruleId The rule Id. * @param workspaceId The workspace Id. @@ -45,8 +32,9 @@ public interface SqlVulnerabilityAssessmentBaselineRules { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the results for a given rule in the Baseline. */ - void delete(String ruleId, String workspaceId, String resourceId); + RuleResults get(String ruleId, String workspaceId, String resourceId); /** * Deletes a rule from the Baseline of a given database. @@ -63,16 +51,16 @@ public interface SqlVulnerabilityAssessmentBaselineRules { Response deleteWithResponse(String ruleId, String workspaceId, String resourceId, Context context); /** - * Gets the results for all rules in the Baseline. + * Deletes a rule from the Baseline of a given database. * + * @param ruleId The rule Id. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the results for all rules in the Baseline. */ - RulesResults list(String workspaceId, String resourceId); + void delete(String ruleId, String workspaceId, String resourceId); /** * Gets the results for all rules in the Baseline. @@ -88,16 +76,16 @@ public interface SqlVulnerabilityAssessmentBaselineRules { Response listWithResponse(String workspaceId, String resourceId, Context context); /** - * Add a list of baseline rules. Will overwrite any previously existing results (for all rules). + * Gets the results for all rules in the Baseline. * * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of rules results. + * @return the results for all rules in the Baseline. */ - RulesResults add(String workspaceId, String resourceId); + RulesResults list(String workspaceId, String resourceId); /** * Add a list of baseline rules. Will overwrite any previously existing results (for all rules). @@ -114,6 +102,18 @@ public interface SqlVulnerabilityAssessmentBaselineRules { Response addWithResponse( String workspaceId, String resourceId, RulesResultsInput body, Context context); + /** + * Add a list of baseline rules. Will overwrite any previously existing results (for all rules). + * + * @param workspaceId The workspace Id. + * @param resourceId The identifier of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of rules results. + */ + RulesResults add(String workspaceId, String resourceId); + /** * Begins definition for a new RuleResults resource. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SqlVulnerabilityAssessmentScanResults.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SqlVulnerabilityAssessmentScanResults.java index 80f36f1b6608d..c6eac8f24e30c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SqlVulnerabilityAssessmentScanResults.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SqlVulnerabilityAssessmentScanResults.java @@ -16,12 +16,14 @@ public interface SqlVulnerabilityAssessmentScanResults { * @param scanResultId The rule Id of the results. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the scan results of a single rule in a scan record. + * @return the scan results of a single rule in a scan record along with {@link Response}. */ - ScanResult get(String scanId, String scanResultId, String workspaceId, String resourceId); + Response getWithResponse( + String scanId, String scanResultId, String workspaceId, String resourceId, Context context); /** * Gets the scan results of a single rule in a scan record. @@ -30,14 +32,12 @@ public interface SqlVulnerabilityAssessmentScanResults { * @param scanResultId The rule Id of the results. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the scan results of a single rule in a scan record along with {@link Response}. + * @return the scan results of a single rule in a scan record. */ - Response getWithResponse( - String scanId, String scanResultId, String workspaceId, String resourceId, Context context); + ScanResult get(String scanId, String scanResultId, String workspaceId, String resourceId); /** * Gets a list of scan results for a single scan record. @@ -45,12 +45,13 @@ Response getWithResponse( * @param scanId The scan Id. Type 'latest' to get the scan results for the latest scan. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of scan results for a single scan record. + * @return a list of scan results for a single scan record along with {@link Response}. */ - ScanResults list(String scanId, String workspaceId, String resourceId); + Response listWithResponse(String scanId, String workspaceId, String resourceId, Context context); /** * Gets a list of scan results for a single scan record. @@ -58,11 +59,10 @@ Response getWithResponse( * @param scanId The scan Id. Type 'latest' to get the scan results for the latest scan. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of scan results for a single scan record along with {@link Response}. + * @return a list of scan results for a single scan record. */ - Response listWithResponse(String scanId, String workspaceId, String resourceId, Context context); + ScanResults list(String scanId, String workspaceId, String resourceId); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SqlVulnerabilityAssessmentScans.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SqlVulnerabilityAssessmentScans.java index a32839763aa28..7337b7390e8b4 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SqlVulnerabilityAssessmentScans.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SqlVulnerabilityAssessmentScans.java @@ -15,12 +15,13 @@ public interface SqlVulnerabilityAssessmentScans { * @param scanId The scan Id. Type 'latest' to get the scan record for the latest scan. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the scan details of a single scan record. + * @return the scan details of a single scan record along with {@link Response}. */ - Scan get(String scanId, String workspaceId, String resourceId); + Response getWithResponse(String scanId, String workspaceId, String resourceId, Context context); /** * Gets the scan details of a single scan record. @@ -28,36 +29,35 @@ public interface SqlVulnerabilityAssessmentScans { * @param scanId The scan Id. Type 'latest' to get the scan record for the latest scan. * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the scan details of a single scan record along with {@link Response}. + * @return the scan details of a single scan record. */ - Response getWithResponse(String scanId, String workspaceId, String resourceId, Context context); + Scan get(String scanId, String workspaceId, String resourceId); /** * Gets a list of scan records. * * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of scan records. + * @return a list of scan records along with {@link Response}. */ - Scans list(String workspaceId, String resourceId); + Response listWithResponse(String workspaceId, String resourceId, Context context); /** * Gets a list of scan records. * * @param workspaceId The workspace Id. * @param resourceId The identifier of the resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of scan records along with {@link Response}. + * @return a list of scan records. */ - Response listWithResponse(String workspaceId, String resourceId, Context context); + Scans list(String workspaceId, String resourceId); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SubAssessmentStatus.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SubAssessmentStatus.java index 561a6409e44cd..9efbfea31765c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SubAssessmentStatus.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SubAssessmentStatus.java @@ -34,6 +34,10 @@ public final class SubAssessmentStatus { @JsonProperty(value = "severity", access = JsonProperty.Access.WRITE_ONLY) private Severity severity; + /** Creates an instance of SubAssessmentStatus class. */ + public SubAssessmentStatus() { + } + /** * Get the code property: Programmatic code for the status of the assessment. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SubAssessments.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SubAssessments.java index a7733481d5c90..d2fe59954510c 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SubAssessments.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SubAssessments.java @@ -73,12 +73,14 @@ public interface SubAssessments { * management group (/providers/Microsoft.Management/managementGroups/mgName). * @param assessmentName The Assessment Key - Unique key for the assessment type. * @param subAssessmentName The Sub-Assessment Key - Unique key for the sub-assessment type. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a security sub-assessment on your scanned resource. + * @return a security sub-assessment on your scanned resource along with {@link Response}. */ - SecuritySubAssessment get(String scope, String assessmentName, String subAssessmentName); + Response getWithResponse( + String scope, String assessmentName, String subAssessmentName, Context context); /** * Get a security sub-assessment on your scanned resource. @@ -87,12 +89,10 @@ public interface SubAssessments { * management group (/providers/Microsoft.Management/managementGroups/mgName). * @param assessmentName The Assessment Key - Unique key for the assessment type. * @param subAssessmentName The Sub-Assessment Key - Unique key for the sub-assessment type. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a security sub-assessment on your scanned resource along with {@link Response}. + * @return a security sub-assessment on your scanned resource. */ - Response getWithResponse( - String scope, String assessmentName, String subAssessmentName, Context context); + SecuritySubAssessment get(String scope, String assessmentName, String subAssessmentName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SuppressionAlertsScope.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SuppressionAlertsScope.java index 0d25107645b56..3f523fadb0baf 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SuppressionAlertsScope.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SuppressionAlertsScope.java @@ -18,6 +18,10 @@ public final class SuppressionAlertsScope { @JsonProperty(value = "allOf", required = true) private List allOf; + /** Creates an instance of SuppressionAlertsScope class. */ + public SuppressionAlertsScope() { + } + /** * Get the allOf property: All the conditions inside need to be true in order to suppress the alert. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Tags.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Tags.java index 694213b09db8b..607ec4b9dd68b 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Tags.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Tags.java @@ -19,6 +19,10 @@ public class Tags { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; + /** Creates an instance of Tags class. */ + public Tags() { + } + /** * Get the tags property: A list of key value pairs that describe the resource. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TagsResource.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TagsResource.java index 4e62ad22b4d0e..d86888a72bbd9 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TagsResource.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TagsResource.java @@ -19,6 +19,10 @@ public class TagsResource { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; + /** Creates an instance of TagsResource class. */ + public TagsResource() { + } + /** * Get the tags property: Resource tags. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Tasks.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Tasks.java index 187f0536b1a57..54c084a032aaf 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Tasks.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Tasks.java @@ -63,12 +63,13 @@ public interface Tasks { * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param taskName Name of the task object, will be a GUID. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security task that we recommend to do in order to strengthen security. + * @return security task that we recommend to do in order to strengthen security along with {@link Response}. */ - SecurityTask getSubscriptionLevelTask(String ascLocation, String taskName); + Response getSubscriptionLevelTaskWithResponse(String ascLocation, String taskName, Context context); /** * Recommended tasks that will help improve the security of the subscription proactively. @@ -76,13 +77,12 @@ public interface Tasks { * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param taskName Name of the task object, will be a GUID. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security task that we recommend to do in order to strengthen security along with {@link Response}. + * @return security task that we recommend to do in order to strengthen security. */ - Response getSubscriptionLevelTaskWithResponse(String ascLocation, String taskName, Context context); + SecurityTask getSubscriptionLevelTask(String ascLocation, String taskName); /** * Recommended tasks that will help improve the security of the subscription proactively. @@ -91,12 +91,14 @@ public interface Tasks { * locations. * @param taskName Name of the task object, will be a GUID. * @param taskUpdateActionType Type of the action to do on the task. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void updateSubscriptionLevelTaskState( - String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType); + Response updateSubscriptionLevelTaskStateWithResponse( + String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType, Context context); /** * Recommended tasks that will help improve the security of the subscription proactively. @@ -105,14 +107,12 @@ void updateSubscriptionLevelTaskState( * locations. * @param taskName Name of the task object, will be a GUID. * @param taskUpdateActionType Type of the action to do on the task. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response updateSubscriptionLevelTaskStateWithResponse( - String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType, Context context); + void updateSubscriptionLevelTaskState( + String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType); /** * Recommended tasks that will help improve the security of the subscription proactively. @@ -153,12 +153,14 @@ PagedIterable listByResourceGroup( * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param taskName Name of the task object, will be a GUID. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security task that we recommend to do in order to strengthen security. + * @return security task that we recommend to do in order to strengthen security along with {@link Response}. */ - SecurityTask getResourceGroupLevelTask(String resourceGroupName, String ascLocation, String taskName); + Response getResourceGroupLevelTaskWithResponse( + String resourceGroupName, String ascLocation, String taskName, Context context); /** * Recommended tasks that will help improve the security of the subscription proactively. @@ -168,14 +170,12 @@ PagedIterable listByResourceGroup( * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param taskName Name of the task object, will be a GUID. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security task that we recommend to do in order to strengthen security along with {@link Response}. + * @return security task that we recommend to do in order to strengthen security. */ - Response getResourceGroupLevelTaskWithResponse( - String resourceGroupName, String ascLocation, String taskName, Context context); + SecurityTask getResourceGroupLevelTask(String resourceGroupName, String ascLocation, String taskName); /** * Recommended tasks that will help improve the security of the subscription proactively. @@ -186,12 +186,18 @@ Response getResourceGroupLevelTaskWithResponse( * locations. * @param taskName Name of the task object, will be a GUID. * @param taskUpdateActionType Type of the action to do on the task. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void updateResourceGroupLevelTaskState( - String resourceGroupName, String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType); + Response updateResourceGroupLevelTaskStateWithResponse( + String resourceGroupName, + String ascLocation, + String taskName, + TaskUpdateActionType taskUpdateActionType, + Context context); /** * Recommended tasks that will help improve the security of the subscription proactively. @@ -202,16 +208,10 @@ void updateResourceGroupLevelTaskState( * locations. * @param taskName Name of the task object, will be a GUID. * @param taskUpdateActionType Type of the action to do on the task. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response updateResourceGroupLevelTaskStateWithResponse( - String resourceGroupName, - String ascLocation, - String taskName, - TaskUpdateActionType taskUpdateActionType, - Context context); + void updateResourceGroupLevelTaskState( + String resourceGroupName, String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ThresholdCustomAlertRule.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ThresholdCustomAlertRule.java index 5d2419d2c379f..a3048cfbf9cf4 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ThresholdCustomAlertRule.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ThresholdCustomAlertRule.java @@ -32,6 +32,10 @@ public class ThresholdCustomAlertRule extends CustomAlertRule { @JsonProperty(value = "maxThreshold", required = true) private int maxThreshold; + /** Creates an instance of ThresholdCustomAlertRule class. */ + public ThresholdCustomAlertRule() { + } + /** * Get the minThreshold property: The minimum threshold. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TimeWindowCustomAlertRule.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TimeWindowCustomAlertRule.java index 29f828d7b8fef..6d39c15b514bd 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TimeWindowCustomAlertRule.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TimeWindowCustomAlertRule.java @@ -58,6 +58,10 @@ public class TimeWindowCustomAlertRule extends ThresholdCustomAlertRule { @JsonProperty(value = "timeWindowSize", required = true) private Duration timeWindowSize; + /** Creates an instance of TimeWindowCustomAlertRule class. */ + public TimeWindowCustomAlertRule() { + } + /** * Get the timeWindowSize property: The time window size in iso8601 format. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Topologies.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Topologies.java index 7d11153596faf..e82f7507256e2 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Topologies.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Topologies.java @@ -67,12 +67,14 @@ public interface Topologies { * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param topologyResourceName Name of a topology resources collection. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 topology component. + * @return a specific topology component along with {@link Response}. */ - TopologyResource get(String resourceGroupName, String ascLocation, String topologyResourceName); + Response getWithResponse( + String resourceGroupName, String ascLocation, String topologyResourceName, Context context); /** * Gets a specific topology component. @@ -82,12 +84,10 @@ public interface Topologies { * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get * locations. * @param topologyResourceName Name of a topology resources collection. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 topology component along with {@link Response}. + * @return a specific topology component. */ - Response getWithResponse( - String resourceGroupName, String ascLocation, String topologyResourceName, Context context); + TopologyResource get(String resourceGroupName, String ascLocation, String topologyResourceName); } diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TopologyList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TopologyList.java index cce972782c63d..da838290f2322 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TopologyList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TopologyList.java @@ -24,6 +24,10 @@ public final class TopologyList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of TopologyList class. */ + public TopologyList() { + } + /** * Get the value property: The value property. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TopologySingleResource.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TopologySingleResource.java index 965db1bc910de..4ee5ec01c25d7 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TopologySingleResource.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TopologySingleResource.java @@ -59,6 +59,10 @@ public final class TopologySingleResource { @JsonProperty(value = "children", access = JsonProperty.Access.WRITE_ONLY) private List children; + /** Creates an instance of TopologySingleResource class. */ + public TopologySingleResource() { + } + /** * Get the resourceId property: Azure resource id. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TopologySingleResourceChild.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TopologySingleResourceChild.java index c142377499c11..fc1d0c77fec56 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TopologySingleResourceChild.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TopologySingleResourceChild.java @@ -16,6 +16,10 @@ public final class TopologySingleResourceChild { @JsonProperty(value = "resourceId", access = JsonProperty.Access.WRITE_ONLY) private String resourceId; + /** Creates an instance of TopologySingleResourceChild class. */ + public TopologySingleResourceChild() { + } + /** * Get the resourceId property: Azure resource id which serves as child resource in topology view. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TopologySingleResourceParent.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TopologySingleResourceParent.java index e5194a5e5837b..01ab584cedece 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TopologySingleResourceParent.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TopologySingleResourceParent.java @@ -16,6 +16,10 @@ public final class TopologySingleResourceParent { @JsonProperty(value = "resourceId", access = JsonProperty.Access.WRITE_ONLY) private String resourceId; + /** Creates an instance of TopologySingleResourceParent class. */ + public TopologySingleResourceParent() { + } + /** * Get the resourceId property: Azure resource id which serves as parent resource in topology view. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TrackedResource.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TrackedResource.java index 9f9ea42829c9a..f532595f99de8 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TrackedResource.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TrackedResource.java @@ -38,6 +38,10 @@ public final class TrackedResource extends ProxyResource { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; + /** Creates an instance of TrackedResource class. */ + public TrackedResource() { + } + /** * Get the location property: Location where the resource is stored. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TwinUpdatesNotInAllowedRange.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TwinUpdatesNotInAllowedRange.java index ba92d53a45b9a..fd186fdaac678 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TwinUpdatesNotInAllowedRange.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/TwinUpdatesNotInAllowedRange.java @@ -14,6 +14,10 @@ @JsonTypeName("TwinUpdatesNotInAllowedRange") @Fluent public final class TwinUpdatesNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Creates an instance of TwinUpdatesNotInAllowedRange class. */ + public TwinUpdatesNotInAllowedRange() { + } + /** {@inheritDoc} */ @Override public TwinUpdatesNotInAllowedRange withTimeWindowSize(Duration timeWindowSize) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/UnauthorizedOperationsNotInAllowedRange.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/UnauthorizedOperationsNotInAllowedRange.java index 24aeb0c12c3ea..0616e1bafc5ee 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/UnauthorizedOperationsNotInAllowedRange.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/UnauthorizedOperationsNotInAllowedRange.java @@ -14,6 +14,10 @@ @JsonTypeName("UnauthorizedOperationsNotInAllowedRange") @Fluent public final class UnauthorizedOperationsNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Creates an instance of UnauthorizedOperationsNotInAllowedRange class. */ + public UnauthorizedOperationsNotInAllowedRange() { + } + /** {@inheritDoc} */ @Override public UnauthorizedOperationsNotInAllowedRange withTimeWindowSize(Duration timeWindowSize) { diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/UpdateIotSecuritySolutionData.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/UpdateIotSecuritySolutionData.java index 0fa3c0d259aaf..14365020975b9 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/UpdateIotSecuritySolutionData.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/UpdateIotSecuritySolutionData.java @@ -19,6 +19,10 @@ public final class UpdateIotSecuritySolutionData extends TagsResource { @JsonProperty(value = "properties") private UpdateIoTSecuritySolutionProperties innerProperties; + /** Creates an instance of UpdateIotSecuritySolutionData class. */ + public UpdateIotSecuritySolutionData() { + } + /** * Get the innerProperties property: Security Solution data. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/UserDefinedResourcesProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/UserDefinedResourcesProperties.java index adc7a80e6a294..d9c6181af2af6 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/UserDefinedResourcesProperties.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/UserDefinedResourcesProperties.java @@ -25,6 +25,10 @@ public final class UserDefinedResourcesProperties { @JsonProperty(value = "querySubscriptions", required = true) private List querySubscriptions; + /** Creates an instance of UserDefinedResourcesProperties class. */ + public UserDefinedResourcesProperties() { + } + /** * Get the query property: Azure Resource Graph query which represents the security solution's user defined * resources. Required to start with "where type != "Microsoft.Devices/IotHubs"". diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/UserRecommendation.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/UserRecommendation.java index bbd682b200e5f..123fbc125618f 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/UserRecommendation.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/UserRecommendation.java @@ -22,6 +22,10 @@ public final class UserRecommendation { @JsonProperty(value = "recommendationAction") private RecommendationAction recommendationAction; + /** Creates an instance of UserRecommendation class. */ + public UserRecommendation() { + } + /** * Get the username property: Represents a user that is recommended to be allowed for a certain rule. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/VaRule.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/VaRule.java index 2b610aa1c3fe0..bd8a503ceb35f 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/VaRule.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/VaRule.java @@ -65,6 +65,10 @@ public final class VaRule { @JsonProperty(value = "benchmarkReferences") private List benchmarkReferences; + /** Creates an instance of VaRule class. */ + public VaRule() { + } + /** * Get the ruleId property: The rule Id. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/VendorReference.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/VendorReference.java index 20e971b812731..35e714f5c15d2 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/VendorReference.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/VendorReference.java @@ -22,6 +22,10 @@ public final class VendorReference { @JsonProperty(value = "link", access = JsonProperty.Access.WRITE_ONLY) private String link; + /** Creates an instance of VendorReference class. */ + public VendorReference() { + } + /** * Get the title property: Link title. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/VmRecommendation.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/VmRecommendation.java index 47bbc7470f660..2193a23ffee5e 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/VmRecommendation.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/VmRecommendation.java @@ -34,6 +34,10 @@ public final class VmRecommendation { @JsonProperty(value = "enforcementSupport") private EnforcementSupport enforcementSupport; + /** Creates an instance of VmRecommendation class. */ + public VmRecommendation() { + } + /** * Get the configurationStatus property: The configuration status of the machines group or machine or rule. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/WorkspaceSettingList.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/WorkspaceSettingList.java index f3d31a9dc5fea..9e0e746cc1483 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/WorkspaceSettingList.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/WorkspaceSettingList.java @@ -25,6 +25,10 @@ public final class WorkspaceSettingList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of WorkspaceSettingList class. */ + public WorkspaceSettingList() { + } + /** * Get the value property: List of workspace settings. * diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/WorkspaceSettings.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/WorkspaceSettings.java index 7e6a5d4dedefa..64356c81191b6 100644 --- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/WorkspaceSettings.java +++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/WorkspaceSettings.java @@ -37,47 +37,47 @@ public interface WorkspaceSettings { * custom-workspace configuration was set. * * @param workspaceSettingName Name of the security setting. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return configures where to store the OMS agent data for workspaces under a scope. + * @return configures where to store the OMS agent data for workspaces under a scope along with {@link Response}. */ - WorkspaceSetting get(String workspaceSettingName); + Response getWithResponse(String workspaceSettingName, Context context); /** * Settings about where we should store your security data and logs. If the result is empty, it means that no * custom-workspace configuration was set. * * @param workspaceSettingName Name of the security setting. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return configures where to store the OMS agent data for workspaces under a scope along with {@link Response}. + * @return configures where to store the OMS agent data for workspaces under a scope. */ - Response getWithResponse(String workspaceSettingName, Context context); + WorkspaceSetting get(String workspaceSettingName); /** * Deletes the custom workspace settings for this subscription. new VMs will report to the default workspace. * * @param workspaceSettingName Name of the security setting. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void delete(String workspaceSettingName); + Response deleteWithResponse(String workspaceSettingName, Context context); /** * Deletes the custom workspace settings for this subscription. new VMs will report to the default workspace. * * @param workspaceSettingName Name of the security setting. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. */ - Response deleteWithResponse(String workspaceSettingName, Context context); + void delete(String workspaceSettingName); /** * Settings about where we should store your security data and logs. If the result is empty, it means that no diff --git a/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlsDeleteSamples.java b/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlsDeleteSamples.java index 75d06aefb48e0..58a86e421a304 100644 --- a/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlsDeleteSamples.java +++ b/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlsDeleteSamples.java @@ -18,6 +18,6 @@ public final class AdaptiveApplicationControlsDeleteSamples { */ public static void deleteAnApplicationControlMachineGroup( com.azure.resourcemanager.security.SecurityManager manager) { - manager.adaptiveApplicationControls().deleteWithResponse("centralus", "GROUP1", Context.NONE); + manager.adaptiveApplicationControls().deleteByResourceGroupWithResponse("centralus", "GROUP1", Context.NONE); } } diff --git a/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/AssessmentsDeleteSamples.java b/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/AssessmentsDeleteSamples.java index 4b71001e37c8a..92a35350d0924 100644 --- a/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/AssessmentsDeleteSamples.java +++ b/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/AssessmentsDeleteSamples.java @@ -20,7 +20,7 @@ public static void deleteASecurityRecommendationTaskOnAResource( com.azure.resourcemanager.security.SecurityManager manager) { manager .assessments() - .deleteWithResponse( + .deleteByResourceGroupWithResponse( "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2", "8bb8be0a-6010-4789-812f-e4d661c4ed0e", Context.NONE); diff --git a/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/AutomationsDeleteSamples.java b/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/AutomationsDeleteSamples.java index 1ab752b15b239..a4aed632e6d30 100644 --- a/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/AutomationsDeleteSamples.java +++ b/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/AutomationsDeleteSamples.java @@ -17,6 +17,6 @@ public final class AutomationsDeleteSamples { * @param manager Entry point to SecurityManager. */ public static void deleteASecurityAutomation(com.azure.resourcemanager.security.SecurityManager manager) { - manager.automations().deleteWithResponse("myRg", "myAutomationName", Context.NONE); + manager.automations().deleteByResourceGroupWithResponse("myRg", "myAutomationName", Context.NONE); } } diff --git a/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/CustomAssessmentAutomationsDeleteSamples.java b/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/CustomAssessmentAutomationsDeleteSamples.java index 24ca795d71f95..6ec3cb2c2be0f 100644 --- a/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/CustomAssessmentAutomationsDeleteSamples.java +++ b/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/CustomAssessmentAutomationsDeleteSamples.java @@ -19,6 +19,6 @@ public final class CustomAssessmentAutomationsDeleteSamples { public static void deleteACustomAssessmentAutomation(com.azure.resourcemanager.security.SecurityManager manager) { manager .customAssessmentAutomations() - .deleteWithResponse("TestResourceGroup", "MyCustomAssessmentAutomation", Context.NONE); + .deleteByResourceGroupWithResponse("TestResourceGroup", "MyCustomAssessmentAutomation", Context.NONE); } } diff --git a/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentsDeleteSamples.java b/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentsDeleteSamples.java index f995b767d5f57..d6a703a40b2be 100644 --- a/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentsDeleteSamples.java +++ b/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentsDeleteSamples.java @@ -19,6 +19,7 @@ public final class CustomEntityStoreAssignmentsDeleteSamples { public static void deleteACustomEntityStoreAssignment(com.azure.resourcemanager.security.SecurityManager manager) { manager .customEntityStoreAssignments() - .deleteWithResponse("TestResourceGroup", "33e7cc6e-a139-4723-a0e5-76993aee0771", Context.NONE); + .deleteByResourceGroupWithResponse( + "TestResourceGroup", "33e7cc6e-a139-4723-a0e5-76993aee0771", Context.NONE); } } diff --git a/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupsDeleteSamples.java b/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupsDeleteSamples.java index d43fcd696dec9..502c9779e398a 100644 --- a/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupsDeleteSamples.java +++ b/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupsDeleteSamples.java @@ -20,7 +20,7 @@ public static void deleteADeviceSecurityGroupForTheSpecifiedIoTHubResource( com.azure.resourcemanager.security.SecurityManager manager) { manager .deviceSecurityGroups() - .deleteWithResponse( + .deleteByResourceGroupWithResponse( "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Devices/iotHubs/sampleiothub", "samplesecuritygroup", Context.NONE); diff --git a/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionDeleteSamples.java b/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionDeleteSamples.java index d8c6a6aef3922..5db96c94994d1 100644 --- a/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionDeleteSamples.java +++ b/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionDeleteSamples.java @@ -17,6 +17,6 @@ public final class IotSecuritySolutionDeleteSamples { * @param manager Entry point to SecurityManager. */ public static void deleteAnIoTSecuritySolution(com.azure.resourcemanager.security.SecurityManager manager) { - manager.iotSecuritySolutions().deleteWithResponse("MyGroup", "default", Context.NONE); + manager.iotSecuritySolutions().deleteByResourceGroupWithResponse("MyGroup", "default", Context.NONE); } } diff --git a/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/SecurityConnectorsDeleteSamples.java b/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/SecurityConnectorsDeleteSamples.java index 95feb32abadb4..a553f1969ac1a 100644 --- a/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/SecurityConnectorsDeleteSamples.java +++ b/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/SecurityConnectorsDeleteSamples.java @@ -17,6 +17,6 @@ public final class SecurityConnectorsDeleteSamples { * @param manager Entry point to SecurityManager. */ public static void deleteASecurityConnector(com.azure.resourcemanager.security.SecurityManager manager) { - manager.securityConnectors().deleteWithResponse("myRg", "mySecurityConnectorName", Context.NONE); + manager.securityConnectors().deleteByResourceGroupWithResponse("myRg", "mySecurityConnectorName", Context.NONE); } }