scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
private Duration defaultPollInterval;
private Configurable() {
@@ -359,6 +393,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
return this;
}
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
/**
* Sets the default poll interval, used when service does not provide "Retry-After" header.
*
@@ -366,9 +413,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
- throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
@@ -408,16 +457,34 @@ public SecurityManager authenticate(TokenCredential credential, AzureProfile pro
scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
}
if (retryPolicy == null) {
- retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
}
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
- policies.addAll(this.policies);
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
@@ -429,7 +496,49 @@ public SecurityManager authenticate(TokenCredential credential, AzureProfile pro
}
}
- /** @return Resource collection API of ComplianceResults. */
+ /**
+ * Gets the resource collection API of MdeOnboardings.
+ *
+ * @return Resource collection API of MdeOnboardings.
+ */
+ public MdeOnboardings mdeOnboardings() {
+ if (this.mdeOnboardings == null) {
+ this.mdeOnboardings = new MdeOnboardingsImpl(clientObject.getMdeOnboardings(), this);
+ }
+ return mdeOnboardings;
+ }
+
+ /**
+ * Gets the resource collection API of CustomAssessmentAutomations. It manages CustomAssessmentAutomation.
+ *
+ * @return Resource collection API of CustomAssessmentAutomations.
+ */
+ public CustomAssessmentAutomations customAssessmentAutomations() {
+ if (this.customAssessmentAutomations == null) {
+ this.customAssessmentAutomations =
+ new CustomAssessmentAutomationsImpl(clientObject.getCustomAssessmentAutomations(), this);
+ }
+ return customAssessmentAutomations;
+ }
+
+ /**
+ * Gets the resource collection API of CustomEntityStoreAssignments. It manages CustomEntityStoreAssignment.
+ *
+ * @return Resource collection API of CustomEntityStoreAssignments.
+ */
+ public CustomEntityStoreAssignments customEntityStoreAssignments() {
+ if (this.customEntityStoreAssignments == null) {
+ this.customEntityStoreAssignments =
+ new CustomEntityStoreAssignmentsImpl(clientObject.getCustomEntityStoreAssignments(), this);
+ }
+ return customEntityStoreAssignments;
+ }
+
+ /**
+ * Gets the resource collection API of ComplianceResults.
+ *
+ * @return Resource collection API of ComplianceResults.
+ */
public ComplianceResults complianceResults() {
if (this.complianceResults == null) {
this.complianceResults = new ComplianceResultsImpl(clientObject.getComplianceResults(), this);
@@ -437,7 +546,11 @@ public ComplianceResults complianceResults() {
return complianceResults;
}
- /** @return Resource collection API of Pricings. */
+ /**
+ * Gets the resource collection API of Pricings.
+ *
+ * @return Resource collection API of Pricings.
+ */
public Pricings pricings() {
if (this.pricings == null) {
this.pricings = new PricingsImpl(clientObject.getPricings(), this);
@@ -445,7 +558,11 @@ public Pricings pricings() {
return pricings;
}
- /** @return Resource collection API of AdvancedThreatProtections. */
+ /**
+ * Gets the resource collection API of AdvancedThreatProtections. It manages AdvancedThreatProtectionSetting.
+ *
+ * @return Resource collection API of AdvancedThreatProtections.
+ */
public AdvancedThreatProtections advancedThreatProtections() {
if (this.advancedThreatProtections == null) {
this.advancedThreatProtections =
@@ -454,7 +571,11 @@ public AdvancedThreatProtections advancedThreatProtections() {
return advancedThreatProtections;
}
- /** @return Resource collection API of DeviceSecurityGroups. */
+ /**
+ * Gets the resource collection API of DeviceSecurityGroups. It manages DeviceSecurityGroup.
+ *
+ * @return Resource collection API of DeviceSecurityGroups.
+ */
public DeviceSecurityGroups deviceSecurityGroups() {
if (this.deviceSecurityGroups == null) {
this.deviceSecurityGroups = new DeviceSecurityGroupsImpl(clientObject.getDeviceSecurityGroups(), this);
@@ -462,7 +583,11 @@ public DeviceSecurityGroups deviceSecurityGroups() {
return deviceSecurityGroups;
}
- /** @return Resource collection API of IotSecuritySolutions. */
+ /**
+ * Gets the resource collection API of IotSecuritySolutions. It manages IoTSecuritySolutionModel.
+ *
+ * @return Resource collection API of IotSecuritySolutions.
+ */
public IotSecuritySolutions iotSecuritySolutions() {
if (this.iotSecuritySolutions == null) {
this.iotSecuritySolutions = new IotSecuritySolutionsImpl(clientObject.getIotSecuritySolutions(), this);
@@ -470,7 +595,11 @@ public IotSecuritySolutions iotSecuritySolutions() {
return iotSecuritySolutions;
}
- /** @return Resource collection API of IotSecuritySolutionAnalytics. */
+ /**
+ * Gets the resource collection API of IotSecuritySolutionAnalytics.
+ *
+ * @return Resource collection API of IotSecuritySolutionAnalytics.
+ */
public IotSecuritySolutionAnalytics iotSecuritySolutionAnalytics() {
if (this.iotSecuritySolutionAnalytics == null) {
this.iotSecuritySolutionAnalytics =
@@ -479,7 +608,11 @@ public IotSecuritySolutionAnalytics iotSecuritySolutionAnalytics() {
return iotSecuritySolutionAnalytics;
}
- /** @return Resource collection API of IotSecuritySolutionsAnalyticsAggregatedAlerts. */
+ /**
+ * Gets the resource collection API of IotSecuritySolutionsAnalyticsAggregatedAlerts.
+ *
+ * @return Resource collection API of IotSecuritySolutionsAnalyticsAggregatedAlerts.
+ */
public IotSecuritySolutionsAnalyticsAggregatedAlerts iotSecuritySolutionsAnalyticsAggregatedAlerts() {
if (this.iotSecuritySolutionsAnalyticsAggregatedAlerts == null) {
this.iotSecuritySolutionsAnalyticsAggregatedAlerts =
@@ -489,7 +622,11 @@ public IotSecuritySolutionsAnalyticsAggregatedAlerts iotSecuritySolutionsAnalyti
return iotSecuritySolutionsAnalyticsAggregatedAlerts;
}
- /** @return Resource collection API of IotSecuritySolutionsAnalyticsRecommendations. */
+ /**
+ * Gets the resource collection API of IotSecuritySolutionsAnalyticsRecommendations.
+ *
+ * @return Resource collection API of IotSecuritySolutionsAnalyticsRecommendations.
+ */
public IotSecuritySolutionsAnalyticsRecommendations iotSecuritySolutionsAnalyticsRecommendations() {
if (this.iotSecuritySolutionsAnalyticsRecommendations == null) {
this.iotSecuritySolutionsAnalyticsRecommendations =
@@ -499,7 +636,11 @@ public IotSecuritySolutionsAnalyticsRecommendations iotSecuritySolutionsAnalytic
return iotSecuritySolutionsAnalyticsRecommendations;
}
- /** @return Resource collection API of Locations. */
+ /**
+ * Gets the resource collection API of Locations.
+ *
+ * @return Resource collection API of Locations.
+ */
public Locations locations() {
if (this.locations == null) {
this.locations = new LocationsImpl(clientObject.getLocations(), this);
@@ -507,7 +648,11 @@ public Locations locations() {
return locations;
}
- /** @return Resource collection API of Operations. */
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
@@ -515,7 +660,11 @@ public Operations operations() {
return operations;
}
- /** @return Resource collection API of Tasks. */
+ /**
+ * Gets the resource collection API of Tasks.
+ *
+ * @return Resource collection API of Tasks.
+ */
public Tasks tasks() {
if (this.tasks == null) {
this.tasks = new TasksImpl(clientObject.getTasks(), this);
@@ -523,7 +672,11 @@ public Tasks tasks() {
return tasks;
}
- /** @return Resource collection API of AutoProvisioningSettings. */
+ /**
+ * Gets the resource collection API of AutoProvisioningSettings. It manages AutoProvisioningSetting.
+ *
+ * @return Resource collection API of AutoProvisioningSettings.
+ */
public AutoProvisioningSettings autoProvisioningSettings() {
if (this.autoProvisioningSettings == null) {
this.autoProvisioningSettings =
@@ -532,7 +685,11 @@ public AutoProvisioningSettings autoProvisioningSettings() {
return autoProvisioningSettings;
}
- /** @return Resource collection API of Compliances. */
+ /**
+ * Gets the resource collection API of Compliances.
+ *
+ * @return Resource collection API of Compliances.
+ */
public Compliances compliances() {
if (this.compliances == null) {
this.compliances = new CompliancesImpl(clientObject.getCompliances(), this);
@@ -540,7 +697,11 @@ public Compliances compliances() {
return compliances;
}
- /** @return Resource collection API of InformationProtectionPolicies. */
+ /**
+ * Gets the resource collection API of InformationProtectionPolicies. It manages InformationProtectionPolicy.
+ *
+ * @return Resource collection API of InformationProtectionPolicies.
+ */
public InformationProtectionPolicies informationProtectionPolicies() {
if (this.informationProtectionPolicies == null) {
this.informationProtectionPolicies =
@@ -549,7 +710,11 @@ public InformationProtectionPolicies informationProtectionPolicies() {
return informationProtectionPolicies;
}
- /** @return Resource collection API of SecurityContacts. */
+ /**
+ * Gets the resource collection API of SecurityContacts. It manages SecurityContact.
+ *
+ * @return Resource collection API of SecurityContacts.
+ */
public SecurityContacts securityContacts() {
if (this.securityContacts == null) {
this.securityContacts = new SecurityContactsImpl(clientObject.getSecurityContacts(), this);
@@ -557,7 +722,11 @@ public SecurityContacts securityContacts() {
return securityContacts;
}
- /** @return Resource collection API of WorkspaceSettings. */
+ /**
+ * Gets the resource collection API of WorkspaceSettings. It manages WorkspaceSetting.
+ *
+ * @return Resource collection API of WorkspaceSettings.
+ */
public WorkspaceSettings workspaceSettings() {
if (this.workspaceSettings == null) {
this.workspaceSettings = new WorkspaceSettingsImpl(clientObject.getWorkspaceSettings(), this);
@@ -565,7 +734,11 @@ public WorkspaceSettings workspaceSettings() {
return workspaceSettings;
}
- /** @return Resource collection API of RegulatoryComplianceStandards. */
+ /**
+ * Gets the resource collection API of RegulatoryComplianceStandards.
+ *
+ * @return Resource collection API of RegulatoryComplianceStandards.
+ */
public RegulatoryComplianceStandards regulatoryComplianceStandards() {
if (this.regulatoryComplianceStandards == null) {
this.regulatoryComplianceStandards =
@@ -574,7 +747,11 @@ public RegulatoryComplianceStandards regulatoryComplianceStandards() {
return regulatoryComplianceStandards;
}
- /** @return Resource collection API of RegulatoryComplianceControls. */
+ /**
+ * Gets the resource collection API of RegulatoryComplianceControls.
+ *
+ * @return Resource collection API of RegulatoryComplianceControls.
+ */
public RegulatoryComplianceControls regulatoryComplianceControls() {
if (this.regulatoryComplianceControls == null) {
this.regulatoryComplianceControls =
@@ -583,7 +760,11 @@ public RegulatoryComplianceControls regulatoryComplianceControls() {
return regulatoryComplianceControls;
}
- /** @return Resource collection API of RegulatoryComplianceAssessments. */
+ /**
+ * Gets the resource collection API of RegulatoryComplianceAssessments.
+ *
+ * @return Resource collection API of RegulatoryComplianceAssessments.
+ */
public RegulatoryComplianceAssessments regulatoryComplianceAssessments() {
if (this.regulatoryComplianceAssessments == null) {
this.regulatoryComplianceAssessments =
@@ -592,7 +773,11 @@ public RegulatoryComplianceAssessments regulatoryComplianceAssessments() {
return regulatoryComplianceAssessments;
}
- /** @return Resource collection API of SubAssessments. */
+ /**
+ * Gets the resource collection API of SubAssessments.
+ *
+ * @return Resource collection API of SubAssessments.
+ */
public SubAssessments subAssessments() {
if (this.subAssessments == null) {
this.subAssessments = new SubAssessmentsImpl(clientObject.getSubAssessments(), this);
@@ -600,7 +785,11 @@ public SubAssessments subAssessments() {
return subAssessments;
}
- /** @return Resource collection API of Automations. */
+ /**
+ * Gets the resource collection API of Automations. It manages Automation.
+ *
+ * @return Resource collection API of Automations.
+ */
public Automations automations() {
if (this.automations == null) {
this.automations = new AutomationsImpl(clientObject.getAutomations(), this);
@@ -608,7 +797,11 @@ public Automations automations() {
return automations;
}
- /** @return Resource collection API of AlertsSuppressionRules. */
+ /**
+ * Gets the resource collection API of AlertsSuppressionRules.
+ *
+ * @return Resource collection API of AlertsSuppressionRules.
+ */
public AlertsSuppressionRules alertsSuppressionRules() {
if (this.alertsSuppressionRules == null) {
this.alertsSuppressionRules =
@@ -617,7 +810,11 @@ public AlertsSuppressionRules alertsSuppressionRules() {
return alertsSuppressionRules;
}
- /** @return Resource collection API of ServerVulnerabilityAssessments. */
+ /**
+ * Gets the resource collection API of ServerVulnerabilityAssessments.
+ *
+ * @return Resource collection API of ServerVulnerabilityAssessments.
+ */
public ServerVulnerabilityAssessments serverVulnerabilityAssessments() {
if (this.serverVulnerabilityAssessments == null) {
this.serverVulnerabilityAssessments =
@@ -626,7 +823,11 @@ public ServerVulnerabilityAssessments serverVulnerabilityAssessments() {
return serverVulnerabilityAssessments;
}
- /** @return Resource collection API of AssessmentsMetadatas. */
+ /**
+ * Gets the resource collection API of AssessmentsMetadatas. It manages SecurityAssessmentMetadataResponse.
+ *
+ * @return Resource collection API of AssessmentsMetadatas.
+ */
public AssessmentsMetadatas assessmentsMetadatas() {
if (this.assessmentsMetadatas == null) {
this.assessmentsMetadatas = new AssessmentsMetadatasImpl(clientObject.getAssessmentsMetadatas(), this);
@@ -634,7 +835,11 @@ public AssessmentsMetadatas assessmentsMetadatas() {
return assessmentsMetadatas;
}
- /** @return Resource collection API of Assessments. */
+ /**
+ * Gets the resource collection API of Assessments. It manages SecurityAssessmentResponse.
+ *
+ * @return Resource collection API of Assessments.
+ */
public Assessments assessments() {
if (this.assessments == null) {
this.assessments = new AssessmentsImpl(clientObject.getAssessments(), this);
@@ -642,7 +847,11 @@ public Assessments assessments() {
return assessments;
}
- /** @return Resource collection API of AdaptiveApplicationControls. */
+ /**
+ * Gets the resource collection API of AdaptiveApplicationControls. It manages AdaptiveApplicationControlGroup.
+ *
+ * @return Resource collection API of AdaptiveApplicationControls.
+ */
public AdaptiveApplicationControls adaptiveApplicationControls() {
if (this.adaptiveApplicationControls == null) {
this.adaptiveApplicationControls =
@@ -651,7 +860,11 @@ public AdaptiveApplicationControls adaptiveApplicationControls() {
return adaptiveApplicationControls;
}
- /** @return Resource collection API of AdaptiveNetworkHardenings. */
+ /**
+ * Gets the resource collection API of AdaptiveNetworkHardenings.
+ *
+ * @return Resource collection API of AdaptiveNetworkHardenings.
+ */
public AdaptiveNetworkHardenings adaptiveNetworkHardenings() {
if (this.adaptiveNetworkHardenings == null) {
this.adaptiveNetworkHardenings =
@@ -660,7 +873,11 @@ public AdaptiveNetworkHardenings adaptiveNetworkHardenings() {
return adaptiveNetworkHardenings;
}
- /** @return Resource collection API of AllowedConnections. */
+ /**
+ * Gets the resource collection API of AllowedConnections.
+ *
+ * @return Resource collection API of AllowedConnections.
+ */
public AllowedConnections allowedConnections() {
if (this.allowedConnections == null) {
this.allowedConnections = new AllowedConnectionsImpl(clientObject.getAllowedConnections(), this);
@@ -668,7 +885,11 @@ public AllowedConnections allowedConnections() {
return allowedConnections;
}
- /** @return Resource collection API of Topologies. */
+ /**
+ * Gets the resource collection API of Topologies.
+ *
+ * @return Resource collection API of Topologies.
+ */
public Topologies topologies() {
if (this.topologies == null) {
this.topologies = new TopologiesImpl(clientObject.getTopologies(), this);
@@ -676,7 +897,11 @@ public Topologies topologies() {
return topologies;
}
- /** @return Resource collection API of JitNetworkAccessPolicies. */
+ /**
+ * Gets the resource collection API of JitNetworkAccessPolicies. It manages JitNetworkAccessPolicy.
+ *
+ * @return Resource collection API of JitNetworkAccessPolicies.
+ */
public JitNetworkAccessPolicies jitNetworkAccessPolicies() {
if (this.jitNetworkAccessPolicies == null) {
this.jitNetworkAccessPolicies =
@@ -685,7 +910,11 @@ public JitNetworkAccessPolicies jitNetworkAccessPolicies() {
return jitNetworkAccessPolicies;
}
- /** @return Resource collection API of DiscoveredSecuritySolutions. */
+ /**
+ * Gets the resource collection API of DiscoveredSecuritySolutions.
+ *
+ * @return Resource collection API of DiscoveredSecuritySolutions.
+ */
public DiscoveredSecuritySolutions discoveredSecuritySolutions() {
if (this.discoveredSecuritySolutions == null) {
this.discoveredSecuritySolutions =
@@ -694,7 +923,11 @@ public DiscoveredSecuritySolutions discoveredSecuritySolutions() {
return discoveredSecuritySolutions;
}
- /** @return Resource collection API of SecuritySolutionsReferenceDatas. */
+ /**
+ * Gets the resource collection API of SecuritySolutionsReferenceDatas.
+ *
+ * @return Resource collection API of SecuritySolutionsReferenceDatas.
+ */
public SecuritySolutionsReferenceDatas securitySolutionsReferenceDatas() {
if (this.securitySolutionsReferenceDatas == null) {
this.securitySolutionsReferenceDatas =
@@ -703,7 +936,11 @@ public SecuritySolutionsReferenceDatas securitySolutionsReferenceDatas() {
return securitySolutionsReferenceDatas;
}
- /** @return Resource collection API of ExternalSecuritySolutions. */
+ /**
+ * Gets the resource collection API of ExternalSecuritySolutions.
+ *
+ * @return Resource collection API of ExternalSecuritySolutions.
+ */
public ExternalSecuritySolutions externalSecuritySolutions() {
if (this.externalSecuritySolutions == null) {
this.externalSecuritySolutions =
@@ -712,7 +949,11 @@ public ExternalSecuritySolutions externalSecuritySolutions() {
return externalSecuritySolutions;
}
- /** @return Resource collection API of SecureScores. */
+ /**
+ * Gets the resource collection API of SecureScores.
+ *
+ * @return Resource collection API of SecureScores.
+ */
public SecureScores secureScores() {
if (this.secureScores == null) {
this.secureScores = new SecureScoresImpl(clientObject.getSecureScores(), this);
@@ -720,7 +961,11 @@ public SecureScores secureScores() {
return secureScores;
}
- /** @return Resource collection API of SecureScoreControls. */
+ /**
+ * Gets the resource collection API of SecureScoreControls.
+ *
+ * @return Resource collection API of SecureScoreControls.
+ */
public SecureScoreControls secureScoreControls() {
if (this.secureScoreControls == null) {
this.secureScoreControls = new SecureScoreControlsImpl(clientObject.getSecureScoreControls(), this);
@@ -728,7 +973,11 @@ public SecureScoreControls secureScoreControls() {
return secureScoreControls;
}
- /** @return Resource collection API of SecureScoreControlDefinitions. */
+ /**
+ * Gets the resource collection API of SecureScoreControlDefinitions.
+ *
+ * @return Resource collection API of SecureScoreControlDefinitions.
+ */
public SecureScoreControlDefinitions secureScoreControlDefinitions() {
if (this.secureScoreControlDefinitions == null) {
this.secureScoreControlDefinitions =
@@ -737,7 +986,11 @@ public SecureScoreControlDefinitions secureScoreControlDefinitions() {
return secureScoreControlDefinitions;
}
- /** @return Resource collection API of SecuritySolutions. */
+ /**
+ * Gets the resource collection API of SecuritySolutions.
+ *
+ * @return Resource collection API of SecuritySolutions.
+ */
public SecuritySolutions securitySolutions() {
if (this.securitySolutions == null) {
this.securitySolutions = new SecuritySolutionsImpl(clientObject.getSecuritySolutions(), this);
@@ -745,7 +998,11 @@ public SecuritySolutions securitySolutions() {
return securitySolutions;
}
- /** @return Resource collection API of Connectors. */
+ /**
+ * Gets the resource collection API of Connectors. It manages ConnectorSetting.
+ *
+ * @return Resource collection API of Connectors.
+ */
public Connectors connectors() {
if (this.connectors == null) {
this.connectors = new ConnectorsImpl(clientObject.getConnectors(), this);
@@ -753,7 +1010,11 @@ public Connectors connectors() {
return connectors;
}
- /** @return Resource collection API of SqlVulnerabilityAssessmentScans. */
+ /**
+ * Gets the resource collection API of SqlVulnerabilityAssessmentScans.
+ *
+ * @return Resource collection API of SqlVulnerabilityAssessmentScans.
+ */
public SqlVulnerabilityAssessmentScans sqlVulnerabilityAssessmentScans() {
if (this.sqlVulnerabilityAssessmentScans == null) {
this.sqlVulnerabilityAssessmentScans =
@@ -762,7 +1023,11 @@ public SqlVulnerabilityAssessmentScans sqlVulnerabilityAssessmentScans() {
return sqlVulnerabilityAssessmentScans;
}
- /** @return Resource collection API of SqlVulnerabilityAssessmentScanResults. */
+ /**
+ * Gets the resource collection API of SqlVulnerabilityAssessmentScanResults.
+ *
+ * @return Resource collection API of SqlVulnerabilityAssessmentScanResults.
+ */
public SqlVulnerabilityAssessmentScanResults sqlVulnerabilityAssessmentScanResults() {
if (this.sqlVulnerabilityAssessmentScanResults == null) {
this.sqlVulnerabilityAssessmentScanResults =
@@ -772,7 +1037,11 @@ public SqlVulnerabilityAssessmentScanResults sqlVulnerabilityAssessmentScanResul
return sqlVulnerabilityAssessmentScanResults;
}
- /** @return Resource collection API of SqlVulnerabilityAssessmentBaselineRules. */
+ /**
+ * Gets the resource collection API of SqlVulnerabilityAssessmentBaselineRules. It manages RuleResults.
+ *
+ * @return Resource collection API of SqlVulnerabilityAssessmentBaselineRules.
+ */
public SqlVulnerabilityAssessmentBaselineRules sqlVulnerabilityAssessmentBaselineRules() {
if (this.sqlVulnerabilityAssessmentBaselineRules == null) {
this.sqlVulnerabilityAssessmentBaselineRules =
@@ -782,126 +1051,207 @@ public SqlVulnerabilityAssessmentBaselineRules sqlVulnerabilityAssessmentBaselin
return sqlVulnerabilityAssessmentBaselineRules;
}
- /** @return Resource collection API of IotDefenderSettings. */
- public IotDefenderSettings iotDefenderSettings() {
- if (this.iotDefenderSettings == null) {
- this.iotDefenderSettings = new IotDefenderSettingsImpl(clientObject.getIotDefenderSettings(), this);
+ /**
+ * Gets the resource collection API of Alerts.
+ *
+ * @return Resource collection API of Alerts.
+ */
+ public Alerts alerts() {
+ if (this.alerts == null) {
+ this.alerts = new AlertsImpl(clientObject.getAlerts(), this);
}
- return iotDefenderSettings;
+ return alerts;
}
- /** @return Resource collection API of IotSensors. */
- public IotSensors iotSensors() {
- if (this.iotSensors == null) {
- this.iotSensors = new IotSensorsImpl(clientObject.getIotSensors(), this);
+ /**
+ * Gets the resource collection API of Settings.
+ *
+ * @return Resource collection API of Settings.
+ */
+ public Settings settings() {
+ if (this.settings == null) {
+ this.settings = new SettingsImpl(clientObject.getSettings(), this);
}
- return iotSensors;
+ return settings;
}
- /** @return Resource collection API of DevicesForSubscriptions. */
- public DevicesForSubscriptions devicesForSubscriptions() {
- if (this.devicesForSubscriptions == null) {
- this.devicesForSubscriptions =
- new DevicesForSubscriptionsImpl(clientObject.getDevicesForSubscriptions(), this);
+ /**
+ * Gets the resource collection API of IngestionSettings. It manages IngestionSetting.
+ *
+ * @return Resource collection API of IngestionSettings.
+ */
+ public IngestionSettings ingestionSettings() {
+ if (this.ingestionSettings == null) {
+ this.ingestionSettings = new IngestionSettingsImpl(clientObject.getIngestionSettings(), this);
}
- return devicesForSubscriptions;
+ return ingestionSettings;
}
- /** @return Resource collection API of DevicesForHubs. */
- public DevicesForHubs devicesForHubs() {
- if (this.devicesForHubs == null) {
- this.devicesForHubs = new DevicesForHubsImpl(clientObject.getDevicesForHubs(), this);
+ /**
+ * Gets the resource collection API of SoftwareInventories.
+ *
+ * @return Resource collection API of SoftwareInventories.
+ */
+ public SoftwareInventories softwareInventories() {
+ if (this.softwareInventories == null) {
+ this.softwareInventories = new SoftwareInventoriesImpl(clientObject.getSoftwareInventories(), this);
}
- return devicesForHubs;
+ return softwareInventories;
}
- /** @return Resource collection API of Devices. */
- public Devices devices() {
- if (this.devices == null) {
- this.devices = new DevicesImpl(clientObject.getDevices(), this);
+ /**
+ * Gets the resource collection API of SecurityConnectors. It manages SecurityConnector.
+ *
+ * @return Resource collection API of SecurityConnectors.
+ */
+ public SecurityConnectors securityConnectors() {
+ if (this.securityConnectors == null) {
+ this.securityConnectors = new SecurityConnectorsImpl(clientObject.getSecurityConnectors(), this);
}
- return devices;
+ return securityConnectors;
}
- /** @return Resource collection API of OnPremiseIotSensors. */
- public OnPremiseIotSensors onPremiseIotSensors() {
- if (this.onPremiseIotSensors == null) {
- this.onPremiseIotSensors = new OnPremiseIotSensorsImpl(clientObject.getOnPremiseIotSensors(), this);
+ /**
+ * Gets the resource collection API of GovernanceRules.
+ *
+ * @return Resource collection API of GovernanceRules.
+ */
+ public GovernanceRules governanceRules() {
+ if (this.governanceRules == null) {
+ this.governanceRules = new GovernanceRulesImpl(clientObject.getGovernanceRules(), this);
}
- return onPremiseIotSensors;
+ return governanceRules;
}
- /** @return Resource collection API of IotSites. */
- public IotSites iotSites() {
- if (this.iotSites == null) {
- this.iotSites = new IotSitesImpl(clientObject.getIotSites(), this);
+ /**
+ * Gets the resource collection API of GovernanceRulesOperations. It manages GovernanceRule.
+ *
+ * @return Resource collection API of GovernanceRulesOperations.
+ */
+ public GovernanceRulesOperations governanceRulesOperations() {
+ if (this.governanceRulesOperations == null) {
+ this.governanceRulesOperations =
+ new GovernanceRulesOperationsImpl(clientObject.getGovernanceRulesOperations(), this);
}
- return iotSites;
+ return governanceRulesOperations;
}
- /** @return Resource collection API of IotAlerts. */
- public IotAlerts iotAlerts() {
- if (this.iotAlerts == null) {
- this.iotAlerts = new IotAlertsImpl(clientObject.getIotAlerts(), this);
+ /**
+ * Gets the resource collection API of SecurityConnectorGovernanceRules.
+ *
+ * @return Resource collection API of SecurityConnectorGovernanceRules.
+ */
+ public SecurityConnectorGovernanceRules securityConnectorGovernanceRules() {
+ if (this.securityConnectorGovernanceRules == null) {
+ this.securityConnectorGovernanceRules =
+ new SecurityConnectorGovernanceRulesImpl(clientObject.getSecurityConnectorGovernanceRules(), this);
}
- return iotAlerts;
+ return securityConnectorGovernanceRules;
}
- /** @return Resource collection API of IotAlertTypes. */
- public IotAlertTypes iotAlertTypes() {
- if (this.iotAlertTypes == null) {
- this.iotAlertTypes = new IotAlertTypesImpl(clientObject.getIotAlertTypes(), this);
+ /**
+ * Gets the resource collection API of SecurityConnectorGovernanceRulesOperations.
+ *
+ * @return Resource collection API of SecurityConnectorGovernanceRulesOperations.
+ */
+ public SecurityConnectorGovernanceRulesOperations securityConnectorGovernanceRulesOperations() {
+ if (this.securityConnectorGovernanceRulesOperations == null) {
+ this.securityConnectorGovernanceRulesOperations =
+ new SecurityConnectorGovernanceRulesOperationsImpl(
+ clientObject.getSecurityConnectorGovernanceRulesOperations(), this);
}
- return iotAlertTypes;
+ return securityConnectorGovernanceRulesOperations;
}
- /** @return Resource collection API of IotRecommendations. */
- public IotRecommendations iotRecommendations() {
- if (this.iotRecommendations == null) {
- this.iotRecommendations = new IotRecommendationsImpl(clientObject.getIotRecommendations(), this);
+ /**
+ * Gets the resource collection API of SubscriptionGovernanceRulesExecuteStatus.
+ *
+ * @return Resource collection API of SubscriptionGovernanceRulesExecuteStatus.
+ */
+ public SubscriptionGovernanceRulesExecuteStatus subscriptionGovernanceRulesExecuteStatus() {
+ if (this.subscriptionGovernanceRulesExecuteStatus == null) {
+ this.subscriptionGovernanceRulesExecuteStatus =
+ new SubscriptionGovernanceRulesExecuteStatusImpl(
+ clientObject.getSubscriptionGovernanceRulesExecuteStatus(), this);
}
- return iotRecommendations;
+ return subscriptionGovernanceRulesExecuteStatus;
}
- /** @return Resource collection API of IotRecommendationTypes. */
- public IotRecommendationTypes iotRecommendationTypes() {
- if (this.iotRecommendationTypes == null) {
- this.iotRecommendationTypes =
- new IotRecommendationTypesImpl(clientObject.getIotRecommendationTypes(), this);
+ /**
+ * Gets the resource collection API of SecurityConnectorGovernanceRulesExecuteStatus.
+ *
+ * @return Resource collection API of SecurityConnectorGovernanceRulesExecuteStatus.
+ */
+ public SecurityConnectorGovernanceRulesExecuteStatus securityConnectorGovernanceRulesExecuteStatus() {
+ if (this.securityConnectorGovernanceRulesExecuteStatus == null) {
+ this.securityConnectorGovernanceRulesExecuteStatus =
+ new SecurityConnectorGovernanceRulesExecuteStatusImpl(
+ clientObject.getSecurityConnectorGovernanceRulesExecuteStatus(), this);
}
- return iotRecommendationTypes;
+ return securityConnectorGovernanceRulesExecuteStatus;
}
- /** @return Resource collection API of Alerts. */
- public Alerts alerts() {
- if (this.alerts == null) {
- this.alerts = new AlertsImpl(clientObject.getAlerts(), this);
+ /**
+ * Gets the resource collection API of GovernanceAssignments. It manages GovernanceAssignment.
+ *
+ * @return Resource collection API of GovernanceAssignments.
+ */
+ public GovernanceAssignments governanceAssignments() {
+ if (this.governanceAssignments == null) {
+ this.governanceAssignments = new GovernanceAssignmentsImpl(clientObject.getGovernanceAssignments(), this);
}
- return alerts;
+ return governanceAssignments;
}
- /** @return Resource collection API of Settings. */
- public Settings settings() {
- if (this.settings == null) {
- this.settings = new SettingsImpl(clientObject.getSettings(), this);
+ /**
+ * Gets the resource collection API of Applications.
+ *
+ * @return Resource collection API of Applications.
+ */
+ public Applications applications() {
+ if (this.applications == null) {
+ this.applications = new ApplicationsImpl(clientObject.getApplications(), this);
}
- return settings;
+ return applications;
}
- /** @return Resource collection API of IngestionSettings. */
- public IngestionSettings ingestionSettings() {
- if (this.ingestionSettings == null) {
- this.ingestionSettings = new IngestionSettingsImpl(clientObject.getIngestionSettings(), this);
+ /**
+ * Gets the resource collection API of ApplicationOperations. It manages Application.
+ *
+ * @return Resource collection API of ApplicationOperations.
+ */
+ public ApplicationOperations applicationOperations() {
+ if (this.applicationOperations == null) {
+ this.applicationOperations = new ApplicationOperationsImpl(clientObject.getApplicationOperations(), this);
}
- return ingestionSettings;
+ return applicationOperations;
}
- /** @return Resource collection API of SoftwareInventories. */
- public SoftwareInventories softwareInventories() {
- if (this.softwareInventories == null) {
- this.softwareInventories = new SoftwareInventoriesImpl(clientObject.getSoftwareInventories(), this);
+ /**
+ * Gets the resource collection API of SecurityConnectorApplications.
+ *
+ * @return Resource collection API of SecurityConnectorApplications.
+ */
+ public SecurityConnectorApplications securityConnectorApplications() {
+ if (this.securityConnectorApplications == null) {
+ this.securityConnectorApplications =
+ new SecurityConnectorApplicationsImpl(clientObject.getSecurityConnectorApplications(), this);
}
- return softwareInventories;
+ return securityConnectorApplications;
+ }
+
+ /**
+ * Gets the resource collection API of SecurityConnectorApplicationOperations.
+ *
+ * @return Resource collection API of SecurityConnectorApplicationOperations.
+ */
+ public SecurityConnectorApplicationOperations securityConnectorApplicationOperations() {
+ if (this.securityConnectorApplicationOperations == null) {
+ this.securityConnectorApplicationOperations =
+ new SecurityConnectorApplicationOperationsImpl(
+ clientObject.getSecurityConnectorApplicationOperations(), this);
+ }
+ return securityConnectorApplicationOperations;
}
/**
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 0febf887693d..720c79b2ac3f 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
@@ -32,7 +32,7 @@ public interface AdaptiveApplicationControlsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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.
+ * @return a list of application control machine groups for the subscription along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listWithResponse(
@@ -62,7 +62,7 @@ Response listWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response getWithResponse(
@@ -95,7 +95,7 @@ AdaptiveApplicationControlGroupInner put(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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)
Response putWithResponse(
@@ -124,7 +124,7 @@ Response putWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String ascLocation, String groupName, Context context);
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdaptiveNetworkHardeningsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdaptiveNetworkHardeningsClient.java
index da45ed63794d..57d481e23e34 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
@@ -27,7 +27,8 @@ public interface AdaptiveNetworkHardeningsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 Adaptive Network Hardenings resources in scope of an extended resource.
+ * @return a list of Adaptive Network Hardenings resources in scope of an extended resource as paginated response
+ * with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByExtendedResource(
@@ -45,7 +46,8 @@ PagedIterable listByExtendedResource(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 Adaptive Network Hardenings resources in scope of an extended resource.
+ * @return a list of Adaptive Network Hardenings resources in scope of an extended resource as paginated response
+ * with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByExtendedResource(
@@ -86,7 +88,7 @@ AdaptiveNetworkHardeningInner get(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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)
Response getWithResponse(
@@ -110,9 +112,9 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginEnforce(
String resourceGroupName,
String resourceNamespace,
@@ -135,9 +137,9 @@ SyncPoller, Void> beginEnforce(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginEnforce(
String resourceGroupName,
String resourceNamespace,
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdvancedThreatProtectionsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdvancedThreatProtectionsClient.java
index ed227389460f..be005c45f468 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
@@ -32,7 +32,7 @@ public interface AdvancedThreatProtectionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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)
Response getWithResponse(String resourceId, Context context);
@@ -60,7 +60,7 @@ AdvancedThreatProtectionSettingInner create(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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)
Response createWithResponse(
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsClient.java
index a2e489ff8652..5f04b869fef8 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
@@ -8,9 +8,7 @@
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
-import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.security.fluent.models.AlertInner;
import com.azure.resourcemanager.security.models.AlertSimulatorRequestBody;
@@ -21,7 +19,7 @@ public interface AlertsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of security alerts.
+ * @return list of security alerts as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -33,7 +31,7 @@ public interface AlertsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of security alerts.
+ * @return list of security alerts as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -46,7 +44,7 @@ public interface AlertsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of security alerts.
+ * @return list of security alerts as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -60,7 +58,7 @@ public interface AlertsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of security alerts.
+ * @return list of security alerts as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -73,7 +71,7 @@ public interface AlertsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of security alerts.
+ * @return list of security alerts as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listSubscriptionLevelByRegion(String ascLocation);
@@ -87,7 +85,7 @@ public interface AlertsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of security alerts.
+ * @return list of security alerts as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listSubscriptionLevelByRegion(String ascLocation, Context context);
@@ -102,7 +100,7 @@ public interface AlertsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of security alerts.
+ * @return list of security alerts as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listResourceGroupLevelByRegion(String ascLocation, String resourceGroupName);
@@ -118,7 +116,7 @@ public interface AlertsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of security alerts.
+ * @return list of security alerts as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listResourceGroupLevelByRegion(
@@ -148,7 +146,7 @@ PagedIterable listResourceGroupLevelByRegion(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response getSubscriptionLevelWithResponse(String ascLocation, String alertName, Context context);
@@ -181,7 +179,8 @@ PagedIterable listResourceGroupLevelByRegion(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response getResourceGroupLevelWithResponse(
@@ -210,7 +209,7 @@ Response getResourceGroupLevelWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateSubscriptionLevelStateToDismissWithResponse(
@@ -239,7 +238,7 @@ Response updateSubscriptionLevelStateToDismissWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateSubscriptionLevelStateToResolveWithResponse(
@@ -268,7 +267,7 @@ Response updateSubscriptionLevelStateToResolveWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateSubscriptionLevelStateToActivateWithResponse(
@@ -301,7 +300,7 @@ Response updateSubscriptionLevelStateToActivateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateResourceGroupLevelStateToResolveWithResponse(
@@ -334,7 +333,7 @@ Response updateResourceGroupLevelStateToResolveWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateResourceGroupLevelStateToDismissWithResponse(
@@ -367,43 +366,12 @@ Response updateResourceGroupLevelStateToDismissWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateResourceGroupLevelStateToActivateWithResponse(
String ascLocation, String alertName, String resourceGroupName, Context context);
- /**
- * Simulate security alerts.
- *
- * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
- * locations.
- * @param alertSimulatorRequestBody Alert Simulator Request Properties.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, Void> beginSimulate(
- String ascLocation, AlertSimulatorRequestBody alertSimulatorRequestBody);
-
- /**
- * Simulate security alerts.
- *
- * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
- * locations.
- * @param alertSimulatorRequestBody Alert Simulator Request Properties.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, Void> beginSimulate(
- String ascLocation, AlertSimulatorRequestBody alertSimulatorRequestBody, Context context);
-
/**
* Simulate security alerts.
*
@@ -427,7 +395,9 @@ SyncPoller, Void> beginSimulate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 simulate(String ascLocation, AlertSimulatorRequestBody alertSimulatorRequestBody, Context context);
+ Response simulateWithResponse(
+ String ascLocation, AlertSimulatorRequestBody alertSimulatorRequestBody, Context context);
}
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 56bfb72b4229..5ac06107ec55 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
@@ -18,7 +18,7 @@ public interface AlertsSuppressionRulesClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return suppression rules list for subscription.
+ * @return suppression rules list for subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -31,7 +31,7 @@ public interface AlertsSuppressionRulesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return suppression rules list for subscription.
+ * @return suppression rules list for subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String alertType, Context context);
@@ -56,7 +56,8 @@ public interface AlertsSuppressionRulesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response getWithResponse(String alertsSuppressionRuleName, Context context);
@@ -84,7 +85,7 @@ AlertsSuppressionRuleInner update(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return describes the suppression rule.
+ * @return describes the suppression rule along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
@@ -109,7 +110,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String alertsSuppressionRuleName, Context context);
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AllowedConnectionsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AllowedConnectionsClient.java
index 1597043d4c4d..b3d217b64efb 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
@@ -19,7 +19,8 @@ public interface AllowedConnectionsClient {
*
* @throws com.azure.core.management.exception.ManagementException 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.
+ * @return the list of all possible traffic between resources for the subscription as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -31,7 +32,8 @@ public interface AllowedConnectionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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.
+ * @return the list of all possible traffic between resources for the subscription as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -44,7 +46,8 @@ public interface AllowedConnectionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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.
+ * @return the list of all possible traffic between resources for the subscription and location as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByHomeRegion(String ascLocation);
@@ -58,7 +61,8 @@ public interface AllowedConnectionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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.
+ * @return the list of all possible traffic between resources for the subscription and location as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByHomeRegion(String ascLocation, Context context);
@@ -95,7 +99,7 @@ public interface AllowedConnectionsClient {
* @throws com.azure.core.management.exception.ManagementException 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)
Response getWithResponse(
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSitesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApplicationOperationsClient.java
similarity index 50%
rename from sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSitesClient.java
rename to sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApplicationOperationsClient.java
index 4945f8bc0f1d..8ad231303db7 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSitesClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApplicationOperationsClient.java
@@ -8,110 +8,84 @@
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.IotSitesListInner;
-import com.azure.resourcemanager.security.fluent.models.IotSitesModelInner;
+import com.azure.resourcemanager.security.fluent.models.ApplicationInner;
-/** An instance of this class provides access to all the operations defined in IotSitesClient. */
-public interface IotSitesClient {
+/** An instance of this class provides access to all the operations defined in ApplicationOperationsClient. */
+public interface ApplicationOperationsClient {
/**
- * List IoT sites.
+ * Get a specific application for the requested scope by applicationId.
*
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
+ * @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 list of IoT sites.
+ * @return a specific application for the requested scope by applicationId.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- IotSitesListInner list(String scope);
+ ApplicationInner get(String applicationId);
/**
- * List IoT sites.
+ * Get a specific application for the requested scope by applicationId.
*
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
+ * @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 list of IoT sites.
+ * @return a specific application for the requested scope by applicationId along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(String scope, Context context);
+ Response getWithResponse(String applicationId, Context context);
/**
- * Get IoT site.
+ * Creates or update a security application on the given subscription.
*
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
+ * @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 ioT site.
+ * @return security Application over a given scope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- IotSitesModelInner get(String scope);
+ ApplicationInner createOrUpdate(String applicationId, ApplicationInner application);
/**
- * Get IoT site.
+ * Creates or update a security application on the given subscription.
*
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
+ * @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 ioT site.
+ * @return security Application over a given scope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String scope, Context context);
+ Response createOrUpdateWithResponse(
+ String applicationId, ApplicationInner application, Context context);
/**
- * Create or update IoT site.
+ * Delete an Application over a given scope.
*
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSitesModel The IoT sites model.
+ * @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 ioT site model.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- IotSitesModelInner createOrUpdate(String scope, IotSitesModelInner iotSitesModel);
+ void delete(String applicationId);
/**
- * Create or update IoT site.
+ * Delete an Application over a given scope.
*
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSitesModel The IoT sites model.
+ * @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 ioT site model.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String scope, IotSitesModelInner iotSitesModel, Context context);
-
- /**
- * Delete IoT site.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String scope);
-
- /**
- * Delete IoT site.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String scope, Context context);
+ Response deleteWithResponse(String applicationId, Context context);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesForSubscriptionsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApplicationsClient.java
similarity index 58%
rename from sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesForSubscriptionsClient.java
rename to sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApplicationsClient.java
index 155c79771103..1f8851380eb8 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesForSubscriptionsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApplicationsClient.java
@@ -8,34 +8,31 @@
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.DeviceInner;
-import com.azure.resourcemanager.security.models.ManagementState;
+import com.azure.resourcemanager.security.fluent.models.ApplicationInner;
-/** An instance of this class provides access to all the operations defined in DevicesForSubscriptionsClient. */
-public interface DevicesForSubscriptionsClient {
+/** An instance of this class provides access to all the operations defined in ApplicationsClient. */
+public interface ApplicationsClient {
/**
- * Get list of the devices by their subscription.
+ * Get a list of all relevant applications over a subscription level scope.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of the devices by their subscription.
+ * @return a list of all relevant applications over a subscription level scope as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ PagedIterable list();
/**
- * Get list of the devices by their subscription.
+ * Get a list of all relevant applications over a subscription level scope.
*
- * @param limit Limit the number of items returned in a single page.
- * @param skipToken Skip token used for pagination.
- * @param deviceManagementType Get devices only from specific type, Managed or Unmanaged.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of the devices by their subscription.
+ * @return a list of all relevant applications over a subscription level scope as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- Integer limit, String skipToken, ManagementState deviceManagementType, Context context);
+ PagedIterable list(Context context);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsClient.java
index 5d3b6586bae3..4df089f9e4e8 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsClient.java
@@ -9,8 +9,9 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.SecurityAssessmentInner;
+import com.azure.resourcemanager.security.fluent.models.SecurityAssessmentResponseInner;
import com.azure.resourcemanager.security.models.ExpandEnum;
+import com.azure.resourcemanager.security.models.SecurityAssessment;
/** An instance of this class provides access to all the operations defined in AssessmentsClient. */
public interface AssessmentsClient {
@@ -22,10 +23,11 @@ public interface AssessmentsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security assessments on all your scanned resources inside a scope.
+ * @return security assessments on all your scanned resources inside a scope as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope);
+ PagedIterable list(String scope);
/**
* Get security assessments on all your scanned resources inside a scope.
@@ -36,10 +38,11 @@ public interface AssessmentsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security assessments on all your scanned resources inside a scope.
+ * @return security assessments on all your scanned resources inside a scope as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope, Context context);
+ PagedIterable list(String scope, Context context);
/**
* Get a security assessment on your scanned resource.
@@ -52,7 +55,7 @@ public interface AssessmentsClient {
* @return a security assessment on your scanned resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecurityAssessmentInner get(String resourceId, String assessmentName);
+ SecurityAssessmentResponseInner get(String resourceId, String assessmentName);
/**
* Get a security assessment on your scanned resource.
@@ -64,10 +67,10 @@ public interface AssessmentsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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)
- Response getWithResponse(
+ Response getWithResponse(
String resourceId, String assessmentName, ExpandEnum expand, Context context);
/**
@@ -80,11 +83,11 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security assessment on a resource.
+ * @return security assessment on a resource - response format.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecurityAssessmentInner createOrUpdate(
- String resourceId, String assessmentName, SecurityAssessmentInner assessment);
+ SecurityAssessmentResponseInner createOrUpdate(
+ String resourceId, String assessmentName, SecurityAssessment assessment);
/**
* Create a security assessment on your resource. An assessment metadata that describes this assessment must be
@@ -97,11 +100,11 @@ SecurityAssessmentInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security assessment on a resource.
+ * @return security assessment on a resource - response format along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceId, String assessmentName, SecurityAssessmentInner assessment, Context context);
+ Response createOrUpdateWithResponse(
+ String resourceId, String assessmentName, SecurityAssessment assessment, Context context);
/**
* Delete a security assessment on your resource. An assessment metadata that describes this assessment must be
@@ -126,7 +129,7 @@ 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 response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceId, String assessmentName, Context context);
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsMetadatasClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsMetadatasClient.java
index 6cc6f62ecf44..99d65486e61f 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsMetadatasClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsMetadatasClient.java
@@ -9,7 +9,7 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.SecurityAssessmentMetadataInner;
+import com.azure.resourcemanager.security.fluent.models.SecurityAssessmentMetadataResponseInner;
/** An instance of this class provides access to all the operations defined in AssessmentsMetadatasClient. */
public interface AssessmentsMetadatasClient {
@@ -18,10 +18,10 @@ public interface AssessmentsMetadatasClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return metadata information on all assessment types.
+ * @return metadata information on all assessment types as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ PagedIterable list();
/**
* Get metadata information on all assessment types.
@@ -30,10 +30,10 @@ public interface AssessmentsMetadatasClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return metadata information on all assessment types.
+ * @return metadata information on all assessment types as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
+ PagedIterable list(Context context);
/**
* Get metadata information on an assessment type.
@@ -45,7 +45,7 @@ public interface AssessmentsMetadatasClient {
* @return metadata information on an assessment type.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecurityAssessmentMetadataInner get(String assessmentMetadataName);
+ SecurityAssessmentMetadataResponseInner get(String assessmentMetadataName);
/**
* Get metadata information on an assessment type.
@@ -55,20 +55,21 @@ public interface AssessmentsMetadatasClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
- Response getWithResponse(String assessmentMetadataName, Context context);
+ Response getWithResponse(String assessmentMetadataName, Context context);
/**
* Get metadata information on all assessment types in a specific 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 metadata information on all assessment types in a specific subscription.
+ * @return metadata information on all assessment types in a specific subscription as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listBySubscription();
+ PagedIterable listBySubscription();
/**
* Get metadata information on all assessment types in a specific subscription.
@@ -77,10 +78,11 @@ public interface AssessmentsMetadatasClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return metadata information on all assessment types in a specific subscription.
+ * @return metadata information on all assessment types in a specific subscription as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listBySubscription(Context context);
+ PagedIterable listBySubscription(Context context);
/**
* Get metadata information on an assessment type in a specific subscription.
@@ -92,7 +94,7 @@ public interface AssessmentsMetadatasClient {
* @return metadata information on an assessment type in a specific subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecurityAssessmentMetadataInner getInSubscription(String assessmentMetadataName);
+ SecurityAssessmentMetadataResponseInner getInSubscription(String assessmentMetadataName);
/**
* Get metadata information on an assessment type in a specific subscription.
@@ -102,10 +104,10 @@ public interface AssessmentsMetadatasClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
- Response getInSubscriptionWithResponse(
+ Response getInSubscriptionWithResponse(
String assessmentMetadataName, Context context);
/**
@@ -116,11 +118,11 @@ Response getInSubscriptionWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security assessment metadata.
+ * @return security assessment metadata response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecurityAssessmentMetadataInner createInSubscription(
- String assessmentMetadataName, SecurityAssessmentMetadataInner assessmentMetadata);
+ SecurityAssessmentMetadataResponseInner createInSubscription(
+ String assessmentMetadataName, SecurityAssessmentMetadataResponseInner assessmentMetadata);
/**
* Create metadata information on an assessment type in a specific subscription.
@@ -131,11 +133,11 @@ SecurityAssessmentMetadataInner createInSubscription(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security assessment metadata.
+ * @return security assessment metadata response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createInSubscriptionWithResponse(
- String assessmentMetadataName, SecurityAssessmentMetadataInner assessmentMetadata, Context context);
+ Response createInSubscriptionWithResponse(
+ String assessmentMetadataName, SecurityAssessmentMetadataResponseInner assessmentMetadata, Context context);
/**
* Delete metadata information on an assessment type in a specific subscription, will cause the deletion of all the
@@ -158,7 +160,7 @@ Response createInSubscriptionWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteInSubscriptionWithResponse(String assessmentMetadataName, Context context);
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AutoProvisioningSettingsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AutoProvisioningSettingsClient.java
index 85f54c8b527f..20fc64c0b756 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
@@ -18,7 +18,7 @@ public interface AutoProvisioningSettingsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of all the auto provisioning settings response.
+ * @return list of all the auto provisioning settings response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -30,7 +30,7 @@ public interface AutoProvisioningSettingsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of all the auto provisioning settings response.
+ * @return list of all the auto provisioning settings response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -55,7 +55,7 @@ public interface AutoProvisioningSettingsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response getWithResponse(String settingName, Context context);
@@ -82,7 +82,7 @@ public interface AutoProvisioningSettingsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response createWithResponse(
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 0a35d74e3790..3dc571ab2398 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
@@ -20,7 +20,7 @@ public interface AutomationsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of security automations response.
+ * @return list of security automations response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -33,7 +33,7 @@ public interface AutomationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of security automations response.
+ * @return list of security automations response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -47,7 +47,7 @@ public interface AutomationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of security automations response.
+ * @return list of security automations response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -62,7 +62,7 @@ public interface AutomationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of security automations response.
+ * @return list of security automations response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -91,7 +91,7 @@ public interface AutomationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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)
Response getByResourceGroupWithResponse(
@@ -125,7 +125,7 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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)
Response createOrUpdateWithResponse(
@@ -154,7 +154,7 @@ 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 response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroupName, String automationName, Context context);
@@ -188,7 +188,7 @@ AutomationValidationStatusInner validate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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)
Response validateWithResponse(
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 e0f03ed56e65..f818008c0fc1 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
@@ -21,7 +21,7 @@ public interface ComplianceResultsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of compliance results response.
+ * @return list of compliance results response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String scope);
@@ -35,7 +35,7 @@ public interface ComplianceResultsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of compliance results response.
+ * @return list of compliance results response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String scope, Context context);
@@ -62,7 +62,7 @@ public interface ComplianceResultsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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)
Response getWithResponse(String resourceId, String complianceResultName, Context context);
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CompliancesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CompliancesClient.java
index 368db296b9de..caf2bc4ee26a 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
@@ -21,7 +21,7 @@ public interface CompliancesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Compliance objects response.
+ * @return list of Compliance objects response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String scope);
@@ -35,7 +35,7 @@ public interface CompliancesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Compliance objects response.
+ * @return list of Compliance objects response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String scope, Context context);
@@ -64,7 +64,7 @@ public interface CompliancesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response getWithResponse(String scope, String complianceName, Context context);
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 4d5e6d47ba13..79ba0649f2bf 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
@@ -18,7 +18,8 @@ public interface ConnectorsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return for a subscription, list of all cloud account connectors and their settings.
+ * @return for a subscription, list of all cloud account connectors and their settings as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -30,7 +31,8 @@ public interface ConnectorsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return for a subscription, list of all cloud account connectors and their settings.
+ * @return for a subscription, list of all cloud account connectors and their settings as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -55,7 +57,7 @@ public interface ConnectorsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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)
Response getWithResponse(String connectorName, Context context);
@@ -84,7 +86,7 @@ public interface ConnectorsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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)
Response createOrUpdateWithResponse(
@@ -109,7 +111,7 @@ 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 response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String connectorName, Context context);
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomAssessmentAutomationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomAssessmentAutomationsClient.java
new file mode 100644
index 000000000000..2e626022750d
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomAssessmentAutomationsClient.java
@@ -0,0 +1,164 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.fluent.models.CustomAssessmentAutomationInner;
+import com.azure.resourcemanager.security.models.CustomAssessmentAutomationRequest;
+
+/** An instance of this class provides access to all the operations defined in CustomAssessmentAutomationsClient. */
+public interface CustomAssessmentAutomationsClient {
+ /**
+ * Gets a single custom assessment automation by name for the provided subscription and resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param customAssessmentAutomationName Name of the Custom Assessment Automation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a single custom assessment automation by name for the provided subscription and resource group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CustomAssessmentAutomationInner getByResourceGroup(String resourceGroupName, String customAssessmentAutomationName);
+
+ /**
+ * Gets a single custom assessment automation by name for the provided subscription and resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param customAssessmentAutomationName Name of the Custom Assessment Automation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a single custom assessment automation by name for the provided subscription and resource group along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String customAssessmentAutomationName, Context context);
+
+ /**
+ * Creates or updates a custom assessment automation for the provided subscription. Please note that providing an
+ * existing custom assessment automation will replace the existing record.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param customAssessmentAutomationName Name of the Custom Assessment Automation.
+ * @param customAssessmentAutomationBody Custom Assessment Automation body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom Assessment Automation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CustomAssessmentAutomationInner create(
+ String resourceGroupName,
+ String customAssessmentAutomationName,
+ CustomAssessmentAutomationRequest customAssessmentAutomationBody);
+
+ /**
+ * Creates or updates a custom assessment automation for the provided subscription. Please note that providing an
+ * existing custom assessment automation will replace the existing record.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param customAssessmentAutomationName Name of the Custom Assessment Automation.
+ * @param customAssessmentAutomationBody Custom Assessment Automation body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom Assessment Automation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createWithResponse(
+ String resourceGroupName,
+ String customAssessmentAutomationName,
+ CustomAssessmentAutomationRequest customAssessmentAutomationBody,
+ Context context);
+
+ /**
+ * Deletes a custom assessment automation by name for a provided subscription.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param customAssessmentAutomationName Name of the Custom Assessment Automation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String customAssessmentAutomationName);
+
+ /**
+ * Deletes a custom assessment automation by name for a provided subscription.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param customAssessmentAutomationName Name of the Custom Assessment Automation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String customAssessmentAutomationName, Context context);
+
+ /**
+ * List custom assessment automations by provided subscription and resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of Custom Assessment Automations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List custom assessment automations by provided subscription and resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of Custom Assessment Automations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * List custom assessment automations by provided subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of Custom Assessment Automations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List custom assessment automations by provided subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of Custom Assessment Automations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomEntityStoreAssignmentsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomEntityStoreAssignmentsClient.java
new file mode 100644
index 000000000000..13fe7ba1511f
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomEntityStoreAssignmentsClient.java
@@ -0,0 +1,164 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.fluent.models.CustomEntityStoreAssignmentInner;
+import com.azure.resourcemanager.security.models.CustomEntityStoreAssignmentRequest;
+
+/** An instance of this class provides access to all the operations defined in CustomEntityStoreAssignmentsClient. */
+public interface CustomEntityStoreAssignmentsClient {
+ /**
+ * Gets a single custom entity store assignment by name for the provided subscription and resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a single custom entity store assignment by name for the provided subscription and resource group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CustomEntityStoreAssignmentInner getByResourceGroup(
+ String resourceGroupName, String customEntityStoreAssignmentName);
+
+ /**
+ * Gets a single custom entity store assignment by name for the provided subscription and resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a single custom entity store assignment by name for the provided subscription and resource group along
+ * with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String customEntityStoreAssignmentName, Context context);
+
+ /**
+ * Creates a custom entity store assignment for the provided subscription, if not already exists.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID.
+ * @param customEntityStoreAssignmentRequestBody Custom entity store assignment body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom entity store assignment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CustomEntityStoreAssignmentInner create(
+ String resourceGroupName,
+ String customEntityStoreAssignmentName,
+ CustomEntityStoreAssignmentRequest customEntityStoreAssignmentRequestBody);
+
+ /**
+ * Creates a custom entity store assignment for the provided subscription, if not already exists.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID.
+ * @param customEntityStoreAssignmentRequestBody Custom entity store assignment body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom entity store assignment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createWithResponse(
+ String resourceGroupName,
+ String customEntityStoreAssignmentName,
+ CustomEntityStoreAssignmentRequest customEntityStoreAssignmentRequestBody,
+ Context context);
+
+ /**
+ * Delete a custom entity store assignment by name for a provided subscription.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String customEntityStoreAssignmentName);
+
+ /**
+ * Delete a custom entity store assignment by name for a provided subscription.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String customEntityStoreAssignmentName, Context context);
+
+ /**
+ * List custom entity store assignments by a provided subscription and resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of custom entity store assignments as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List custom entity store assignments by a provided subscription and resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of custom entity store assignments as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * List custom entity store assignments by provided subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of custom entity store assignments as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List custom entity store assignments by provided subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of custom entity store assignments as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DeviceSecurityGroupsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DeviceSecurityGroupsClient.java
index 4c8b55d0b84e..655b153a06d7 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
@@ -20,7 +20,7 @@ public interface DeviceSecurityGroupsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of device security groups.
+ * @return list of device security groups as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceId);
@@ -33,7 +33,7 @@ public interface DeviceSecurityGroupsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of device security groups.
+ * @return list of device security groups as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceId, Context context);
@@ -62,7 +62,7 @@ public interface DeviceSecurityGroupsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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)
Response getWithResponse(
@@ -95,7 +95,7 @@ DeviceSecurityGroupInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the device security group resource.
+ * @return the device security group resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -127,7 +127,7 @@ 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 response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceId, String deviceSecurityGroupName, Context context);
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DiscoveredSecuritySolutionsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DiscoveredSecuritySolutionsClient.java
index cffe25fb5761..89dd8c7ddaf7 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
@@ -18,7 +18,8 @@ public interface DiscoveredSecuritySolutionsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of discovered Security Solutions for the subscription.
+ * @return a list of discovered Security Solutions for the subscription as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -30,7 +31,8 @@ public interface DiscoveredSecuritySolutionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of discovered Security Solutions for the subscription.
+ * @return a list of discovered Security Solutions for the subscription as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -43,7 +45,8 @@ public interface DiscoveredSecuritySolutionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of discovered Security Solutions for the subscription and location.
+ * @return a list of discovered Security Solutions for the subscription and location as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByHomeRegion(String ascLocation);
@@ -57,7 +60,8 @@ public interface DiscoveredSecuritySolutionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of discovered Security Solutions for the subscription and location.
+ * @return a list of discovered Security Solutions for the subscription and location as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByHomeRegion(String ascLocation, Context context);
@@ -91,7 +95,7 @@ DiscoveredSecuritySolutionInner get(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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)
Response getWithResponse(
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 33fe6f92a327..af4fd44d0880 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
@@ -18,7 +18,8 @@ public interface ExternalSecuritySolutionsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of external security solutions for the subscription.
+ * @return a list of external security solutions for the subscription as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -30,7 +31,8 @@ public interface ExternalSecuritySolutionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of external security solutions for the subscription.
+ * @return a list of external security solutions for the subscription as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -43,7 +45,8 @@ public interface ExternalSecuritySolutionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of external Security Solutions for the subscription and location.
+ * @return a list of external Security Solutions for the subscription and location as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByHomeRegion(String ascLocation);
@@ -57,7 +60,8 @@ public interface ExternalSecuritySolutionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of external Security Solutions for the subscription and location.
+ * @return a list of external Security Solutions for the subscription and location as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByHomeRegion(String ascLocation, Context context);
@@ -91,7 +95,7 @@ ExternalSecuritySolutionInner get(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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)
Response getWithResponse(
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceAssignmentsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceAssignmentsClient.java
new file mode 100644
index 000000000000..4803aa06cf7c
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceAssignmentsClient.java
@@ -0,0 +1,153 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.fluent.models.GovernanceAssignmentInner;
+
+/** An instance of this class provides access to all the operations defined in GovernanceAssignmentsClient. */
+public interface GovernanceAssignmentsClient {
+ /**
+ * Get security governanceAssignments on all your resources inside a scope.
+ *
+ * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
+ * management group (/providers/Microsoft.Management/managementGroups/mgName).
+ * @param assessmentName The Assessment Key - Unique key for the assessment type.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return security governanceAssignments on all your resources inside a scope as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String scope, String assessmentName);
+
+ /**
+ * Get security governanceAssignments on all your resources inside a scope.
+ *
+ * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
+ * management group (/providers/Microsoft.Management/managementGroups/mgName).
+ * @param assessmentName The Assessment Key - Unique key for the assessment type.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return security governanceAssignments on all your resources inside a scope as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String scope, String assessmentName, Context context);
+
+ /**
+ * Get a specific governanceAssignment for the requested scope by AssignmentKey.
+ *
+ * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
+ * management group (/providers/Microsoft.Management/managementGroups/mgName).
+ * @param assessmentName The Assessment Key - Unique key for the assessment type.
+ * @param assignmentKey The security governance assignment key - the assessment key of the required governance
+ * assignment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a specific governanceAssignment for the requested scope by AssignmentKey.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GovernanceAssignmentInner get(String scope, String assessmentName, String assignmentKey);
+
+ /**
+ * Get a specific governanceAssignment for the requested scope by AssignmentKey.
+ *
+ * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
+ * management group (/providers/Microsoft.Management/managementGroups/mgName).
+ * @param assessmentName The Assessment Key - Unique key for the assessment type.
+ * @param 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}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String scope, String assessmentName, String assignmentKey, Context context);
+
+ /**
+ * Creates or update a security GovernanceAssignment on the given subscription.
+ *
+ * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
+ * management group (/providers/Microsoft.Management/managementGroups/mgName).
+ * @param assessmentName The Assessment Key - Unique key for the assessment type.
+ * @param assignmentKey The security governance assignment key - the assessment key of the required governance
+ * assignment.
+ * @param governanceAssignment GovernanceAssignment 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 GovernanceAssignment over a given scope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GovernanceAssignmentInner createOrUpdate(
+ String scope, String assessmentName, String assignmentKey, GovernanceAssignmentInner governanceAssignment);
+
+ /**
+ * Creates or update a security GovernanceAssignment on the given subscription.
+ *
+ * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
+ * management group (/providers/Microsoft.Management/managementGroups/mgName).
+ * @param assessmentName The Assessment Key - Unique key for the assessment type.
+ * @param 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}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String scope,
+ String assessmentName,
+ String assignmentKey,
+ GovernanceAssignmentInner governanceAssignment,
+ Context context);
+
+ /**
+ * Delete a GovernanceAssignment over a given scope.
+ *
+ * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
+ * management group (/providers/Microsoft.Management/managementGroups/mgName).
+ * @param assessmentName The Assessment Key - Unique key for the assessment type.
+ * @param assignmentKey The security governance assignment key - the assessment key of the required governance
+ * assignment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String scope, String assessmentName, String assignmentKey);
+
+ /**
+ * Delete a GovernanceAssignment over a given scope.
+ *
+ * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
+ * management group (/providers/Microsoft.Management/managementGroups/mgName).
+ * @param assessmentName The Assessment Key - Unique key for the assessment type.
+ * @param 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);
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceRulesClient.java
similarity index 54%
rename from sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesClient.java
rename to sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceRulesClient.java
index 90532443f9ff..02a824e96f3f 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceRulesClient.java
@@ -6,36 +6,33 @@
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.DeviceInner;
+import com.azure.resourcemanager.security.fluent.models.GovernanceRuleInner;
-/** An instance of this class provides access to all the operations defined in DevicesClient. */
-public interface DevicesClient {
+/** An instance of this class provides access to all the operations defined in GovernanceRulesClient. */
+public interface GovernanceRulesClient {
/**
- * Get device.
+ * Get a list of all relevant governanceRules over a subscription level scope.
*
- * @param resourceId The identifier of the resource.
- * @param deviceId Identifier of the device.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return device.
+ * @return a list of all relevant governanceRules over a subscription level scope as paginated response with {@link
+ * PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- DeviceInner get(String resourceId, String deviceId);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
/**
- * Get device.
+ * Get a list of all relevant governanceRules over a subscription level scope.
*
- * @param resourceId The identifier of the resource.
- * @param deviceId Identifier of the device.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return device.
+ * @return a list of all relevant governanceRules over a subscription level scope as paginated response with {@link
+ * PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceId, String deviceId, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
}
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
new file mode 100644
index 000000000000..1349ed21eaaa
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceRulesOperationsClient.java
@@ -0,0 +1,256 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.security.fluent.models.GovernanceRuleInner;
+import com.azure.resourcemanager.security.models.ExecuteGovernanceRuleParams;
+
+/** 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.
+ *
+ * @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 com.azure.core.management.exception.ManagementException 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}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String ruleId, Context context);
+
+ /**
+ * 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)
+ GovernanceRuleInner createOrUpdate(String ruleId, GovernanceRuleInner governanceRule);
+
+ /**
+ * 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String ruleId, GovernanceRuleInner governanceRule, Context context);
+
+ /**
+ * Delete a GovernanceRule over a given scope.
+ *
+ * @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 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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String ruleId, Context context);
+
+ /**
+ * 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 com.azure.core.management.exception.ManagementException 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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 com.azure.core.management.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 ruleIdExecuteSingleSubscription(String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams);
+
+ /**
+ * 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 com.azure.core.management.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 ruleIdExecuteSingleSubscription(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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginRuleIdExecuteSingleSecurityConnector(
+ String resourceGroupName,
+ String securityConnectorName,
+ String ruleId,
+ ExecuteGovernanceRuleParams executeGovernanceRuleParams);
+
+ /**
+ * 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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> beginRuleIdExecuteSingleSecurityConnector(
+ String resourceGroupName,
+ String securityConnectorName,
+ 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void ruleIdExecuteSingleSecurityConnector(
+ String resourceGroupName,
+ String securityConnectorName,
+ String ruleId,
+ ExecuteGovernanceRuleParams executeGovernanceRuleParams);
+
+ /**
+ * 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 com.azure.core.management.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);
+
+ /**
+ * 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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,
+ Context context);
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/InformationProtectionPoliciesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/InformationProtectionPoliciesClient.java
index f38b0eab073d..330110c0857a 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
@@ -10,7 +10,7 @@
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.security.fluent.models.InformationProtectionPolicyInner;
-import com.azure.resourcemanager.security.models.InformationProtectionPoliciesInformationProtectionPolicyName;
+import com.azure.resourcemanager.security.models.InformationProtectionPolicyName;
/** An instance of this class provides access to all the operations defined in InformationProtectionPoliciesClient. */
public interface InformationProtectionPoliciesClient {
@@ -26,8 +26,7 @@ public interface InformationProtectionPoliciesClient {
* @return information protection policy.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- InformationProtectionPolicyInner get(
- String scope, InformationProtectionPoliciesInformationProtectionPolicyName informationProtectionPolicyName);
+ InformationProtectionPolicyInner get(String scope, InformationProtectionPolicyName informationProtectionPolicyName);
/**
* Details of the information protection policy.
@@ -39,13 +38,11 @@ InformationProtectionPolicyInner get(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response getWithResponse(
- String scope,
- InformationProtectionPoliciesInformationProtectionPolicyName informationProtectionPolicyName,
- Context context);
+ String scope, InformationProtectionPolicyName informationProtectionPolicyName, Context context);
/**
* Details of the information protection policy.
@@ -62,7 +59,7 @@ Response getWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
InformationProtectionPolicyInner createOrUpdate(
String scope,
- InformationProtectionPoliciesInformationProtectionPolicyName informationProtectionPolicyName,
+ InformationProtectionPolicyName informationProtectionPolicyName,
InformationProtectionPolicyInner informationProtectionPolicy);
/**
@@ -76,12 +73,12 @@ InformationProtectionPolicyInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information protection policy.
+ * @return information protection policy along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
String scope,
- InformationProtectionPoliciesInformationProtectionPolicyName informationProtectionPolicyName,
+ InformationProtectionPolicyName informationProtectionPolicyName,
InformationProtectionPolicyInner informationProtectionPolicy,
Context context);
@@ -93,7 +90,7 @@ 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 information protection policies response.
+ * @return information protection policies response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String scope);
@@ -107,7 +104,7 @@ 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 information protection policies response.
+ * @return information protection policies response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String scope, Context context);
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IngestionSettingsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IngestionSettingsClient.java
index 12a83684c271..8c9a31992fbf 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
@@ -20,7 +20,7 @@ public interface IngestionSettingsClient {
*
* @throws com.azure.core.management.exception.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 ingestion settings.
+ * @return list of ingestion settings as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -32,7 +32,7 @@ public interface IngestionSettingsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 ingestion settings.
+ * @return list of ingestion settings as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -57,7 +57,8 @@ public interface IngestionSettingsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response getWithResponse(String ingestionSettingName, Context context);
@@ -84,7 +85,8 @@ public interface IngestionSettingsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response createWithResponse(
@@ -109,7 +111,7 @@ Response createWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String ingestionSettingName, Context context);
@@ -134,7 +136,8 @@ Response createWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response listTokensWithResponse(String ingestionSettingName, Context context);
@@ -159,7 +162,7 @@ Response createWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response listConnectionStringsWithResponse(String ingestionSettingName, Context context);
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotAlertsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotAlertsClient.java
deleted file mode 100644
index add204e53a99..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotAlertsClient.java
+++ /dev/null
@@ -1,88 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.security.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.IotAlertModelInner;
-import com.azure.resourcemanager.security.models.ManagementState;
-
-/** An instance of this class provides access to all the operations defined in IotAlertsClient. */
-public interface IotAlertsClient {
- /**
- * List IoT alerts.
- *
- * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e.
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT alerts.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope);
-
- /**
- * List IoT alerts.
- *
- * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e.
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- * @param minStartTimeUtc Filter by minimum startTimeUtc (ISO 8601 format).
- * @param maxStartTimeUtc Filter by maximum startTimeUtc (ISO 8601 format).
- * @param alertType Filter by alert type.
- * @param deviceManagementType Get devices only from specific type, Managed or Unmanaged.
- * @param compromisedEntity Filter by compromised device.
- * @param limit Limit the number of items returned in a single page.
- * @param skipToken Skip token used for pagination.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT alerts.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- String scope,
- String minStartTimeUtc,
- String maxStartTimeUtc,
- String alertType,
- ManagementState deviceManagementType,
- String compromisedEntity,
- Integer limit,
- String skipToken,
- Context context);
-
- /**
- * Get IoT alert.
- *
- * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e.
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- * @param iotAlertId Id of the alert.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT alert.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotAlertModelInner get(String scope, String iotAlertId);
-
- /**
- * Get IoT alert.
- *
- * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e.
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- * @param iotAlertId Id of the alert.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT alert.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String scope, String iotAlertId, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotDefenderSettingsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotDefenderSettingsClient.java
deleted file mode 100644
index 2fc29dca0093..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotDefenderSettingsClient.java
+++ /dev/null
@@ -1,153 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.security.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.StreamResponse;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.IotDefenderSettingsListInner;
-import com.azure.resourcemanager.security.fluent.models.IotDefenderSettingsModelInner;
-import com.azure.resourcemanager.security.fluent.models.PackageDownloadsInner;
-import java.io.InputStream;
-
-/** An instance of this class provides access to all the operations defined in IotDefenderSettingsClient. */
-public interface IotDefenderSettingsClient {
- /**
- * List IoT Defender Settings.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT Defender settings.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotDefenderSettingsListInner list();
-
- /**
- * List IoT Defender Settings.
- *
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT Defender settings.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(Context context);
-
- /**
- * Get IoT Defender Settings.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT Defender Settings.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotDefenderSettingsModelInner get();
-
- /**
- * Get IoT Defender Settings.
- *
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT Defender Settings.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(Context context);
-
- /**
- * Create or update IoT Defender settings.
- *
- * @param iotDefenderSettingsModel The IoT defender settings model.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT Defender settings.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotDefenderSettingsModelInner createOrUpdate(IotDefenderSettingsModelInner iotDefenderSettingsModel);
-
- /**
- * Create or update IoT Defender settings.
- *
- * @param iotDefenderSettingsModel The IoT defender settings model.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT Defender settings.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- IotDefenderSettingsModelInner iotDefenderSettingsModel, Context context);
-
- /**
- * Delete IoT Defender settings.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete();
-
- /**
- * Delete IoT Defender settings.
- *
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(Context context);
-
- /**
- * Information about downloadable packages.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about package downloads.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PackageDownloadsInner packageDownloads();
-
- /**
- * Information about downloadable packages.
- *
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about package downloads.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response packageDownloadsWithResponse(Context context);
-
- /**
- * Download manager activation data defined for this subscription.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- InputStream downloadManagerActivation();
-
- /**
- * Download manager activation data defined for this subscription.
- *
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- StreamResponse downloadManagerActivationWithResponse(Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotRecommendationTypesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotRecommendationTypesClient.java
deleted file mode 100644
index 73ef2991f597..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotRecommendationTypesClient.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.security.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.IotRecommendationTypeInner;
-import com.azure.resourcemanager.security.fluent.models.IotRecommendationTypeListInner;
-
-/** An instance of this class provides access to all the operations defined in IotRecommendationTypesClient. */
-public interface IotRecommendationTypesClient {
- /**
- * List IoT recommendation types.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of recommendation types.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotRecommendationTypeListInner list();
-
- /**
- * List IoT recommendation types.
- *
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of recommendation types.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(Context context);
-
- /**
- * Get IoT recommendation type.
- *
- * @param iotRecommendationTypeName Name of the recommendation type.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT recommendation type.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotRecommendationTypeInner get(String iotRecommendationTypeName);
-
- /**
- * Get IoT recommendation type.
- *
- * @param iotRecommendationTypeName Name of the recommendation type.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT recommendation type.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String iotRecommendationTypeName, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotRecommendationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotRecommendationsClient.java
deleted file mode 100644
index 8d800d83f319..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotRecommendationsClient.java
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.security.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.IotRecommendationModelInner;
-
-/** An instance of this class provides access to all the operations defined in IotRecommendationsClient. */
-public interface IotRecommendationsClient {
- /**
- * List IoT recommendations.
- *
- * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e.
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT recommendations.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope);
-
- /**
- * List IoT recommendations.
- *
- * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e.
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- * @param recommendationType Filter by recommendation type.
- * @param deviceId Filter by device id.
- * @param limit Limit the number of items returned in a single page.
- * @param skipToken Skip token used for pagination.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT recommendations.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- String scope, String recommendationType, String deviceId, Integer limit, String skipToken, Context context);
-
- /**
- * Get IoT recommendation.
- *
- * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e.
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- * @param iotRecommendationId Id of the recommendation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT recommendation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotRecommendationModelInner get(String scope, String iotRecommendationId);
-
- /**
- * Get IoT recommendation.
- *
- * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e.
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- * @param iotRecommendationId Id of the recommendation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT recommendation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String scope, String iotRecommendationId, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionAnalyticsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionAnalyticsClient.java
index f8b3923def91..6510a19b5292 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
@@ -37,7 +37,7 @@ public interface IotSecuritySolutionAnalyticsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response listWithResponse(
@@ -67,7 +67,7 @@ Response listWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response getWithResponse(
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 5f8cd88af1f7..8c099ffa5375 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
@@ -25,7 +25,7 @@ public interface IotSecuritySolutionsAnalyticsAggregatedAlertsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT Security solution aggregated alert data.
+ * @return list of IoT Security solution aggregated alert data as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String solutionName);
@@ -41,7 +41,7 @@ public interface IotSecuritySolutionsAnalyticsAggregatedAlertsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT Security solution aggregated alert data.
+ * @return list of IoT Security solution aggregated alert data as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
@@ -75,7 +75,7 @@ PagedIterable list(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response getWithResponse(
@@ -106,7 +106,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response dismissWithResponse(
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 4f28948d08b9..bc4e6c392338 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
@@ -45,7 +45,7 @@ IoTSecurityAggregatedRecommendationInner get(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response getWithResponse(
@@ -60,7 +60,8 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT Security solution aggregated recommendations.
+ * @return list of IoT Security solution aggregated recommendations as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String solutionName);
@@ -76,7 +77,8 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT Security solution aggregated recommendations.
+ * @return list of IoT Security solution aggregated recommendations as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
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 054c973f186c..47cc6aaef08f 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
@@ -19,7 +19,7 @@ public interface IotSecuritySolutionsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT Security solutions.
+ * @return list of IoT Security solutions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -32,7 +32,7 @@ public interface IotSecuritySolutionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT Security solutions.
+ * @return list of IoT Security solutions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String filter, Context context);
@@ -45,7 +45,7 @@ public interface IotSecuritySolutionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT Security solutions.
+ * @return list of IoT Security solutions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -60,7 +60,7 @@ public interface IotSecuritySolutionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT Security solutions.
+ * @return list of IoT Security solutions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(
@@ -90,7 +90,7 @@ PagedIterable listByResourceGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response getByResourceGroupWithResponse(
@@ -123,7 +123,7 @@ IoTSecuritySolutionModelInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT Security solution configuration and resource information.
+ * @return ioT Security solution configuration and resource information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -161,7 +161,7 @@ IoTSecuritySolutionModelInner update(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT Security solution configuration and resource information.
+ * @return ioT Security solution configuration and resource information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
@@ -193,7 +193,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroupName, String solutionName, Context context);
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSensorsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSensorsClient.java
deleted file mode 100644
index 6ea5cb5022dc..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSensorsClient.java
+++ /dev/null
@@ -1,209 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.security.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.StreamResponse;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.IotSensorsListInner;
-import com.azure.resourcemanager.security.fluent.models.IotSensorsModelInner;
-import com.azure.resourcemanager.security.models.ResetPasswordInput;
-import java.io.InputStream;
-
-/** An instance of this class provides access to all the operations defined in IotSensorsClient. */
-public interface IotSensorsClient {
- /**
- * List IoT sensors.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT sensors.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotSensorsListInner list(String scope);
-
- /**
- * List IoT sensors.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT sensors.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(String scope, Context context);
-
- /**
- * Get IoT sensor.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT sensor.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotSensorsModelInner get(String scope, String iotSensorName);
-
- /**
- * Get IoT sensor.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT sensor.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response