scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
private Duration defaultPollInterval;
private Configurable() {
@@ -359,6 +349,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 +369,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 +413,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,6 +452,32 @@ public SecurityManager authenticate(TokenCredential credential, AzureProfile pro
}
}
+ /** @return Resource collection API of MdeOnboardings. */
+ public MdeOnboardings mdeOnboardings() {
+ if (this.mdeOnboardings == null) {
+ this.mdeOnboardings = new MdeOnboardingsImpl(clientObject.getMdeOnboardings(), this);
+ }
+ return mdeOnboardings;
+ }
+
+ /** @return Resource collection API of CustomAssessmentAutomations. */
+ public CustomAssessmentAutomations customAssessmentAutomations() {
+ if (this.customAssessmentAutomations == null) {
+ this.customAssessmentAutomations =
+ new CustomAssessmentAutomationsImpl(clientObject.getCustomAssessmentAutomations(), this);
+ }
+ return customAssessmentAutomations;
+ }
+
+ /** @return Resource collection API of CustomEntityStoreAssignments. */
+ public CustomEntityStoreAssignments customEntityStoreAssignments() {
+ if (this.customEntityStoreAssignments == null) {
+ this.customEntityStoreAssignments =
+ new CustomEntityStoreAssignmentsImpl(clientObject.getCustomEntityStoreAssignments(), this);
+ }
+ return customEntityStoreAssignments;
+ }
+
/** @return Resource collection API of ComplianceResults. */
public ComplianceResults complianceResults() {
if (this.complianceResults == null) {
@@ -782,96 +831,6 @@ 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);
- }
- return iotDefenderSettings;
- }
-
- /** @return Resource collection API of IotSensors. */
- public IotSensors iotSensors() {
- if (this.iotSensors == null) {
- this.iotSensors = new IotSensorsImpl(clientObject.getIotSensors(), this);
- }
- return iotSensors;
- }
-
- /** @return Resource collection API of DevicesForSubscriptions. */
- public DevicesForSubscriptions devicesForSubscriptions() {
- if (this.devicesForSubscriptions == null) {
- this.devicesForSubscriptions =
- new DevicesForSubscriptionsImpl(clientObject.getDevicesForSubscriptions(), this);
- }
- return devicesForSubscriptions;
- }
-
- /** @return Resource collection API of DevicesForHubs. */
- public DevicesForHubs devicesForHubs() {
- if (this.devicesForHubs == null) {
- this.devicesForHubs = new DevicesForHubsImpl(clientObject.getDevicesForHubs(), this);
- }
- return devicesForHubs;
- }
-
- /** @return Resource collection API of Devices. */
- public Devices devices() {
- if (this.devices == null) {
- this.devices = new DevicesImpl(clientObject.getDevices(), this);
- }
- return devices;
- }
-
- /** @return Resource collection API of OnPremiseIotSensors. */
- public OnPremiseIotSensors onPremiseIotSensors() {
- if (this.onPremiseIotSensors == null) {
- this.onPremiseIotSensors = new OnPremiseIotSensorsImpl(clientObject.getOnPremiseIotSensors(), this);
- }
- return onPremiseIotSensors;
- }
-
- /** @return Resource collection API of IotSites. */
- public IotSites iotSites() {
- if (this.iotSites == null) {
- this.iotSites = new IotSitesImpl(clientObject.getIotSites(), this);
- }
- return iotSites;
- }
-
- /** @return Resource collection API of IotAlerts. */
- public IotAlerts iotAlerts() {
- if (this.iotAlerts == null) {
- this.iotAlerts = new IotAlertsImpl(clientObject.getIotAlerts(), this);
- }
- return iotAlerts;
- }
-
- /** @return Resource collection API of IotAlertTypes. */
- public IotAlertTypes iotAlertTypes() {
- if (this.iotAlertTypes == null) {
- this.iotAlertTypes = new IotAlertTypesImpl(clientObject.getIotAlertTypes(), this);
- }
- return iotAlertTypes;
- }
-
- /** @return Resource collection API of IotRecommendations. */
- public IotRecommendations iotRecommendations() {
- if (this.iotRecommendations == null) {
- this.iotRecommendations = new IotRecommendationsImpl(clientObject.getIotRecommendations(), this);
- }
- return iotRecommendations;
- }
-
- /** @return Resource collection API of IotRecommendationTypes. */
- public IotRecommendationTypes iotRecommendationTypes() {
- if (this.iotRecommendationTypes == null) {
- this.iotRecommendationTypes =
- new IotRecommendationTypesImpl(clientObject.getIotRecommendationTypes(), this);
- }
- return iotRecommendationTypes;
- }
-
/** @return Resource collection API of Alerts. */
public Alerts alerts() {
if (this.alerts == null) {
@@ -904,6 +863,14 @@ public SoftwareInventories softwareInventories() {
return softwareInventories;
}
+ /** @return Resource collection API of SecurityConnectors. */
+ public SecurityConnectors securityConnectors() {
+ if (this.securityConnectors == null) {
+ this.securityConnectors = new SecurityConnectorsImpl(clientObject.getSecurityConnectors(), this);
+ }
+ return securityConnectors;
+ }
+
/**
* @return Wrapped service client SecurityCenter providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/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/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/DevicesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesClient.java
deleted file mode 100644
index 90532443f9ff..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesClient.java
+++ /dev/null
@@ -1,41 +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.DeviceInner;
-
-/** An instance of this class provides access to all the operations defined in DevicesClient. */
-public interface DevicesClient {
- /**
- * Get device.
- *
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DeviceInner get(String resourceId, String deviceId);
-
- /**
- * Get device.
- *
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceId, String deviceId, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesForHubsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesForHubsClient.java
deleted file mode 100644
index 69f002544a43..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesForHubsClient.java
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.security.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.DeviceInner;
-import com.azure.resourcemanager.security.models.ManagementState;
-
-/** An instance of this class provides access to all the operations defined in DevicesForHubsClient. */
-public interface DevicesForHubsClient {
- /**
- * Get list of the devices for the specified IoT Hub resource.
- *
- * @param resourceId The identifier of the resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of the devices for the specified IoT Hub resource.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceId);
-
- /**
- * Get list of the devices for the specified IoT Hub resource.
- *
- * @param resourceId The identifier of the resource.
- * @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 for the specified IoT Hub resource.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- String resourceId, Integer limit, String skipToken, ManagementState deviceManagementType, 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/DevicesForSubscriptionsClient.java
deleted file mode 100644
index 155c79771103..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesForSubscriptionsClient.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.security.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.DeviceInner;
-import com.azure.resourcemanager.security.models.ManagementState;
-
-/** An instance of this class provides access to all the operations defined in DevicesForSubscriptionsClient. */
-public interface DevicesForSubscriptionsClient {
- /**
- * Get list of the devices by their subscription.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of the devices by their subscription.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Get list of the devices by their subscription.
- *
- * @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.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- Integer limit, String skipToken, ManagementState deviceManagementType, 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/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 getWithResponse(String scope, String iotSensorName, Context context);
-
- /**
- * Create or update IoT sensor.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @param iotSensorsModel The IoT sensor 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 sensor model.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotSensorsModelInner createOrUpdate(String scope, String iotSensorName, IotSensorsModelInner iotSensorsModel);
-
- /**
- * Create or update IoT sensor.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @param iotSensorsModel The IoT sensor 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 sensor model.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String scope, String iotSensorName, IotSensorsModelInner iotSensorsModel, Context context);
-
- /**
- * Delete 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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String scope, String iotSensorName);
-
- /**
- * Delete 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 the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String scope, String iotSensorName, Context context);
-
- /**
- * Download sensor activation file.
- *
- * @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 the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- InputStream downloadActivation(String scope, String iotSensorName);
-
- /**
- * Download sensor activation file.
- *
- * @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 the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- StreamResponse downloadActivationWithResponse(String scope, String iotSensorName, Context context);
-
- /**
- * Download file for reset password of the sensor.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @param body The reset password input.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException 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 downloadResetPassword(String scope, String iotSensorName, ResetPasswordInput body);
-
- /**
- * Download file for reset password of the sensor.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @param body The reset password input.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException 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 downloadResetPasswordWithResponse(
- String scope, String iotSensorName, ResetPasswordInput body, Context context);
-
- /**
- * Trigger threat intelligence package update.
- *
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void triggerTiPackageUpdate(String scope, String iotSensorName);
-
- /**
- * Trigger threat intelligence package update.
- *
- * @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 the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response triggerTiPackageUpdateWithResponse(String scope, String iotSensorName, Context context);
-}
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/IotSitesClient.java
deleted file mode 100644
index 4945f8bc0f1d..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSitesClient.java
+++ /dev/null
@@ -1,117 +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.IotSitesListInner;
-import com.azure.resourcemanager.security.fluent.models.IotSitesModelInner;
-
-/** An instance of this class provides access to all the operations defined in IotSitesClient. */
-public interface IotSitesClient {
- /**
- * List IoT sites.
- *
- * @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 sites.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotSitesListInner list(String scope);
-
- /**
- * List IoT sites.
- *
- * @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 sites.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(String scope, Context context);
-
- /**
- * Get 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.
- * @return ioT site.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotSitesModelInner get(String scope);
-
- /**
- * Get 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 ioT site.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String scope, Context context);
-
- /**
- * Create or update IoT site.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSitesModel The IoT sites 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 site model.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotSitesModelInner createOrUpdate(String scope, IotSitesModelInner iotSitesModel);
-
- /**
- * Create or update IoT site.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSitesModel The IoT sites 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 site model.
- */
- @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);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/JitNetworkAccessPoliciesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/JitNetworkAccessPoliciesClient.java
index d3629d77084a..8cfaff49d8c2 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/JitNetworkAccessPoliciesClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/JitNetworkAccessPoliciesClient.java
@@ -20,7 +20,7 @@ public interface JitNetworkAccessPoliciesClient {
*
* @throws com.azure.core.management.exception.ManagementException 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 paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -32,7 +32,7 @@ public interface JitNetworkAccessPoliciesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -45,7 +45,7 @@ public interface JitNetworkAccessPoliciesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByRegion(String ascLocation);
@@ -59,7 +59,7 @@ public interface JitNetworkAccessPoliciesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByRegion(String ascLocation, Context context);
@@ -72,7 +72,7 @@ public interface JitNetworkAccessPoliciesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -86,7 +86,7 @@ public interface JitNetworkAccessPoliciesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -101,7 +101,7 @@ public interface JitNetworkAccessPoliciesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroupAndRegion(
@@ -118,7 +118,7 @@ PagedIterable listByResourceGroupAndRegion(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroupAndRegion(
@@ -152,7 +152,7 @@ PagedIterable listByResourceGroupAndRegion(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 getWithResponse(
@@ -192,7 +192,7 @@ JitNetworkAccessPolicyInner 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 response.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -229,7 +229,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