scopes = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
+ private Duration defaultPollInterval;
+
+ private Configurable() {
+ }
+
+ /**
+ * Sets the http client.
+ *
+ * @param httpClient the HTTP client.
+ * @return the configurable object itself.
+ */
+ public Configurable withHttpClient(HttpClient httpClient) {
+ this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the logging options to the HTTP pipeline.
+ *
+ * @param httpLogOptions the HTTP log options.
+ * @return the configurable object itself.
+ */
+ public Configurable withLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Adds the pipeline policy to the HTTP pipeline.
+ *
+ * @param policy the HTTP pipeline policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withPolicy(HttpPipelinePolicy policy) {
+ this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Sets the retry policy to the HTTP pipeline.
+ *
+ * @param retryPolicy the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
+ 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.
+ *
+ * @param defaultPollInterval the default poll interval.
+ * @return the configurable object itself.
+ */
+ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of Resource service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the Resource service API instance.
+ */
+ public ResourceManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder
+ .append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.resources.generated")
+ .append("/")
+ .append("1.0.0-beta.1");
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder
+ .append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
+ if (retryPolicy == null) {
+ 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
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline =
+ new HttpPipelineBuilder()
+ .httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new ResourceManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /**
+ * Gets the resource collection API of Deployments. It manages DeploymentExtended.
+ *
+ * @return Resource collection API of Deployments.
+ */
+ public Deployments deployments() {
+ if (this.deployments == null) {
+ this.deployments = new DeploymentsImpl(clientObject.getDeployments(), this);
+ }
+ return deployments;
+ }
+
+ /**
+ * Gets the resource collection API of Providers.
+ *
+ * @return Resource collection API of Providers.
+ */
+ public Providers providers() {
+ if (this.providers == null) {
+ this.providers = new ProvidersImpl(clientObject.getProviders(), this);
+ }
+ return providers;
+ }
+
+ /**
+ * Gets the resource collection API of ProviderResourceTypes.
+ *
+ * @return Resource collection API of ProviderResourceTypes.
+ */
+ public ProviderResourceTypes providerResourceTypes() {
+ if (this.providerResourceTypes == null) {
+ this.providerResourceTypes = new ProviderResourceTypesImpl(clientObject.getProviderResourceTypes(), this);
+ }
+ return providerResourceTypes;
+ }
+
+ /**
+ * Gets the resource collection API of Resources.
+ *
+ * @return Resource collection API of Resources.
+ */
+ public Resources resources() {
+ if (this.resources == null) {
+ this.resources = new ResourcesImpl(clientObject.getResources(), this);
+ }
+ return resources;
+ }
+
+ /**
+ * Gets the resource collection API of ResourceGroups. It manages ResourceGroup.
+ *
+ * @return Resource collection API of ResourceGroups.
+ */
+ public ResourceGroups resourceGroups() {
+ if (this.resourceGroups == null) {
+ this.resourceGroups = new ResourceGroupsImpl(clientObject.getResourceGroups(), this);
+ }
+ return resourceGroups;
+ }
+
+ /**
+ * Gets the resource collection API of TagOperations.
+ *
+ * @return Resource collection API of TagOperations.
+ */
+ public TagOperations tagOperations() {
+ if (this.tagOperations == null) {
+ this.tagOperations = new TagOperationsImpl(clientObject.getTagOperations(), this);
+ }
+ return tagOperations;
+ }
+
+ /**
+ * Gets the resource collection API of DeploymentOperations.
+ *
+ * @return Resource collection API of DeploymentOperations.
+ */
+ public DeploymentOperations deploymentOperations() {
+ if (this.deploymentOperations == null) {
+ this.deploymentOperations = new DeploymentOperationsImpl(clientObject.getDeploymentOperations(), this);
+ }
+ return deploymentOperations;
+ }
+
+ /**
+ * @return Wrapped service client ResourceManagementClient providing direct access to the underlying auto-generated
+ * API implementation, based on Azure REST API.
+ */
+ public ResourceManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/DeploymentOperationsClient.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/DeploymentOperationsClient.java
new file mode 100644
index 0000000000000..7c82112054113
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/DeploymentOperationsClient.java
@@ -0,0 +1,301 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.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.resources.generated.fluent.models.DeploymentOperationInner;
+
+/** An instance of this class provides access to all the operations defined in DeploymentOperationsClient. */
+public interface DeploymentOperationsClient {
+ /**
+ * Gets a deployments operation.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to 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 deployments operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentOperationInner getAtScope(String scope, String deploymentName, String operationId);
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployments operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAtScopeWithResponse(
+ String scope, String deploymentName, String operationId, Context context);
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all deployments operations for a deployment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtScope(String scope, String deploymentName);
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param top The number of results to return.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all deployments operations for a deployment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtScope(
+ String scope, String deploymentName, Integer top, Context context);
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to 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 deployments operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentOperationInner getAtTenantScope(String deploymentName, String operationId);
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployments operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAtTenantScopeWithResponse(
+ String deploymentName, String operationId, Context context);
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all deployments operations for a deployment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtTenantScope(String deploymentName);
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param top The number of results to return.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all deployments operations for a deployment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtTenantScope(String deploymentName, Integer top, Context context);
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to 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 deployments operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentOperationInner getAtManagementGroupScope(String groupId, String deploymentName, String operationId);
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployments operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAtManagementGroupScopeWithResponse(
+ String groupId, String deploymentName, String operationId, Context context);
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all deployments operations for a deployment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtManagementGroupScope(String groupId, String deploymentName);
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param top The number of results to return.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all deployments operations for a deployment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtManagementGroupScope(
+ String groupId, String deploymentName, Integer top, Context context);
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to 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 deployments operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentOperationInner getAtSubscriptionScope(String deploymentName, String operationId);
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployments operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAtSubscriptionScopeWithResponse(
+ String deploymentName, String operationId, Context context);
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all deployments operations for a deployment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtSubscriptionScope(String deploymentName);
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param top The number of results to return.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all deployments operations for a deployment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtSubscriptionScope(
+ String deploymentName, Integer top, Context context);
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to 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 deployments operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentOperationInner get(String resourceGroupName, String deploymentName, String operationId);
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployments operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String deploymentName, String operationId, Context context);
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all deployments operations for a deployment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, String deploymentName);
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param top The number of results to return.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all deployments operations for a deployment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(
+ String resourceGroupName, String deploymentName, Integer top, Context context);
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/DeploymentsClient.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/DeploymentsClient.java
new file mode 100644
index 0000000000000..9ee156bf185c8
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/DeploymentsClient.java
@@ -0,0 +1,2064 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.resources.generated.fluent.models.DeploymentExportResultInner;
+import com.azure.resourcemanager.resources.generated.fluent.models.DeploymentExtendedInner;
+import com.azure.resourcemanager.resources.generated.fluent.models.DeploymentValidateResultInner;
+import com.azure.resourcemanager.resources.generated.fluent.models.TemplateHashResultInner;
+import com.azure.resourcemanager.resources.generated.fluent.models.WhatIfOperationResultInner;
+import com.azure.resourcemanager.resources.generated.models.Deployment;
+import com.azure.resourcemanager.resources.generated.models.DeploymentWhatIf;
+import com.azure.resourcemanager.resources.generated.models.ScopedDeployment;
+import com.azure.resourcemanager.resources.generated.models.ScopedDeploymentWhatIf;
+
+/** An instance of this class provides access to all the operations defined in DeploymentsClient. */
+public interface DeploymentsClient {
+ /**
+ * Deletes a deployment from the deployment history.
+ *
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. This is an asynchronous operation that returns a status of 202 until the
+ * template deployment is successfully deleted. The Location response header contains the URI that is used to obtain
+ * the status of the process. While the process is running, a call to the URI in the Location header returns a
+ * status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If
+ * the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteAtScope(String scope, String deploymentName);
+
+ /**
+ * Deletes a deployment from the deployment history.
+ *
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. This is an asynchronous operation that returns a status of 202 until the
+ * template deployment is successfully deleted. The Location response header contains the URI that is used to obtain
+ * the status of the process. While the process is running, a call to the URI in the Location header returns a
+ * status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If
+ * the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteAtScope(String scope, String deploymentName, Context context);
+
+ /**
+ * Deletes a deployment from the deployment history.
+ *
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. This is an asynchronous operation that returns a status of 202 until the
+ * template deployment is successfully deleted. The Location response header contains the URI that is used to obtain
+ * the status of the process. While the process is running, a call to the URI in the Location header returns a
+ * status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If
+ * the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 deleteAtScope(String scope, String deploymentName);
+
+ /**
+ * Deletes a deployment from the deployment history.
+ *
+ *
A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. This is an asynchronous operation that returns a status of 202 until the
+ * template deployment is successfully deleted. The Location response header contains the URI that is used to obtain
+ * the status of the process. While the process is running, a call to the URI in the Location header returns a
+ * status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If
+ * the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 deleteAtScope(String scope, String deploymentName, Context context);
+
+ /**
+ * Checks whether the deployment exists.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return whether resource exists.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ boolean checkExistenceAtScope(String scope, String deploymentName);
+
+ /**
+ * Checks whether the deployment exists.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return whether resource exists along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkExistenceAtScopeWithResponse(String scope, String deploymentName, Context context);
+
+ /**
+ * Deploys resources at a given scope.
+ *
+ * You can provide the template and parameters directly in the request or link to JSON files.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Additional parameters supplied to the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentExtendedInner> beginCreateOrUpdateAtScope(
+ String scope, String deploymentName, Deployment parameters);
+
+ /**
+ * Deploys resources at a given scope.
+ *
+ * You can provide the template and parameters directly in the request or link to JSON files.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Additional parameters supplied to the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentExtendedInner> beginCreateOrUpdateAtScope(
+ String scope, String deploymentName, Deployment parameters, Context context);
+
+ /**
+ * Deploys resources at a given scope.
+ *
+ * You can provide the template and parameters directly in the request or link to JSON files.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Additional parameters supplied to the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExtendedInner createOrUpdateAtScope(String scope, String deploymentName, Deployment parameters);
+
+ /**
+ * Deploys resources at a given scope.
+ *
+ *
You can provide the template and parameters directly in the request or link to JSON files.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Additional parameters supplied to the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExtendedInner createOrUpdateAtScope(
+ String scope, String deploymentName, Deployment parameters, Context context);
+
+ /**
+ * Gets a deployment.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExtendedInner getAtScope(String scope, String deploymentName);
+
+ /**
+ * Gets a deployment.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAtScopeWithResponse(String scope, String deploymentName, Context context);
+
+ /**
+ * Cancels a currently running template deployment.
+ *
+ * You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is
+ * canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running
+ * template deployment and leaves the resources partially deployed.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 cancelAtScope(String scope, String deploymentName);
+
+ /**
+ * Cancels a currently running template deployment.
+ *
+ *
You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is
+ * canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running
+ * template deployment and leaves the resources partially deployed.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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 cancelAtScopeWithResponse(String scope, String deploymentName, Context context);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to 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 {@link SyncPoller} for polling of information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentValidateResultInner> beginValidateAtScope(
+ String scope, String deploymentName, Deployment parameters);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentValidateResultInner> beginValidateAtScope(
+ String scope, String deploymentName, Deployment parameters, Context context);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to 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 information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentValidateResultInner validateAtScope(String scope, String deploymentName, Deployment parameters);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentValidateResultInner validateAtScope(
+ String scope, String deploymentName, Deployment parameters, Context context);
+
+ /**
+ * Exports the template used for specified deployment.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the deployment export result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExportResultInner exportTemplateAtScope(String scope, String deploymentName);
+
+ /**
+ * Exports the template used for specified deployment.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the deployment export result along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response exportTemplateAtScopeWithResponse(
+ String scope, String deploymentName, Context context);
+
+ /**
+ * Get all the deployments at the given scope.
+ *
+ * @param scope The resource scope.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the deployments at the given scope as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtScope(String scope);
+
+ /**
+ * Get all the deployments at the given scope.
+ *
+ * @param scope The resource scope.
+ * @param filter The filter to apply on the operation. For example, you can use $filter=provisioningState eq
+ * '{state}'.
+ * @param top The number of results to get. If null is passed, returns all deployments.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the deployments at the given scope as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtScope(String scope, String filter, Integer top, Context context);
+
+ /**
+ * Deletes a deployment from the deployment history.
+ *
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. This is an asynchronous operation that returns a status of 202 until the
+ * template deployment is successfully deleted. The Location response header contains the URI that is used to obtain
+ * the status of the process. While the process is running, a call to the URI in the Location header returns a
+ * status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If
+ * the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteAtTenantScope(String deploymentName);
+
+ /**
+ * Deletes a deployment from the deployment history.
+ *
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. This is an asynchronous operation that returns a status of 202 until the
+ * template deployment is successfully deleted. The Location response header contains the URI that is used to obtain
+ * the status of the process. While the process is running, a call to the URI in the Location header returns a
+ * status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If
+ * the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteAtTenantScope(String deploymentName, Context context);
+
+ /**
+ * Deletes a deployment from the deployment history.
+ *
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. This is an asynchronous operation that returns a status of 202 until the
+ * template deployment is successfully deleted. The Location response header contains the URI that is used to obtain
+ * the status of the process. While the process is running, a call to the URI in the Location header returns a
+ * status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If
+ * the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 deleteAtTenantScope(String deploymentName);
+
+ /**
+ * Deletes a deployment from the deployment history.
+ *
+ *
A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. This is an asynchronous operation that returns a status of 202 until the
+ * template deployment is successfully deleted. The Location response header contains the URI that is used to obtain
+ * the status of the process. While the process is running, a call to the URI in the Location header returns a
+ * status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If
+ * the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 deleteAtTenantScope(String deploymentName, Context context);
+
+ /**
+ * Checks whether the deployment exists.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return whether resource exists.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ boolean checkExistenceAtTenantScope(String deploymentName);
+
+ /**
+ * Checks whether the deployment exists.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return whether resource exists along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkExistenceAtTenantScopeWithResponse(String deploymentName, Context context);
+
+ /**
+ * Deploys resources at tenant scope.
+ *
+ * You can provide the template and parameters directly in the request or link to JSON files.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Additional parameters supplied to the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentExtendedInner> beginCreateOrUpdateAtTenantScope(
+ String deploymentName, ScopedDeployment parameters);
+
+ /**
+ * Deploys resources at tenant scope.
+ *
+ * You can provide the template and parameters directly in the request or link to JSON files.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Additional parameters supplied to the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentExtendedInner> beginCreateOrUpdateAtTenantScope(
+ String deploymentName, ScopedDeployment parameters, Context context);
+
+ /**
+ * Deploys resources at tenant scope.
+ *
+ * You can provide the template and parameters directly in the request or link to JSON files.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Additional parameters supplied to the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExtendedInner createOrUpdateAtTenantScope(String deploymentName, ScopedDeployment parameters);
+
+ /**
+ * Deploys resources at tenant scope.
+ *
+ *
You can provide the template and parameters directly in the request or link to JSON files.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Additional parameters supplied to the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExtendedInner createOrUpdateAtTenantScope(
+ String deploymentName, ScopedDeployment parameters, Context context);
+
+ /**
+ * Gets a deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExtendedInner getAtTenantScope(String deploymentName);
+
+ /**
+ * Gets a deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAtTenantScopeWithResponse(String deploymentName, Context context);
+
+ /**
+ * Cancels a currently running template deployment.
+ *
+ * You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is
+ * canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running
+ * template deployment and leaves the resources partially deployed.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 cancelAtTenantScope(String deploymentName);
+
+ /**
+ * Cancels a currently running template deployment.
+ *
+ *
You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is
+ * canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running
+ * template deployment and leaves the resources partially deployed.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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 cancelAtTenantScopeWithResponse(String deploymentName, Context context);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to 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 {@link SyncPoller} for polling of information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentValidateResultInner> beginValidateAtTenantScope(
+ String deploymentName, ScopedDeployment parameters);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentValidateResultInner> beginValidateAtTenantScope(
+ String deploymentName, ScopedDeployment parameters, Context context);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to 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 information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentValidateResultInner validateAtTenantScope(String deploymentName, ScopedDeployment parameters);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentValidateResultInner validateAtTenantScope(
+ String deploymentName, ScopedDeployment parameters, Context context);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the tenant group.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to 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 {@link SyncPoller} for polling of result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WhatIfOperationResultInner> beginWhatIfAtTenantScope(
+ String deploymentName, ScopedDeploymentWhatIf parameters);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the tenant group.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WhatIfOperationResultInner> beginWhatIfAtTenantScope(
+ String deploymentName, ScopedDeploymentWhatIf parameters, Context context);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the tenant group.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to 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 result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WhatIfOperationResultInner whatIfAtTenantScope(String deploymentName, ScopedDeploymentWhatIf parameters);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the tenant group.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WhatIfOperationResultInner whatIfAtTenantScope(
+ String deploymentName, ScopedDeploymentWhatIf parameters, Context context);
+
+ /**
+ * Exports the template used for specified deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the deployment export result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExportResultInner exportTemplateAtTenantScope(String deploymentName);
+
+ /**
+ * Exports the template used for specified deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the deployment export result along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response exportTemplateAtTenantScopeWithResponse(
+ String deploymentName, Context context);
+
+ /**
+ * Get all the deployments at the tenant scope.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the deployments at the tenant scope as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtTenantScope();
+
+ /**
+ * Get all the deployments at the tenant scope.
+ *
+ * @param filter The filter to apply on the operation. For example, you can use $filter=provisioningState eq
+ * '{state}'.
+ * @param top The number of results to get. If null is passed, returns all deployments.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the deployments at the tenant scope as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtTenantScope(String filter, Integer top, Context context);
+
+ /**
+ * Deletes a deployment from the deployment history.
+ *
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. This is an asynchronous operation that returns a status of 202 until the
+ * template deployment is successfully deleted. The Location response header contains the URI that is used to obtain
+ * the status of the process. While the process is running, a call to the URI in the Location header returns a
+ * status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If
+ * the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteAtManagementGroupScope(String groupId, String deploymentName);
+
+ /**
+ * Deletes a deployment from the deployment history.
+ *
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. This is an asynchronous operation that returns a status of 202 until the
+ * template deployment is successfully deleted. The Location response header contains the URI that is used to obtain
+ * the status of the process. While the process is running, a call to the URI in the Location header returns a
+ * status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If
+ * the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteAtManagementGroupScope(
+ String groupId, String deploymentName, Context context);
+
+ /**
+ * Deletes a deployment from the deployment history.
+ *
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. This is an asynchronous operation that returns a status of 202 until the
+ * template deployment is successfully deleted. The Location response header contains the URI that is used to obtain
+ * the status of the process. While the process is running, a call to the URI in the Location header returns a
+ * status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If
+ * the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 deleteAtManagementGroupScope(String groupId, String deploymentName);
+
+ /**
+ * Deletes a deployment from the deployment history.
+ *
+ *
A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. This is an asynchronous operation that returns a status of 202 until the
+ * template deployment is successfully deleted. The Location response header contains the URI that is used to obtain
+ * the status of the process. While the process is running, a call to the URI in the Location header returns a
+ * status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If
+ * the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 deleteAtManagementGroupScope(String groupId, String deploymentName, Context context);
+
+ /**
+ * Checks whether the deployment exists.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return whether resource exists.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ boolean checkExistenceAtManagementGroupScope(String groupId, String deploymentName);
+
+ /**
+ * Checks whether the deployment exists.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return whether resource exists along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkExistenceAtManagementGroupScopeWithResponse(
+ String groupId, String deploymentName, Context context);
+
+ /**
+ * Deploys resources at management group scope.
+ *
+ * You can provide the template and parameters directly in the request or link to JSON files.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Additional parameters supplied to the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentExtendedInner> beginCreateOrUpdateAtManagementGroupScope(
+ String groupId, String deploymentName, ScopedDeployment parameters);
+
+ /**
+ * Deploys resources at management group scope.
+ *
+ * You can provide the template and parameters directly in the request or link to JSON files.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Additional parameters supplied to the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentExtendedInner> beginCreateOrUpdateAtManagementGroupScope(
+ String groupId, String deploymentName, ScopedDeployment parameters, Context context);
+
+ /**
+ * Deploys resources at management group scope.
+ *
+ * You can provide the template and parameters directly in the request or link to JSON files.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Additional parameters supplied to the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExtendedInner createOrUpdateAtManagementGroupScope(
+ String groupId, String deploymentName, ScopedDeployment parameters);
+
+ /**
+ * Deploys resources at management group scope.
+ *
+ *
You can provide the template and parameters directly in the request or link to JSON files.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Additional parameters supplied to the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExtendedInner createOrUpdateAtManagementGroupScope(
+ String groupId, String deploymentName, ScopedDeployment parameters, Context context);
+
+ /**
+ * Gets a deployment.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExtendedInner getAtManagementGroupScope(String groupId, String deploymentName);
+
+ /**
+ * Gets a deployment.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAtManagementGroupScopeWithResponse(
+ String groupId, String deploymentName, Context context);
+
+ /**
+ * Cancels a currently running template deployment.
+ *
+ * You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is
+ * canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running
+ * template deployment and leaves the resources partially deployed.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 cancelAtManagementGroupScope(String groupId, String deploymentName);
+
+ /**
+ * Cancels a currently running template deployment.
+ *
+ *
You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is
+ * canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running
+ * template deployment and leaves the resources partially deployed.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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 cancelAtManagementGroupScopeWithResponse(String groupId, String deploymentName, Context context);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to 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 {@link SyncPoller} for polling of information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentValidateResultInner>
+ beginValidateAtManagementGroupScope(String groupId, String deploymentName, ScopedDeployment parameters);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentValidateResultInner>
+ beginValidateAtManagementGroupScope(
+ String groupId, String deploymentName, ScopedDeployment parameters, Context context);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to 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 information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentValidateResultInner validateAtManagementGroupScope(
+ String groupId, String deploymentName, ScopedDeployment parameters);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentValidateResultInner validateAtManagementGroupScope(
+ String groupId, String deploymentName, ScopedDeployment parameters, Context context);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the management group.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to 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 {@link SyncPoller} for polling of result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WhatIfOperationResultInner> beginWhatIfAtManagementGroupScope(
+ String groupId, String deploymentName, ScopedDeploymentWhatIf parameters);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the management group.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WhatIfOperationResultInner> beginWhatIfAtManagementGroupScope(
+ String groupId, String deploymentName, ScopedDeploymentWhatIf parameters, Context context);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the management group.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to 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 result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WhatIfOperationResultInner whatIfAtManagementGroupScope(
+ String groupId, String deploymentName, ScopedDeploymentWhatIf parameters);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the management group.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WhatIfOperationResultInner whatIfAtManagementGroupScope(
+ String groupId, String deploymentName, ScopedDeploymentWhatIf parameters, Context context);
+
+ /**
+ * Exports the template used for specified deployment.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the deployment export result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExportResultInner exportTemplateAtManagementGroupScope(String groupId, String deploymentName);
+
+ /**
+ * Exports the template used for specified deployment.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the deployment export result along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response exportTemplateAtManagementGroupScopeWithResponse(
+ String groupId, String deploymentName, Context context);
+
+ /**
+ * Get all the deployments for a management group.
+ *
+ * @param groupId The management group ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the deployments for a management group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtManagementGroupScope(String groupId);
+
+ /**
+ * Get all the deployments for a management group.
+ *
+ * @param groupId The management group ID.
+ * @param filter The filter to apply on the operation. For example, you can use $filter=provisioningState eq
+ * '{state}'.
+ * @param top The number of results to get. If null is passed, returns all deployments.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the deployments for a management group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtManagementGroupScope(
+ String groupId, String filter, Integer top, Context context);
+
+ /**
+ * Deletes a deployment from the deployment history.
+ *
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. This is an asynchronous operation that returns a status of 202 until the
+ * template deployment is successfully deleted. The Location response header contains the URI that is used to obtain
+ * the status of the process. While the process is running, a call to the URI in the Location header returns a
+ * status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If
+ * the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteAtSubscriptionScope(String deploymentName);
+
+ /**
+ * Deletes a deployment from the deployment history.
+ *
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. This is an asynchronous operation that returns a status of 202 until the
+ * template deployment is successfully deleted. The Location response header contains the URI that is used to obtain
+ * the status of the process. While the process is running, a call to the URI in the Location header returns a
+ * status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If
+ * the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteAtSubscriptionScope(String deploymentName, Context context);
+
+ /**
+ * Deletes a deployment from the deployment history.
+ *
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. This is an asynchronous operation that returns a status of 202 until the
+ * template deployment is successfully deleted. The Location response header contains the URI that is used to obtain
+ * the status of the process. While the process is running, a call to the URI in the Location header returns a
+ * status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If
+ * the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 deleteAtSubscriptionScope(String deploymentName);
+
+ /**
+ * Deletes a deployment from the deployment history.
+ *
+ *
A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. This is an asynchronous operation that returns a status of 202 until the
+ * template deployment is successfully deleted. The Location response header contains the URI that is used to obtain
+ * the status of the process. While the process is running, a call to the URI in the Location header returns a
+ * status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If
+ * the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 deleteAtSubscriptionScope(String deploymentName, Context context);
+
+ /**
+ * Checks whether the deployment exists.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return whether resource exists.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ boolean checkExistenceAtSubscriptionScope(String deploymentName);
+
+ /**
+ * Checks whether the deployment exists.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return whether resource exists along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkExistenceAtSubscriptionScopeWithResponse(String deploymentName, Context context);
+
+ /**
+ * Deploys resources at subscription scope.
+ *
+ * You can provide the template and parameters directly in the request or link to JSON files.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Additional parameters supplied to the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentExtendedInner> beginCreateOrUpdateAtSubscriptionScope(
+ String deploymentName, Deployment parameters);
+
+ /**
+ * Deploys resources at subscription scope.
+ *
+ * You can provide the template and parameters directly in the request or link to JSON files.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Additional parameters supplied to the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentExtendedInner> beginCreateOrUpdateAtSubscriptionScope(
+ String deploymentName, Deployment parameters, Context context);
+
+ /**
+ * Deploys resources at subscription scope.
+ *
+ * You can provide the template and parameters directly in the request or link to JSON files.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Additional parameters supplied to the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExtendedInner createOrUpdateAtSubscriptionScope(String deploymentName, Deployment parameters);
+
+ /**
+ * Deploys resources at subscription scope.
+ *
+ *
You can provide the template and parameters directly in the request or link to JSON files.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Additional parameters supplied to the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExtendedInner createOrUpdateAtSubscriptionScope(
+ String deploymentName, Deployment parameters, Context context);
+
+ /**
+ * Gets a deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExtendedInner getAtSubscriptionScope(String deploymentName);
+
+ /**
+ * Gets a deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAtSubscriptionScopeWithResponse(String deploymentName, Context context);
+
+ /**
+ * Cancels a currently running template deployment.
+ *
+ * You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is
+ * canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running
+ * template deployment and leaves the resources partially deployed.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 cancelAtSubscriptionScope(String deploymentName);
+
+ /**
+ * Cancels a currently running template deployment.
+ *
+ *
You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is
+ * canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running
+ * template deployment and leaves the resources partially deployed.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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 cancelAtSubscriptionScopeWithResponse(String deploymentName, Context context);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to 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 {@link SyncPoller} for polling of information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentValidateResultInner>
+ beginValidateAtSubscriptionScope(String deploymentName, Deployment parameters);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentValidateResultInner>
+ beginValidateAtSubscriptionScope(String deploymentName, Deployment parameters, Context context);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to 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 information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentValidateResultInner validateAtSubscriptionScope(String deploymentName, Deployment parameters);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentValidateResultInner validateAtSubscriptionScope(
+ String deploymentName, Deployment parameters, Context context);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the subscription.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to What If.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WhatIfOperationResultInner> beginWhatIfAtSubscriptionScope(
+ String deploymentName, DeploymentWhatIf parameters);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the subscription.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to What If.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WhatIfOperationResultInner> beginWhatIfAtSubscriptionScope(
+ String deploymentName, DeploymentWhatIf parameters, Context context);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the subscription.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to What If.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WhatIfOperationResultInner whatIfAtSubscriptionScope(String deploymentName, DeploymentWhatIf parameters);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the subscription.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to What If.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WhatIfOperationResultInner whatIfAtSubscriptionScope(
+ String deploymentName, DeploymentWhatIf parameters, Context context);
+
+ /**
+ * Exports the template used for specified deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the deployment export result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExportResultInner exportTemplateAtSubscriptionScope(String deploymentName);
+
+ /**
+ * Exports the template used for specified deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the deployment export result along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response exportTemplateAtSubscriptionScopeWithResponse(
+ String deploymentName, Context context);
+
+ /**
+ * Get all the deployments for a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the deployments for a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Get all the deployments for a subscription.
+ *
+ * @param filter The filter to apply on the operation. For example, you can use $filter=provisioningState eq
+ * '{state}'.
+ * @param top The number of results to get. If null is passed, returns all deployments.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the deployments for a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String filter, Integer top, Context context);
+
+ /**
+ * Deletes a deployment from the deployment history.
+ *
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. Deleting a template deployment does not affect the state of the resource group.
+ * This is an asynchronous operation that returns a status of 202 until the template deployment is successfully
+ * deleted. The Location response header contains the URI that is used to obtain the status of the process. While
+ * the process is running, a call to the URI in the Location header returns a status of 202. When the process
+ * finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed,
+ * the URI in the Location header returns an error-level status code.
+ *
+ * @param resourceGroupName The name of the resource group with the deployment to delete. The name is case
+ * insensitive.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String deploymentName);
+
+ /**
+ * Deletes a deployment from the deployment history.
+ *
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. Deleting a template deployment does not affect the state of the resource group.
+ * This is an asynchronous operation that returns a status of 202 until the template deployment is successfully
+ * deleted. The Location response header contains the URI that is used to obtain the status of the process. While
+ * the process is running, a call to the URI in the Location header returns a status of 202. When the process
+ * finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed,
+ * the URI in the Location header returns an error-level status code.
+ *
+ * @param resourceGroupName The name of the resource group with the deployment to delete. The name is case
+ * insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String deploymentName, Context context);
+
+ /**
+ * Deletes a deployment from the deployment history.
+ *
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. Deleting a template deployment does not affect the state of the resource group.
+ * This is an asynchronous operation that returns a status of 202 until the template deployment is successfully
+ * deleted. The Location response header contains the URI that is used to obtain the status of the process. While
+ * the process is running, a call to the URI in the Location header returns a status of 202. When the process
+ * finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed,
+ * the URI in the Location header returns an error-level status code.
+ *
+ * @param resourceGroupName The name of the resource group with the deployment to delete. The name is case
+ * insensitive.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 deploymentName);
+
+ /**
+ * Deletes a deployment from the deployment history.
+ *
+ *
A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. Deleting a template deployment does not affect the state of the resource group.
+ * This is an asynchronous operation that returns a status of 202 until the template deployment is successfully
+ * deleted. The Location response header contains the URI that is used to obtain the status of the process. While
+ * the process is running, a call to the URI in the Location header returns a status of 202. When the process
+ * finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed,
+ * the URI in the Location header returns an error-level status code.
+ *
+ * @param resourceGroupName The name of the resource group with the deployment to delete. The name is case
+ * insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 deploymentName, Context context);
+
+ /**
+ * Checks whether the deployment exists.
+ *
+ * @param resourceGroupName The name of the resource group with the deployment to check. The name is case
+ * insensitive.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return whether resource exists.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ boolean checkExistence(String resourceGroupName, String deploymentName);
+
+ /**
+ * Checks whether the deployment exists.
+ *
+ * @param resourceGroupName The name of the resource group with the deployment to check. The name is case
+ * insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return whether resource exists along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkExistenceWithResponse(String resourceGroupName, String deploymentName, Context context);
+
+ /**
+ * Deploys resources to a resource group.
+ *
+ * You can provide the template and parameters directly in the request or link to JSON files.
+ *
+ * @param resourceGroupName The name of the resource group to deploy the resources to. The name is case insensitive.
+ * The resource group must already exist.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Additional parameters supplied to the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentExtendedInner> beginCreateOrUpdate(
+ String resourceGroupName, String deploymentName, Deployment parameters);
+
+ /**
+ * Deploys resources to a resource group.
+ *
+ * You can provide the template and parameters directly in the request or link to JSON files.
+ *
+ * @param resourceGroupName The name of the resource group to deploy the resources to. The name is case insensitive.
+ * The resource group must already exist.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Additional parameters supplied to the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentExtendedInner> beginCreateOrUpdate(
+ String resourceGroupName, String deploymentName, Deployment parameters, Context context);
+
+ /**
+ * Deploys resources to a resource group.
+ *
+ * You can provide the template and parameters directly in the request or link to JSON files.
+ *
+ * @param resourceGroupName The name of the resource group to deploy the resources to. The name is case insensitive.
+ * The resource group must already exist.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Additional parameters supplied to the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExtendedInner createOrUpdate(String resourceGroupName, String deploymentName, Deployment parameters);
+
+ /**
+ * Deploys resources to a resource group.
+ *
+ *
You can provide the template and parameters directly in the request or link to JSON files.
+ *
+ * @param resourceGroupName The name of the resource group to deploy the resources to. The name is case insensitive.
+ * The resource group must already exist.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Additional parameters supplied to the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExtendedInner createOrUpdate(
+ String resourceGroupName, String deploymentName, Deployment parameters, Context context);
+
+ /**
+ * Gets a deployment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExtendedInner getByResourceGroup(String resourceGroupName, String deploymentName);
+
+ /**
+ * Gets a deployment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String deploymentName, Context context);
+
+ /**
+ * Cancels a currently running template deployment.
+ *
+ * You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is
+ * canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running
+ * template deployment and leaves the resource group partially deployed.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 cancel(String resourceGroupName, String deploymentName);
+
+ /**
+ * Cancels a currently running template deployment.
+ *
+ *
You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is
+ * canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running
+ * template deployment and leaves the resource group partially deployed.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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 cancelWithResponse(String resourceGroupName, String deploymentName, Context context);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param resourceGroupName The name of the resource group the template will be deployed to. The name is case
+ * insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to 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 {@link SyncPoller} for polling of information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentValidateResultInner> beginValidate(
+ String resourceGroupName, String deploymentName, Deployment parameters);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param resourceGroupName The name of the resource group the template will be deployed to. The name is case
+ * insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentValidateResultInner> beginValidate(
+ String resourceGroupName, String deploymentName, Deployment parameters, Context context);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param resourceGroupName The name of the resource group the template will be deployed to. The name is case
+ * insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to 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 information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentValidateResultInner validate(String resourceGroupName, String deploymentName, Deployment parameters);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param resourceGroupName The name of the resource group the template will be deployed to. The name is case
+ * insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentValidateResultInner validate(
+ String resourceGroupName, String deploymentName, Deployment parameters, Context context);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the resource group.
+ *
+ * @param resourceGroupName The name of the resource group the template will be deployed to. The name is case
+ * insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to 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 {@link SyncPoller} for polling of result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WhatIfOperationResultInner> beginWhatIf(
+ String resourceGroupName, String deploymentName, DeploymentWhatIf parameters);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the resource group.
+ *
+ * @param resourceGroupName The name of the resource group the template will be deployed to. The name is case
+ * insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WhatIfOperationResultInner> beginWhatIf(
+ String resourceGroupName, String deploymentName, DeploymentWhatIf parameters, Context context);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the resource group.
+ *
+ * @param resourceGroupName The name of the resource group the template will be deployed to. The name is case
+ * insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to 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 result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WhatIfOperationResultInner whatIf(String resourceGroupName, String deploymentName, DeploymentWhatIf parameters);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the resource group.
+ *
+ * @param resourceGroupName The name of the resource group the template will be deployed to. The name is case
+ * insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WhatIfOperationResultInner whatIf(
+ String resourceGroupName, String deploymentName, DeploymentWhatIf parameters, Context context);
+
+ /**
+ * Exports the template used for specified deployment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the deployment export result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExportResultInner exportTemplate(String resourceGroupName, String deploymentName);
+
+ /**
+ * Exports the template used for specified deployment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the deployment export result along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response exportTemplateWithResponse(
+ String resourceGroupName, String deploymentName, Context context);
+
+ /**
+ * Get all the deployments for a resource group.
+ *
+ * @param resourceGroupName The name of the resource group with the deployments to get. 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 all the deployments for a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Get all the deployments for a resource group.
+ *
+ * @param resourceGroupName The name of the resource group with the deployments to get. The name is case
+ * insensitive.
+ * @param filter The filter to apply on the operation. For example, you can use $filter=provisioningState eq
+ * '{state}'.
+ * @param top The number of results to get. If null is passed, returns all deployments.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the deployments for a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(
+ String resourceGroupName, String filter, Integer top, Context context);
+
+ /**
+ * Calculate the hash of the given template.
+ *
+ * @param template The template provided to calculate hash.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to calculate template hash.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TemplateHashResultInner calculateTemplateHash(Object template);
+
+ /**
+ * Calculate the hash of the given template.
+ *
+ * @param template The template provided to calculate hash.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to calculate template hash along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response calculateTemplateHashWithResponse(Object template, Context context);
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/OperationsClient.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/OperationsClient.java
new file mode 100644
index 0000000000000..b6e3e25ecb2b0
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/OperationsClient.java
@@ -0,0 +1,38 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.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.resources.generated.fluent.models.OperationInner;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public interface OperationsClient {
+ /**
+ * Lists all of the available Microsoft.Resources REST API operations.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list Microsoft.Resources operations as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all of the available Microsoft.Resources REST API operations.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list Microsoft.Resources operations as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ProviderResourceTypesClient.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ProviderResourceTypesClient.java
new file mode 100644
index 0000000000000..7038bc2c88d4a
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ProviderResourceTypesClient.java
@@ -0,0 +1,42 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.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.resources.generated.fluent.models.ProviderResourceTypeListResultInner;
+
+/** An instance of this class provides access to all the operations defined in ProviderResourceTypesClient. */
+public interface ProviderResourceTypesClient {
+ /**
+ * List the resource types for a specified resource provider.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 resource types of a resource provider.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ProviderResourceTypeListResultInner list(String resourceProviderNamespace);
+
+ /**
+ * List the resource types for a specified resource provider.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param expand The $expand query parameter. For example, to include property aliases in response, use
+ * $expand=resourceTypes/aliases.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 resource types of a resource provider along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(
+ String resourceProviderNamespace, String expand, Context context);
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ProvidersClient.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ProvidersClient.java
new file mode 100644
index 0000000000000..60b8906d219e1
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ProvidersClient.java
@@ -0,0 +1,227 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.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.resources.generated.fluent.models.ProviderInner;
+import com.azure.resourcemanager.resources.generated.fluent.models.ProviderPermissionListResultInner;
+import com.azure.resourcemanager.resources.generated.models.ProviderRegistrationRequest;
+
+/** An instance of this class provides access to all the operations defined in ProvidersClient. */
+public interface ProvidersClient {
+ /**
+ * Unregisters a subscription from a resource provider.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider to unregister.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource provider information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ProviderInner unregister(String resourceProviderNamespace);
+
+ /**
+ * Unregisters a subscription from a resource provider.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider to unregister.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource provider information along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response unregisterWithResponse(String resourceProviderNamespace, Context context);
+
+ /**
+ * Registers a management group with a resource provider.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider to register.
+ * @param groupId The management group ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void registerAtManagementGroupScope(String resourceProviderNamespace, String groupId);
+
+ /**
+ * Registers a management group with a resource provider.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider to register.
+ * @param groupId The management group ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response registerAtManagementGroupScopeWithResponse(
+ String resourceProviderNamespace, String groupId, Context context);
+
+ /**
+ * Get the provider permissions.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the provider permissions.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ProviderPermissionListResultInner providerPermissions(String resourceProviderNamespace);
+
+ /**
+ * Get the provider permissions.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the provider permissions along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response providerPermissionsWithResponse(
+ String resourceProviderNamespace, Context context);
+
+ /**
+ * Registers a subscription with a resource provider.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider to register.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource provider information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ProviderInner register(String resourceProviderNamespace);
+
+ /**
+ * Registers a subscription with a resource provider.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider to register.
+ * @param properties The third party consent for S2S.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource provider information along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response registerWithResponse(
+ String resourceProviderNamespace, ProviderRegistrationRequest properties, Context context);
+
+ /**
+ * Gets all resource providers for a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all resource providers for a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Gets all resource providers for a subscription.
+ *
+ * @param expand The properties to include in the results. For example, use &$expand=metadata in the query
+ * string to retrieve resource provider metadata. To include property aliases in response, use
+ * $expand=resourceTypes/aliases.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all resource providers for a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String expand, Context context);
+
+ /**
+ * Gets all resource providers for the tenant.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all resource providers for the tenant as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtTenantScope();
+
+ /**
+ * Gets all resource providers for the tenant.
+ *
+ * @param expand The properties to include in the results. For example, use &$expand=metadata in the query
+ * string to retrieve resource provider metadata. To include property aliases in response, use
+ * $expand=resourceTypes/aliases.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all resource providers for the tenant as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtTenantScope(String expand, Context context);
+
+ /**
+ * Gets the specified resource provider.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified resource provider.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ProviderInner get(String resourceProviderNamespace);
+
+ /**
+ * Gets the specified resource provider.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param expand The $expand query parameter. For example, to include property aliases in response, use
+ * $expand=resourceTypes/aliases.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified resource provider along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceProviderNamespace, String expand, Context context);
+
+ /**
+ * Gets the specified resource provider at the tenant level.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified resource provider at the tenant level.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ProviderInner getAtTenantScope(String resourceProviderNamespace);
+
+ /**
+ * Gets the specified resource provider at the tenant level.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param expand The $expand query parameter. For example, to include property aliases in response, use
+ * $expand=resourceTypes/aliases.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified resource provider at the tenant level along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAtTenantScopeWithResponse(
+ String resourceProviderNamespace, String expand, Context context);
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ResourceGroupsClient.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ResourceGroupsClient.java
new file mode 100644
index 0000000000000..7125e527c87d5
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ResourceGroupsClient.java
@@ -0,0 +1,301 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.resources.generated.fluent.models.ResourceGroupExportResultInner;
+import com.azure.resourcemanager.resources.generated.fluent.models.ResourceGroupInner;
+import com.azure.resourcemanager.resources.generated.models.ExportTemplateRequest;
+import com.azure.resourcemanager.resources.generated.models.ResourceGroupPatchable;
+
+/** An instance of this class provides access to all the operations defined in ResourceGroupsClient. */
+public interface ResourceGroupsClient {
+ /**
+ * Checks whether a resource group exists.
+ *
+ * @param resourceGroupName The name of the resource group to check. 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 whether resource exists.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ boolean checkExistence(String resourceGroupName);
+
+ /**
+ * Checks whether a resource group exists.
+ *
+ * @param resourceGroupName The name of the resource group to check. 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 whether resource exists along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkExistenceWithResponse(String resourceGroupName, Context context);
+
+ /**
+ * Creates or updates a resource group.
+ *
+ * @param resourceGroupName The name of the resource group to create or update. Can include alphanumeric,
+ * underscore, parentheses, hyphen, period (except at end), and Unicode characters that match the allowed
+ * characters.
+ * @param parameters Parameters supplied to the create or update a resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource group information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ResourceGroupInner createOrUpdate(String resourceGroupName, ResourceGroupInner parameters);
+
+ /**
+ * Creates or updates a resource group.
+ *
+ * @param resourceGroupName The name of the resource group to create or update. Can include alphanumeric,
+ * underscore, parentheses, hyphen, period (except at end), and Unicode characters that match the allowed
+ * characters.
+ * @param parameters Parameters supplied to the create or update a resource group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource group information along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, ResourceGroupInner parameters, Context context);
+
+ /**
+ * Deletes a resource group.
+ *
+ * When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all
+ * of its template deployments and currently stored operations.
+ *
+ * @param resourceGroupName The name of the resource group to delete. The name is case insensitive.
+ * @param forceDeletionTypes The resource types you want to force delete. Currently, only the following is
+ * supported: forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String forceDeletionTypes);
+
+ /**
+ * Deletes a resource group.
+ *
+ * When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all
+ * of its template deployments and currently stored operations.
+ *
+ * @param resourceGroupName The name of the resource group to delete. The name is case insensitive.
+ * @param forceDeletionTypes The resource types you want to force delete. Currently, only the following is
+ * supported: forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String forceDeletionTypes, Context context);
+
+ /**
+ * Deletes a resource group.
+ *
+ * When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all
+ * of its template deployments and currently stored operations.
+ *
+ * @param resourceGroupName The name of the resource group to delete. The name is case insensitive.
+ * @param forceDeletionTypes The resource types you want to force delete. Currently, only the following is
+ * supported: forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 forceDeletionTypes);
+
+ /**
+ * Deletes a resource group.
+ *
+ *
When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all
+ * of its template deployments and currently stored operations.
+ *
+ * @param resourceGroupName The name of the resource group to delete. 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName);
+
+ /**
+ * Deletes a resource group.
+ *
+ *
When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all
+ * of its template deployments and currently stored operations.
+ *
+ * @param resourceGroupName The name of the resource group to delete. The name is case insensitive.
+ * @param forceDeletionTypes The resource types you want to force delete. Currently, only the following is
+ * supported: forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 forceDeletionTypes, Context context);
+
+ /**
+ * Gets a resource group.
+ *
+ * @param resourceGroupName The name of the resource group to get. 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 resource group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ResourceGroupInner get(String resourceGroupName);
+
+ /**
+ * Gets a resource group.
+ *
+ * @param resourceGroupName The name of the resource group to get. 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 resource group along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, Context context);
+
+ /**
+ * Updates a resource group.
+ *
+ * Resource groups can be updated through a simple PATCH operation to a group address. The format of the request
+ * is the same as that for creating a resource group. If a field is unspecified, the current value is retained.
+ *
+ * @param resourceGroupName The name of the resource group to update. The name is case insensitive.
+ * @param parameters Parameters supplied to update a resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource group information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ResourceGroupInner update(String resourceGroupName, ResourceGroupPatchable parameters);
+
+ /**
+ * Updates a resource group.
+ *
+ *
Resource groups can be updated through a simple PATCH operation to a group address. The format of the request
+ * is the same as that for creating a resource group. If a field is unspecified, the current value is retained.
+ *
+ * @param resourceGroupName The name of the resource group to update. The name is case insensitive.
+ * @param parameters Parameters supplied to update a resource group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource group information along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, ResourceGroupPatchable parameters, Context context);
+
+ /**
+ * Captures the specified resource group as a template.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters Parameters for exporting the template.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of resource group export result.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ResourceGroupExportResultInner> beginExportTemplate(
+ String resourceGroupName, ExportTemplateRequest parameters);
+
+ /**
+ * Captures the specified resource group as a template.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters Parameters for exporting the template.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of resource group export result.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ResourceGroupExportResultInner> beginExportTemplate(
+ String resourceGroupName, ExportTemplateRequest parameters, Context context);
+
+ /**
+ * Captures the specified resource group as a template.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters Parameters for exporting the template.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource group export result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ResourceGroupExportResultInner exportTemplate(String resourceGroupName, ExportTemplateRequest parameters);
+
+ /**
+ * Captures the specified resource group as a template.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters Parameters for exporting the template.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource group export result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ResourceGroupExportResultInner exportTemplate(
+ String resourceGroupName, ExportTemplateRequest parameters, Context context);
+
+ /**
+ * Gets all the resource groups for a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the resource groups for a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Gets all the resource groups for a subscription.
+ *
+ * @param filter The filter to apply on the operation.<br><br>You can filter by tag names and values.
+ * For example, to filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue eq 'Value1'.
+ * @param top The number of results to return. If null is passed, returns all resource groups.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the resource groups for a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String filter, Integer top, Context context);
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ResourceManagementClient.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ResourceManagementClient.java
new file mode 100644
index 0000000000000..69cdcea6288e1
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ResourceManagementClient.java
@@ -0,0 +1,102 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for ResourceManagementClient class. */
+public interface ResourceManagementClient {
+ /**
+ * Gets The Microsoft Azure subscription ID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the DeploymentsClient object to access its operations.
+ *
+ * @return the DeploymentsClient object.
+ */
+ DeploymentsClient getDeployments();
+
+ /**
+ * Gets the ProvidersClient object to access its operations.
+ *
+ * @return the ProvidersClient object.
+ */
+ ProvidersClient getProviders();
+
+ /**
+ * Gets the ProviderResourceTypesClient object to access its operations.
+ *
+ * @return the ProviderResourceTypesClient object.
+ */
+ ProviderResourceTypesClient getProviderResourceTypes();
+
+ /**
+ * Gets the ResourcesClient object to access its operations.
+ *
+ * @return the ResourcesClient object.
+ */
+ ResourcesClient getResources();
+
+ /**
+ * Gets the ResourceGroupsClient object to access its operations.
+ *
+ * @return the ResourceGroupsClient object.
+ */
+ ResourceGroupsClient getResourceGroups();
+
+ /**
+ * Gets the TagOperationsClient object to access its operations.
+ *
+ * @return the TagOperationsClient object.
+ */
+ TagOperationsClient getTagOperations();
+
+ /**
+ * Gets the DeploymentOperationsClient object to access its operations.
+ *
+ * @return the DeploymentOperationsClient object.
+ */
+ DeploymentOperationsClient getDeploymentOperations();
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ResourcesClient.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ResourcesClient.java
new file mode 100644
index 0000000000000..fd097d77132f7
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ResourcesClient.java
@@ -0,0 +1,935 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.resources.generated.fluent.models.GenericResourceExpandedInner;
+import com.azure.resourcemanager.resources.generated.fluent.models.GenericResourceInner;
+import com.azure.resourcemanager.resources.generated.models.ResourcesMoveInfo;
+
+/** An instance of this class provides access to all the operations defined in ResourcesClient. */
+public interface ResourcesClient {
+ /**
+ * Get all the resources for a resource group.
+ *
+ * @param resourceGroupName The resource group with the resources to 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 all the resources for a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Get all the resources for a resource group.
+ *
+ * @param resourceGroupName The resource group with the resources to get.
+ * @param filter The filter to apply on the operation.<br><br>The properties you can use for eq (equals)
+ * or ne (not equals) are: location, resourceType, name, resourceGroup, identity, identity/principalId, plan,
+ * plan/publisher, plan/product, plan/name, plan/version, and plan/promotionCode.<br><br>For
+ * example, to filter by a resource type, use: $filter=resourceType eq
+ * 'Microsoft.Network/virtualNetworks'<br><br>You can use substringof(value, property) in the
+ * filter. The properties you can use for substring are: name and resourceGroup.<br><br>For example,
+ * to get all resources with 'demo' anywhere in the name, use: $filter=substringof('demo',
+ * name)<br><br>You can link more than one substringof together by adding and/or
+ * operators.<br><br>You can filter by tag names and values. For example, to filter for a tag name
+ * and value, use $filter=tagName eq 'tag1' and tagValue eq 'Value1'. When you filter by a tag name and value,
+ * the tags for each resource are not returned in the results.<br><br>You can use some properties
+ * together when filtering. The combinations you can use are: substringof and/or resourceType, plan and
+ * plan/publisher and plan/name, identity and identity/principalId.
+ * @param expand Comma-separated list of additional properties to be included in the response. Valid values include
+ * `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`.
+ * @param top The number of results to return. If null is passed, returns all resources.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the resources for a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(
+ String resourceGroupName, String filter, String expand, Integer top, Context context);
+
+ /**
+ * Moves resources from one resource group to another resource group.
+ *
+ * The resources to be moved must be in the same source resource group in the source subscription being used. The
+ * target resource group may be in a different subscription. When moving resources, both the source group and the
+ * target group are locked for the duration of the operation. Write and delete operations are blocked on the groups
+ * until the move completes.
+ *
+ * @param sourceResourceGroupName The name of the resource group from the source subscription containing the
+ * resources to be moved.
+ * @param parameters Parameters for moving resources.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginMoveResources(String sourceResourceGroupName, ResourcesMoveInfo parameters);
+
+ /**
+ * Moves resources from one resource group to another resource group.
+ *
+ * The resources to be moved must be in the same source resource group in the source subscription being used. The
+ * target resource group may be in a different subscription. When moving resources, both the source group and the
+ * target group are locked for the duration of the operation. Write and delete operations are blocked on the groups
+ * until the move completes.
+ *
+ * @param sourceResourceGroupName The name of the resource group from the source subscription containing the
+ * resources to be moved.
+ * @param parameters Parameters for moving resources.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginMoveResources(
+ String sourceResourceGroupName, ResourcesMoveInfo parameters, Context context);
+
+ /**
+ * Moves resources from one resource group to another resource group.
+ *
+ * The resources to be moved must be in the same source resource group in the source subscription being used. The
+ * target resource group may be in a different subscription. When moving resources, both the source group and the
+ * target group are locked for the duration of the operation. Write and delete operations are blocked on the groups
+ * until the move completes.
+ *
+ * @param sourceResourceGroupName The name of the resource group from the source subscription containing the
+ * resources to be moved.
+ * @param parameters Parameters for moving resources.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 moveResources(String sourceResourceGroupName, ResourcesMoveInfo parameters);
+
+ /**
+ * Moves resources from one resource group to another resource group.
+ *
+ *
The resources to be moved must be in the same source resource group in the source subscription being used. The
+ * target resource group may be in a different subscription. When moving resources, both the source group and the
+ * target group are locked for the duration of the operation. Write and delete operations are blocked on the groups
+ * until the move completes.
+ *
+ * @param sourceResourceGroupName The name of the resource group from the source subscription containing the
+ * resources to be moved.
+ * @param parameters Parameters for moving resources.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 moveResources(String sourceResourceGroupName, ResourcesMoveInfo parameters, Context context);
+
+ /**
+ * Validates whether resources can be moved from one resource group to another resource group.
+ *
+ *
This operation checks whether the specified resources can be moved to the target. The resources to be moved
+ * must be in the same source resource group in the source subscription being used. The target resource group may be
+ * in a different subscription. If validation succeeds, it returns HTTP response code 204 (no content). If
+ * validation fails, it returns HTTP response code 409 (Conflict) with an error message. Retrieve the URL in the
+ * Location header value to check the result of the long-running operation.
+ *
+ * @param sourceResourceGroupName The name of the resource group from the source subscription containing the
+ * resources to be validated for move.
+ * @param parameters Parameters for moving resources.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginValidateMoveResources(
+ String sourceResourceGroupName, ResourcesMoveInfo parameters);
+
+ /**
+ * Validates whether resources can be moved from one resource group to another resource group.
+ *
+ * This operation checks whether the specified resources can be moved to the target. The resources to be moved
+ * must be in the same source resource group in the source subscription being used. The target resource group may be
+ * in a different subscription. If validation succeeds, it returns HTTP response code 204 (no content). If
+ * validation fails, it returns HTTP response code 409 (Conflict) with an error message. Retrieve the URL in the
+ * Location header value to check the result of the long-running operation.
+ *
+ * @param sourceResourceGroupName The name of the resource group from the source subscription containing the
+ * resources to be validated for move.
+ * @param parameters Parameters for moving resources.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginValidateMoveResources(
+ String sourceResourceGroupName, ResourcesMoveInfo parameters, Context context);
+
+ /**
+ * Validates whether resources can be moved from one resource group to another resource group.
+ *
+ * This operation checks whether the specified resources can be moved to the target. The resources to be moved
+ * must be in the same source resource group in the source subscription being used. The target resource group may be
+ * in a different subscription. If validation succeeds, it returns HTTP response code 204 (no content). If
+ * validation fails, it returns HTTP response code 409 (Conflict) with an error message. Retrieve the URL in the
+ * Location header value to check the result of the long-running operation.
+ *
+ * @param sourceResourceGroupName The name of the resource group from the source subscription containing the
+ * resources to be validated for move.
+ * @param parameters Parameters for moving resources.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 validateMoveResources(String sourceResourceGroupName, ResourcesMoveInfo parameters);
+
+ /**
+ * Validates whether resources can be moved from one resource group to another resource group.
+ *
+ *
This operation checks whether the specified resources can be moved to the target. The resources to be moved
+ * must be in the same source resource group in the source subscription being used. The target resource group may be
+ * in a different subscription. If validation succeeds, it returns HTTP response code 204 (no content). If
+ * validation fails, it returns HTTP response code 409 (Conflict) with an error message. Retrieve the URL in the
+ * Location header value to check the result of the long-running operation.
+ *
+ * @param sourceResourceGroupName The name of the resource group from the source subscription containing the
+ * resources to be validated for move.
+ * @param parameters Parameters for moving resources.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 validateMoveResources(String sourceResourceGroupName, ResourcesMoveInfo parameters, Context context);
+
+ /**
+ * Get all the resources in a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the resources in a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Get all the resources in a subscription.
+ *
+ * @param filter The filter to apply on the operation.<br><br>Filter comparison operators include `eq`
+ * (equals) and `ne` (not equals) and may be used with the following properties: `location`, `resourceType`,
+ * `name`, `resourceGroup`, `identity`, `identity/principalId`, `plan`, `plan/publisher`, `plan/product`,
+ * `plan/name`, `plan/version`, and `plan/promotionCode`.<br><br>For example, to filter by a
+ * resource type, use `$filter=resourceType eq
+ * 'Microsoft.Network/virtualNetworks'`<br><br><br>`substringof(value, property)` can be used
+ * to filter for substrings of the following currently-supported properties: `name` and
+ * `resourceGroup`<br><br>For example, to get all resources with 'demo' anywhere in the resource
+ * name, use `$filter=substringof('demo', name)`<br><br>Multiple substring operations can also be
+ * combined using `and`/`or` operators.<br><br>Note that any truncated number of results queried via
+ * `$top` may also not be compatible when using a filter.<br><br><br>Resources can be filtered
+ * by tag names and values. For example, to filter for a tag name and value, use `$filter=tagName eq 'tag1' and
+ * tagValue eq 'Value1'`. Note that when resources are filtered by tag name and value, <b>the original
+ * tags for each resource will not be returned in the results.</b> Any list of additional properties
+ * queried via `$expand` may also not be compatible when filtering by tag names/values. <br><br>For
+ * tag names only, resources can be filtered by prefix using the following syntax: `$filter=startswith(tagName,
+ * 'depart')`. This query will return all resources with a tag name prefixed by the phrase `depart`
+ * (i.e.`department`, `departureDate`, `departureTime`, etc.)<br><br><br>Note that some
+ * properties can be combined when filtering resources, which include the following: `substringof() and/or
+ * resourceType`, `plan and plan/publisher and plan/name`, and `identity and identity/principalId`.
+ * @param expand Comma-separated list of additional properties to be included in the response. Valid values include
+ * `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`.
+ * @param top The number of recommendations per page if a paged version of this API is being used.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the resources in a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String filter, String expand, Integer top, Context context);
+
+ /**
+ * Checks whether a resource exists.
+ *
+ * @param resourceGroupName The name of the resource group containing the resource to check. The name is case
+ * insensitive.
+ * @param resourceProviderNamespace The resource provider of the resource to check.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type.
+ * @param resourceName The name of the resource to check whether it exists.
+ * @param apiVersion The API version to use for the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return whether resource exists.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ boolean checkExistence(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion);
+
+ /**
+ * Checks whether a resource exists.
+ *
+ * @param resourceGroupName The name of the resource group containing the resource to check. The name is case
+ * insensitive.
+ * @param resourceProviderNamespace The resource provider of the resource to check.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type.
+ * @param resourceName The name of the resource to check whether it exists.
+ * @param apiVersion The API version to use for the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return whether resource exists along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkExistenceWithResponse(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion,
+ Context context);
+
+ /**
+ * Deletes a resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource to delete. The name is case
+ * insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type.
+ * @param resourceName The name of the resource to delete.
+ * @param apiVersion The API version to use for the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion);
+
+ /**
+ * Deletes a resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource to delete. The name is case
+ * insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type.
+ * @param resourceName The name of the resource to delete.
+ * @param apiVersion The API version to use for the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion,
+ Context context);
+
+ /**
+ * Deletes a resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource to delete. The name is case
+ * insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type.
+ * @param resourceName The name of the resource to delete.
+ * @param apiVersion The API version to use for the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion);
+
+ /**
+ * Deletes a resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource to delete. The name is case
+ * insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type.
+ * @param resourceName The name of the resource to delete.
+ * @param apiVersion The API version to use for the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion,
+ Context context);
+
+ /**
+ * Creates a resource.
+ *
+ * @param resourceGroupName The name of the resource group for the resource. The name is case insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type of the resource to create.
+ * @param resourceName The name of the resource to create.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Parameters for creating or updating the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of resource information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GenericResourceInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion,
+ GenericResourceInner parameters);
+
+ /**
+ * Creates a resource.
+ *
+ * @param resourceGroupName The name of the resource group for the resource. The name is case insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type of the resource to create.
+ * @param resourceName The name of the resource to create.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Parameters for creating or updating the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of resource information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GenericResourceInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion,
+ GenericResourceInner parameters,
+ Context context);
+
+ /**
+ * Creates a resource.
+ *
+ * @param resourceGroupName The name of the resource group for the resource. The name is case insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type of the resource to create.
+ * @param resourceName The name of the resource to create.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Parameters for creating or updating 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 resource information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenericResourceInner createOrUpdate(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion,
+ GenericResourceInner parameters);
+
+ /**
+ * Creates a resource.
+ *
+ * @param resourceGroupName The name of the resource group for the resource. The name is case insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type of the resource to create.
+ * @param resourceName The name of the resource to create.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Parameters for creating or updating the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenericResourceInner createOrUpdate(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion,
+ GenericResourceInner parameters,
+ Context context);
+
+ /**
+ * Updates a resource.
+ *
+ * @param resourceGroupName The name of the resource group for the resource. The name is case insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type of the resource to update.
+ * @param resourceName The name of the resource to update.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Parameters for updating the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of resource information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GenericResourceInner> beginUpdate(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion,
+ GenericResourceInner parameters);
+
+ /**
+ * Updates a resource.
+ *
+ * @param resourceGroupName The name of the resource group for the resource. The name is case insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type of the resource to update.
+ * @param resourceName The name of the resource to update.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Parameters for updating the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of resource information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GenericResourceInner> beginUpdate(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion,
+ GenericResourceInner parameters,
+ Context context);
+
+ /**
+ * Updates a resource.
+ *
+ * @param resourceGroupName The name of the resource group for the resource. The name is case insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type of the resource to update.
+ * @param resourceName The name of the resource to update.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Parameters for updating 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 resource information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenericResourceInner update(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion,
+ GenericResourceInner parameters);
+
+ /**
+ * Updates a resource.
+ *
+ * @param resourceGroupName The name of the resource group for the resource. The name is case insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type of the resource to update.
+ * @param resourceName The name of the resource to update.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Parameters for updating the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenericResourceInner update(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion,
+ GenericResourceInner parameters,
+ Context context);
+
+ /**
+ * Gets a resource.
+ *
+ * @param resourceGroupName The name of the resource group containing the resource to get. The name is case
+ * insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type of the resource.
+ * @param resourceName The name of the resource to get.
+ * @param apiVersion The API version to use for the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenericResourceInner get(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion);
+
+ /**
+ * Gets a resource.
+ *
+ * @param resourceGroupName The name of the resource group containing the resource to get. The name is case
+ * insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type of the resource.
+ * @param resourceName The name of the resource to get.
+ * @param apiVersion The API version to use for the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion,
+ Context context);
+
+ /**
+ * Checks by ID whether a resource exists. This API currently works only for a limited set of Resource providers. In
+ * the event that a Resource provider does not implement this API, ARM will respond with a 405. The alternative then
+ * is to use the GET API to check for the existence of the resource.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return whether resource exists.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ boolean checkExistenceById(String resourceId, String apiVersion);
+
+ /**
+ * Checks by ID whether a resource exists. This API currently works only for a limited set of Resource providers. In
+ * the event that a Resource provider does not implement this API, ARM will respond with a 405. The alternative then
+ * is to use the GET API to check for the existence of the resource.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return whether resource exists along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkExistenceByIdWithResponse(String resourceId, String apiVersion, Context context);
+
+ /**
+ * Deletes a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteById(String resourceId, String apiVersion);
+
+ /**
+ * Deletes a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteById(String resourceId, String apiVersion, Context context);
+
+ /**
+ * Deletes a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 deleteById(String resourceId, String apiVersion);
+
+ /**
+ * Deletes a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 deleteById(String resourceId, String apiVersion, Context context);
+
+ /**
+ * Create a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Create or update resource parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of resource information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GenericResourceInner> beginCreateOrUpdateById(
+ String resourceId, String apiVersion, GenericResourceInner parameters);
+
+ /**
+ * Create a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Create or update resource parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of resource information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GenericResourceInner> beginCreateOrUpdateById(
+ String resourceId, String apiVersion, GenericResourceInner parameters, Context context);
+
+ /**
+ * Create a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Create or update resource parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenericResourceInner createOrUpdateById(String resourceId, String apiVersion, GenericResourceInner parameters);
+
+ /**
+ * Create a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Create or update resource parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenericResourceInner createOrUpdateById(
+ String resourceId, String apiVersion, GenericResourceInner parameters, Context context);
+
+ /**
+ * Updates a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Update resource parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of resource information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GenericResourceInner> beginUpdateById(
+ String resourceId, String apiVersion, GenericResourceInner parameters);
+
+ /**
+ * Updates a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Update resource parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of resource information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GenericResourceInner> beginUpdateById(
+ String resourceId, String apiVersion, GenericResourceInner parameters, Context context);
+
+ /**
+ * Updates a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Update resource parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenericResourceInner updateById(String resourceId, String apiVersion, GenericResourceInner parameters);
+
+ /**
+ * Updates a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Update resource parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenericResourceInner updateById(
+ String resourceId, String apiVersion, GenericResourceInner parameters, Context context);
+
+ /**
+ * Gets a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a resource by ID.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenericResourceInner getById(String resourceId, String apiVersion);
+
+ /**
+ * Gets a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a resource by ID along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByIdWithResponse(String resourceId, String apiVersion, Context context);
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/TagOperationsClient.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/TagOperationsClient.java
new file mode 100644
index 0000000000000..c5412723ff2cf
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/TagOperationsClient.java
@@ -0,0 +1,300 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.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.resources.generated.fluent.models.TagDetailsInner;
+import com.azure.resourcemanager.resources.generated.fluent.models.TagValueInner;
+import com.azure.resourcemanager.resources.generated.fluent.models.TagsResourceInner;
+import com.azure.resourcemanager.resources.generated.models.TagsPatchResource;
+
+/** An instance of this class provides access to all the operations defined in TagOperationsClient. */
+public interface TagOperationsClient {
+ /**
+ * Deletes a predefined tag value for a predefined tag name.
+ *
+ * This operation allows deleting a value from the list of predefined values for an existing predefined tag name.
+ * The value being deleted must not be in use as a tag value for the given tag name for any resource.
+ *
+ * @param tagName The name of the tag.
+ * @param tagValue The value of the tag to delete.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 deleteValue(String tagName, String tagValue);
+
+ /**
+ * Deletes a predefined tag value for a predefined tag name.
+ *
+ *
This operation allows deleting a value from the list of predefined values for an existing predefined tag name.
+ * The value being deleted must not be in use as a tag value for the given tag name for any resource.
+ *
+ * @param tagName The name of the tag.
+ * @param tagValue The value of the tag to delete.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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 deleteValueWithResponse(String tagName, String tagValue, Context context);
+
+ /**
+ * Creates a predefined value for a predefined tag name.
+ *
+ * This operation allows adding a value to the list of predefined values for an existing predefined tag name. A
+ * tag value can have a maximum of 256 characters.
+ *
+ * @param tagName The name of the tag.
+ * @param tagValue The value of the tag to 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 tag information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TagValueInner createOrUpdateValue(String tagName, String tagValue);
+
+ /**
+ * Creates a predefined value for a predefined tag name.
+ *
+ *
This operation allows adding a value to the list of predefined values for an existing predefined tag name. A
+ * tag value can have a maximum of 256 characters.
+ *
+ * @param tagName The name of the tag.
+ * @param tagValue The value of the tag to create.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return tag information along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateValueWithResponse(String tagName, String tagValue, Context context);
+
+ /**
+ * Creates a predefined tag name.
+ *
+ * This operation allows adding a name to the list of predefined tag names for the given subscription. A tag name
+ * can have a maximum of 512 characters and is case-insensitive. Tag names cannot have the following prefixes which
+ * are reserved for Azure use: 'microsoft', 'azure', 'windows'.
+ *
+ * @param tagName The name of the tag to 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 tag details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TagDetailsInner createOrUpdate(String tagName);
+
+ /**
+ * Creates a predefined tag name.
+ *
+ *
This operation allows adding a name to the list of predefined tag names for the given subscription. A tag name
+ * can have a maximum of 512 characters and is case-insensitive. Tag names cannot have the following prefixes which
+ * are reserved for Azure use: 'microsoft', 'azure', 'windows'.
+ *
+ * @param tagName The name of the tag to create.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return tag details along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(String tagName, Context context);
+
+ /**
+ * Deletes a predefined tag name.
+ *
+ * This operation allows deleting a name from the list of predefined tag names for the given subscription. The
+ * name being deleted must not be in use as a tag name for any resource. All predefined values for the given name
+ * must have already been deleted.
+ *
+ * @param tagName The name of the tag.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 tagName);
+
+ /**
+ * Deletes a predefined tag name.
+ *
+ *
This operation allows deleting a name from the list of predefined tag names for the given subscription. The
+ * name being deleted must not be in use as a tag name for any resource. All predefined values for the given name
+ * must have already been deleted.
+ *
+ * @param tagName The name of the tag.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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 tagName, Context context);
+
+ /**
+ * Gets a summary of tag usage under the subscription.
+ *
+ * This operation performs a union of predefined tags, resource tags, resource group tags and subscription tags,
+ * and returns a summary of usage for each tag name and value under the given subscription. In case of a large
+ * number of tags, this operation may return a previously cached result.
+ *
+ * @throws com.azure.core.management.exception.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 subscription tags as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Gets a summary of tag usage under the subscription.
+ *
+ * This operation performs a union of predefined tags, resource tags, resource group tags and subscription tags,
+ * and returns a summary of usage for each tag name and value under the given subscription. In case of a large
+ * number of tags, this operation may return a previously cached result.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of subscription tags as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Creates or updates the entire set of tags on a resource or subscription.
+ *
+ * This operation allows adding or replacing the entire set of tags on the specified resource or subscription.
+ * The specified entity can have a maximum of 50 tags.
+ *
+ * @param scope The resource scope.
+ * @param parameters Wrapper resource for tags API requests and responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return wrapper resource for tags API requests and responses.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TagsResourceInner createOrUpdateAtScope(String scope, TagsResourceInner parameters);
+
+ /**
+ * Creates or updates the entire set of tags on a resource or subscription.
+ *
+ *
This operation allows adding or replacing the entire set of tags on the specified resource or subscription.
+ * The specified entity can have a maximum of 50 tags.
+ *
+ * @param scope The resource scope.
+ * @param parameters Wrapper resource for tags API requests and responses.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return wrapper resource for tags API requests and responses along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateAtScopeWithResponse(
+ String scope, TagsResourceInner parameters, Context context);
+
+ /**
+ * Selectively updates the set of tags on a resource or subscription.
+ *
+ * This operation allows replacing, merging or selectively deleting tags on the specified resource or
+ * subscription. The specified entity can have a maximum of 50 tags at the end of the operation. The 'replace'
+ * option replaces the entire set of existing tags with a new set. The 'merge' option allows adding tags with new
+ * names and updating the values of tags with existing names. The 'delete' option allows selectively deleting tags
+ * based on given names or name/value pairs.
+ *
+ * @param scope The resource scope.
+ * @param parameters Wrapper resource for tags patch API request only.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return wrapper resource for tags API requests and responses.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TagsResourceInner updateAtScope(String scope, TagsPatchResource parameters);
+
+ /**
+ * Selectively updates the set of tags on a resource or subscription.
+ *
+ *
This operation allows replacing, merging or selectively deleting tags on the specified resource or
+ * subscription. The specified entity can have a maximum of 50 tags at the end of the operation. The 'replace'
+ * option replaces the entire set of existing tags with a new set. The 'merge' option allows adding tags with new
+ * names and updating the values of tags with existing names. The 'delete' option allows selectively deleting tags
+ * based on given names or name/value pairs.
+ *
+ * @param scope The resource scope.
+ * @param parameters Wrapper resource for tags patch API request only.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return wrapper resource for tags API requests and responses along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateAtScopeWithResponse(String scope, TagsPatchResource parameters, Context context);
+
+ /**
+ * Gets the entire set of tags on a resource or subscription.
+ *
+ * @param scope The resource scope.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the entire set of tags on a resource or subscription.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TagsResourceInner getAtScope(String scope);
+
+ /**
+ * Gets the entire set of tags on a resource or subscription.
+ *
+ * @param scope The resource scope.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the entire set of tags on a resource or subscription along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAtScopeWithResponse(String scope, Context context);
+
+ /**
+ * Deletes the entire set of tags on a resource or subscription.
+ *
+ * @param scope The resource scope.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteAtScope(String scope);
+
+ /**
+ * Deletes the entire set of tags on a resource or subscription.
+ *
+ * @param scope The resource scope.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteAtScopeWithResponse(String scope, Context context);
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/DeploymentExportResultInner.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/DeploymentExportResultInner.java
new file mode 100644
index 0000000000000..0c1fc7cdba0ab
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/DeploymentExportResultInner.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The deployment export result. */
+@Fluent
+public final class DeploymentExportResultInner {
+ /*
+ * The template content.
+ */
+ @JsonProperty(value = "template")
+ private Object template;
+
+ /**
+ * Get the template property: The template content.
+ *
+ * @return the template value.
+ */
+ public Object template() {
+ return this.template;
+ }
+
+ /**
+ * Set the template property: The template content.
+ *
+ * @param template the template value to set.
+ * @return the DeploymentExportResultInner object itself.
+ */
+ public DeploymentExportResultInner withTemplate(Object template) {
+ this.template = template;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/DeploymentExtendedInner.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/DeploymentExtendedInner.java
new file mode 100644
index 0000000000000..8d22afeb9058a
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/DeploymentExtendedInner.java
@@ -0,0 +1,66 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.resourcemanager.resources.generated.models.DeploymentPropertiesExtended;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Deployment information. */
+@Fluent
+public final class DeploymentExtendedInner extends Resource {
+ /*
+ * Deployment properties.
+ */
+ @JsonProperty(value = "properties")
+ private DeploymentPropertiesExtended properties;
+
+ /**
+ * Get the properties property: Deployment properties.
+ *
+ * @return the properties value.
+ */
+ public DeploymentPropertiesExtended properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Deployment properties.
+ *
+ * @param properties the properties value to set.
+ * @return the DeploymentExtendedInner object itself.
+ */
+ public DeploymentExtendedInner withProperties(DeploymentPropertiesExtended properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public DeploymentExtendedInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public DeploymentExtendedInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/DeploymentOperationInner.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/DeploymentOperationInner.java
new file mode 100644
index 0000000000000..5cae2082d8402
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/DeploymentOperationInner.java
@@ -0,0 +1,80 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.resources.generated.models.DeploymentOperationProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Deployment operation information. */
+@Fluent
+public final class DeploymentOperationInner {
+ /*
+ * Full deployment operation ID.
+ */
+ @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
+ private String id;
+
+ /*
+ * Deployment operation ID.
+ */
+ @JsonProperty(value = "operationId", access = JsonProperty.Access.WRITE_ONLY)
+ private String operationId;
+
+ /*
+ * Deployment properties.
+ */
+ @JsonProperty(value = "properties")
+ private DeploymentOperationProperties properties;
+
+ /**
+ * Get the id property: Full deployment operation ID.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the operationId property: Deployment operation ID.
+ *
+ * @return the operationId value.
+ */
+ public String operationId() {
+ return this.operationId;
+ }
+
+ /**
+ * Get the properties property: Deployment properties.
+ *
+ * @return the properties value.
+ */
+ public DeploymentOperationProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Deployment properties.
+ *
+ * @param properties the properties value to set.
+ * @return the DeploymentOperationInner object itself.
+ */
+ public DeploymentOperationInner withProperties(DeploymentOperationProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/DeploymentValidateResultInner.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/DeploymentValidateResultInner.java
new file mode 100644
index 0000000000000..bc4244a922cce
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/DeploymentValidateResultInner.java
@@ -0,0 +1,70 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.resourcemanager.resources.generated.models.DeploymentPropertiesExtended;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Information from validate template deployment response. */
+@Fluent
+public final class DeploymentValidateResultInner {
+ /*
+ * Error Response
+ *
+ * The deployment validation error.
+ */
+ @JsonProperty(value = "error", access = JsonProperty.Access.WRITE_ONLY)
+ private ManagementError error;
+
+ /*
+ * The template deployment properties.
+ */
+ @JsonProperty(value = "properties")
+ private DeploymentPropertiesExtended properties;
+
+ /**
+ * Get the error property: Error Response
+ *
+ * The deployment validation error.
+ *
+ * @return the error value.
+ */
+ public ManagementError error() {
+ return this.error;
+ }
+
+ /**
+ * Get the properties property: The template deployment properties.
+ *
+ * @return the properties value.
+ */
+ public DeploymentPropertiesExtended properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The template deployment properties.
+ *
+ * @param properties the properties value to set.
+ * @return the DeploymentValidateResultInner object itself.
+ */
+ public DeploymentValidateResultInner withProperties(DeploymentPropertiesExtended properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/GenericResourceExpandedInner.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/GenericResourceExpandedInner.java
new file mode 100644
index 0000000000000..6b414ffa40ebb
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/GenericResourceExpandedInner.java
@@ -0,0 +1,139 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.resources.generated.models.ExtendedLocation;
+import com.azure.resourcemanager.resources.generated.models.Identity;
+import com.azure.resourcemanager.resources.generated.models.Plan;
+import com.azure.resourcemanager.resources.generated.models.Sku;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.Map;
+
+/** Resource information. */
+@Fluent
+public final class GenericResourceExpandedInner extends GenericResourceInner {
+ /*
+ * The created time of the resource. This is only present if requested via the $expand query parameter.
+ */
+ @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime createdTime;
+
+ /*
+ * The changed time of the resource. This is only present if requested via the $expand query parameter.
+ */
+ @JsonProperty(value = "changedTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime changedTime;
+
+ /*
+ * The provisioning state of the resource. This is only present if requested via the $expand query parameter.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningState;
+
+ /**
+ * Get the createdTime property: The created time of the resource. This is only present if requested via the $expand
+ * query parameter.
+ *
+ * @return the createdTime value.
+ */
+ public OffsetDateTime createdTime() {
+ return this.createdTime;
+ }
+
+ /**
+ * Get the changedTime property: The changed time of the resource. This is only present if requested via the $expand
+ * query parameter.
+ *
+ * @return the changedTime value.
+ */
+ public OffsetDateTime changedTime() {
+ return this.changedTime;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the resource. This is only present if requested via
+ * the $expand query parameter.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public GenericResourceExpandedInner withPlan(Plan plan) {
+ super.withPlan(plan);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public GenericResourceExpandedInner withProperties(Object properties) {
+ super.withProperties(properties);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public GenericResourceExpandedInner withKind(String kind) {
+ super.withKind(kind);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public GenericResourceExpandedInner withManagedBy(String managedBy) {
+ super.withManagedBy(managedBy);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public GenericResourceExpandedInner withSku(Sku sku) {
+ super.withSku(sku);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public GenericResourceExpandedInner withIdentity(Identity identity) {
+ super.withIdentity(identity);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public GenericResourceExpandedInner withExtendedLocation(ExtendedLocation extendedLocation) {
+ super.withExtendedLocation(extendedLocation);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public GenericResourceExpandedInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public GenericResourceExpandedInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/GenericResourceInner.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/GenericResourceInner.java
new file mode 100644
index 0000000000000..a27e19758bb9e
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/GenericResourceInner.java
@@ -0,0 +1,234 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.resourcemanager.resources.generated.models.ExtendedLocation;
+import com.azure.resourcemanager.resources.generated.models.Identity;
+import com.azure.resourcemanager.resources.generated.models.Plan;
+import com.azure.resourcemanager.resources.generated.models.Sku;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Resource information. */
+@Fluent
+public class GenericResourceInner extends Resource {
+ /*
+ * The plan of the resource.
+ */
+ @JsonProperty(value = "plan")
+ private Plan plan;
+
+ /*
+ * The resource properties.
+ */
+ @JsonProperty(value = "properties")
+ private Object properties;
+
+ /*
+ * The kind of the resource.
+ */
+ @JsonProperty(value = "kind")
+ private String kind;
+
+ /*
+ * ID of the resource that manages this resource.
+ */
+ @JsonProperty(value = "managedBy")
+ private String managedBy;
+
+ /*
+ * The SKU of the resource.
+ */
+ @JsonProperty(value = "sku")
+ private Sku sku;
+
+ /*
+ * The identity of the resource.
+ */
+ @JsonProperty(value = "identity")
+ private Identity identity;
+
+ /*
+ * Resource extended location.
+ */
+ @JsonProperty(value = "extendedLocation")
+ private ExtendedLocation extendedLocation;
+
+ /**
+ * Get the plan property: The plan of the resource.
+ *
+ * @return the plan value.
+ */
+ public Plan plan() {
+ return this.plan;
+ }
+
+ /**
+ * Set the plan property: The plan of the resource.
+ *
+ * @param plan the plan value to set.
+ * @return the GenericResourceInner object itself.
+ */
+ public GenericResourceInner withPlan(Plan plan) {
+ this.plan = plan;
+ return this;
+ }
+
+ /**
+ * Get the properties property: The resource properties.
+ *
+ * @return the properties value.
+ */
+ public Object properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource properties.
+ *
+ * @param properties the properties value to set.
+ * @return the GenericResourceInner object itself.
+ */
+ public GenericResourceInner withProperties(Object properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the kind property: The kind of the resource.
+ *
+ * @return the kind value.
+ */
+ public String kind() {
+ return this.kind;
+ }
+
+ /**
+ * Set the kind property: The kind of the resource.
+ *
+ * @param kind the kind value to set.
+ * @return the GenericResourceInner object itself.
+ */
+ public GenericResourceInner withKind(String kind) {
+ this.kind = kind;
+ return this;
+ }
+
+ /**
+ * Get the managedBy property: ID of the resource that manages this resource.
+ *
+ * @return the managedBy value.
+ */
+ public String managedBy() {
+ return this.managedBy;
+ }
+
+ /**
+ * Set the managedBy property: ID of the resource that manages this resource.
+ *
+ * @param managedBy the managedBy value to set.
+ * @return the GenericResourceInner object itself.
+ */
+ public GenericResourceInner withManagedBy(String managedBy) {
+ this.managedBy = managedBy;
+ return this;
+ }
+
+ /**
+ * Get the sku property: The SKU of the resource.
+ *
+ * @return the sku value.
+ */
+ public Sku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: The SKU of the resource.
+ *
+ * @param sku the sku value to set.
+ * @return the GenericResourceInner object itself.
+ */
+ public GenericResourceInner withSku(Sku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the identity property: The identity of the resource.
+ *
+ * @return the identity value.
+ */
+ public Identity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The identity of the resource.
+ *
+ * @param identity the identity value to set.
+ * @return the GenericResourceInner object itself.
+ */
+ public GenericResourceInner withIdentity(Identity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the extendedLocation property: Resource extended location.
+ *
+ * @return the extendedLocation value.
+ */
+ public ExtendedLocation extendedLocation() {
+ return this.extendedLocation;
+ }
+
+ /**
+ * Set the extendedLocation property: Resource extended location.
+ *
+ * @param extendedLocation the extendedLocation value to set.
+ * @return the GenericResourceInner object itself.
+ */
+ public GenericResourceInner withExtendedLocation(ExtendedLocation extendedLocation) {
+ this.extendedLocation = extendedLocation;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public GenericResourceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public GenericResourceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (plan() != null) {
+ plan().validate();
+ }
+ if (sku() != null) {
+ sku().validate();
+ }
+ if (identity() != null) {
+ identity().validate();
+ }
+ if (extendedLocation() != null) {
+ extendedLocation().validate();
+ }
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/OperationInner.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/OperationInner.java
new file mode 100644
index 0000000000000..9c0c5b4b414ad
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/OperationInner.java
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.resources.generated.models.OperationDisplay;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Microsoft.Resources operation. */
+@Fluent
+public final class OperationInner {
+ /*
+ * Operation name: {provider}/{resource}/{operation}
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * The object that represents the operation.
+ */
+ @JsonProperty(value = "display")
+ private OperationDisplay display;
+
+ /**
+ * Get the name property: Operation name: {provider}/{resource}/{operation}.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Operation name: {provider}/{resource}/{operation}.
+ *
+ * @param name the name value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the display property: The object that represents the operation.
+ *
+ * @return the display value.
+ */
+ public OperationDisplay display() {
+ return this.display;
+ }
+
+ /**
+ * Set the display property: The object that represents the operation.
+ *
+ * @param display the display value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withDisplay(OperationDisplay display) {
+ this.display = display;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (display() != null) {
+ display().validate();
+ }
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/ProviderInner.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/ProviderInner.java
new file mode 100644
index 0000000000000..b155e3a74ca48
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/ProviderInner.java
@@ -0,0 +1,139 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.resources.generated.models.ProviderAuthorizationConsentState;
+import com.azure.resourcemanager.resources.generated.models.ProviderResourceType;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Resource provider information. */
+@Fluent
+public final class ProviderInner {
+ /*
+ * The provider ID.
+ */
+ @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
+ private String id;
+
+ /*
+ * The namespace of the resource provider.
+ */
+ @JsonProperty(value = "namespace")
+ private String namespace;
+
+ /*
+ * The registration state of the resource provider.
+ */
+ @JsonProperty(value = "registrationState", access = JsonProperty.Access.WRITE_ONLY)
+ private String registrationState;
+
+ /*
+ * The registration policy of the resource provider.
+ */
+ @JsonProperty(value = "registrationPolicy", access = JsonProperty.Access.WRITE_ONLY)
+ private String registrationPolicy;
+
+ /*
+ * The collection of provider resource types.
+ */
+ @JsonProperty(value = "resourceTypes", access = JsonProperty.Access.WRITE_ONLY)
+ private List resourceTypes;
+
+ /*
+ * The provider authorization consent state.
+ */
+ @JsonProperty(value = "providerAuthorizationConsentState")
+ private ProviderAuthorizationConsentState providerAuthorizationConsentState;
+
+ /**
+ * Get the id property: The provider ID.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the namespace property: The namespace of the resource provider.
+ *
+ * @return the namespace value.
+ */
+ public String namespace() {
+ return this.namespace;
+ }
+
+ /**
+ * Set the namespace property: The namespace of the resource provider.
+ *
+ * @param namespace the namespace value to set.
+ * @return the ProviderInner object itself.
+ */
+ public ProviderInner withNamespace(String namespace) {
+ this.namespace = namespace;
+ return this;
+ }
+
+ /**
+ * Get the registrationState property: The registration state of the resource provider.
+ *
+ * @return the registrationState value.
+ */
+ public String registrationState() {
+ return this.registrationState;
+ }
+
+ /**
+ * Get the registrationPolicy property: The registration policy of the resource provider.
+ *
+ * @return the registrationPolicy value.
+ */
+ public String registrationPolicy() {
+ return this.registrationPolicy;
+ }
+
+ /**
+ * Get the resourceTypes property: The collection of provider resource types.
+ *
+ * @return the resourceTypes value.
+ */
+ public List resourceTypes() {
+ return this.resourceTypes;
+ }
+
+ /**
+ * Get the providerAuthorizationConsentState property: The provider authorization consent state.
+ *
+ * @return the providerAuthorizationConsentState value.
+ */
+ public ProviderAuthorizationConsentState providerAuthorizationConsentState() {
+ return this.providerAuthorizationConsentState;
+ }
+
+ /**
+ * Set the providerAuthorizationConsentState property: The provider authorization consent state.
+ *
+ * @param providerAuthorizationConsentState the providerAuthorizationConsentState value to set.
+ * @return the ProviderInner object itself.
+ */
+ public ProviderInner withProviderAuthorizationConsentState(
+ ProviderAuthorizationConsentState providerAuthorizationConsentState) {
+ this.providerAuthorizationConsentState = providerAuthorizationConsentState;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (resourceTypes() != null) {
+ resourceTypes().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/ProviderPermissionListResultInner.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/ProviderPermissionListResultInner.java
new file mode 100644
index 0000000000000..2a251a2a819ef
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/ProviderPermissionListResultInner.java
@@ -0,0 +1,66 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.resources.generated.models.ProviderPermission;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** List of provider permissions. */
+@Fluent
+public final class ProviderPermissionListResultInner {
+ /*
+ * An array of provider permissions.
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /*
+ * The URL to use for getting the next set of results.
+ */
+ @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
+ private String nextLink;
+
+ /**
+ * Get the value property: An array of provider permissions.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: An array of provider permissions.
+ *
+ * @param value the value value to set.
+ * @return the ProviderPermissionListResultInner object itself.
+ */
+ public ProviderPermissionListResultInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Get the nextLink property: The URL to use for getting the next set of results.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/ProviderResourceTypeListResultInner.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/ProviderResourceTypeListResultInner.java
new file mode 100644
index 0000000000000..37925ed873fb7
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/ProviderResourceTypeListResultInner.java
@@ -0,0 +1,66 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.resources.generated.models.ProviderResourceType;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** List of resource types of a resource provider. */
+@Fluent
+public final class ProviderResourceTypeListResultInner {
+ /*
+ * An array of resource types.
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /*
+ * The URL to use for getting the next set of results.
+ */
+ @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
+ private String nextLink;
+
+ /**
+ * Get the value property: An array of resource types.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: An array of resource types.
+ *
+ * @param value the value value to set.
+ * @return the ProviderResourceTypeListResultInner object itself.
+ */
+ public ProviderResourceTypeListResultInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Get the nextLink property: The URL to use for getting the next set of results.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/ResourceGroupExportResultInner.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/ResourceGroupExportResultInner.java
new file mode 100644
index 0000000000000..531bf35e6f5d7
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/ResourceGroupExportResultInner.java
@@ -0,0 +1,79 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.exception.ManagementError;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Resource group export result. */
+@Fluent
+public final class ResourceGroupExportResultInner {
+ /*
+ * The template content.
+ */
+ @JsonProperty(value = "template")
+ private Object template;
+
+ /*
+ * Error Response
+ *
+ * The template export error.
+ */
+ @JsonProperty(value = "error")
+ private ManagementError error;
+
+ /**
+ * Get the template property: The template content.
+ *
+ * @return the template value.
+ */
+ public Object template() {
+ return this.template;
+ }
+
+ /**
+ * Set the template property: The template content.
+ *
+ * @param template the template value to set.
+ * @return the ResourceGroupExportResultInner object itself.
+ */
+ public ResourceGroupExportResultInner withTemplate(Object template) {
+ this.template = template;
+ return this;
+ }
+
+ /**
+ * Get the error property: Error Response
+ *
+ * The template export error.
+ *
+ * @return the error value.
+ */
+ public ManagementError error() {
+ return this.error;
+ }
+
+ /**
+ * Set the error property: Error Response
+ *
+ *
The template export error.
+ *
+ * @param error the error value to set.
+ * @return the ResourceGroupExportResultInner object itself.
+ */
+ public ResourceGroupExportResultInner withError(ManagementError error) {
+ this.error = error;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/ResourceGroupInner.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/ResourceGroupInner.java
new file mode 100644
index 0000000000000..8efb342deb28d
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/ResourceGroupInner.java
@@ -0,0 +1,92 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.resourcemanager.resources.generated.models.ResourceGroupProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Resource group information. */
+@Fluent
+public final class ResourceGroupInner extends Resource {
+ /*
+ * The resource group properties.
+ */
+ @JsonProperty(value = "properties")
+ private ResourceGroupProperties properties;
+
+ /*
+ * The ID of the resource that manages this resource group.
+ */
+ @JsonProperty(value = "managedBy")
+ private String managedBy;
+
+ /**
+ * Get the properties property: The resource group properties.
+ *
+ * @return the properties value.
+ */
+ public ResourceGroupProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource group properties.
+ *
+ * @param properties the properties value to set.
+ * @return the ResourceGroupInner object itself.
+ */
+ public ResourceGroupInner withProperties(ResourceGroupProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the managedBy property: The ID of the resource that manages this resource group.
+ *
+ * @return the managedBy value.
+ */
+ public String managedBy() {
+ return this.managedBy;
+ }
+
+ /**
+ * Set the managedBy property: The ID of the resource that manages this resource group.
+ *
+ * @param managedBy the managedBy value to set.
+ * @return the ResourceGroupInner object itself.
+ */
+ public ResourceGroupInner withManagedBy(String managedBy) {
+ this.managedBy = managedBy;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ResourceGroupInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ResourceGroupInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/TagDetailsInner.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/TagDetailsInner.java
new file mode 100644
index 0000000000000..bbdae53230205
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/TagDetailsInner.java
@@ -0,0 +1,124 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.resources.generated.models.TagCount;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Tag details. */
+@Fluent
+public final class TagDetailsInner {
+ /*
+ * The tag name ID.
+ */
+ @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
+ private String id;
+
+ /*
+ * The tag name.
+ */
+ @JsonProperty(value = "tagName")
+ private String tagName;
+
+ /*
+ * The total number of resources that use the resource tag. When a tag is initially created and has no associated
+ * resources, the value is 0.
+ */
+ @JsonProperty(value = "count")
+ private TagCount count;
+
+ /*
+ * The list of tag values.
+ */
+ @JsonProperty(value = "values")
+ private List values;
+
+ /**
+ * Get the id property: The tag name ID.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the tagName property: The tag name.
+ *
+ * @return the tagName value.
+ */
+ public String tagName() {
+ return this.tagName;
+ }
+
+ /**
+ * Set the tagName property: The tag name.
+ *
+ * @param tagName the tagName value to set.
+ * @return the TagDetailsInner object itself.
+ */
+ public TagDetailsInner withTagName(String tagName) {
+ this.tagName = tagName;
+ return this;
+ }
+
+ /**
+ * Get the count property: The total number of resources that use the resource tag. When a tag is initially created
+ * and has no associated resources, the value is 0.
+ *
+ * @return the count value.
+ */
+ public TagCount count() {
+ return this.count;
+ }
+
+ /**
+ * Set the count property: The total number of resources that use the resource tag. When a tag is initially created
+ * and has no associated resources, the value is 0.
+ *
+ * @param count the count value to set.
+ * @return the TagDetailsInner object itself.
+ */
+ public TagDetailsInner withCount(TagCount count) {
+ this.count = count;
+ return this;
+ }
+
+ /**
+ * Get the values property: The list of tag values.
+ *
+ * @return the values value.
+ */
+ public List values() {
+ return this.values;
+ }
+
+ /**
+ * Set the values property: The list of tag values.
+ *
+ * @param values the values value to set.
+ * @return the TagDetailsInner object itself.
+ */
+ public TagDetailsInner withValues(List values) {
+ this.values = values;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (count() != null) {
+ count().validate();
+ }
+ if (values() != null) {
+ values().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/TagValueInner.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/TagValueInner.java
new file mode 100644
index 0000000000000..b4d982be80d21
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/TagValueInner.java
@@ -0,0 +1,91 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.resources.generated.models.TagCount;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Tag information. */
+@Fluent
+public final class TagValueInner {
+ /*
+ * The tag value ID.
+ */
+ @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
+ private String id;
+
+ /*
+ * The tag value.
+ */
+ @JsonProperty(value = "tagValue")
+ private String tagValue;
+
+ /*
+ * The tag value count.
+ */
+ @JsonProperty(value = "count")
+ private TagCount count;
+
+ /**
+ * Get the id property: The tag value ID.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the tagValue property: The tag value.
+ *
+ * @return the tagValue value.
+ */
+ public String tagValue() {
+ return this.tagValue;
+ }
+
+ /**
+ * Set the tagValue property: The tag value.
+ *
+ * @param tagValue the tagValue value to set.
+ * @return the TagValueInner object itself.
+ */
+ public TagValueInner withTagValue(String tagValue) {
+ this.tagValue = tagValue;
+ return this;
+ }
+
+ /**
+ * Get the count property: The tag value count.
+ *
+ * @return the count value.
+ */
+ public TagCount count() {
+ return this.count;
+ }
+
+ /**
+ * Set the count property: The tag value count.
+ *
+ * @param count the count value to set.
+ * @return the TagValueInner object itself.
+ */
+ public TagValueInner withCount(TagCount count) {
+ this.count = count;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (count() != null) {
+ count().validate();
+ }
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/TagsResourceInner.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/TagsResourceInner.java
new file mode 100644
index 0000000000000..5e82a55d9081d
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/TagsResourceInner.java
@@ -0,0 +1,58 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.resources.generated.models.Tags;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Wrapper resource for tags API requests and responses. */
+@Fluent
+public final class TagsResourceInner extends ProxyResource {
+ /*
+ * The set of tags.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private Tags properties;
+
+ /**
+ * Get the properties property: The set of tags.
+ *
+ * @return the properties value.
+ */
+ public Tags properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The set of tags.
+ *
+ * @param properties the properties value to set.
+ * @return the TagsResourceInner object itself.
+ */
+ public TagsResourceInner withProperties(Tags properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property properties in model TagsResourceInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(TagsResourceInner.class);
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/TemplateHashResultInner.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/TemplateHashResultInner.java
new file mode 100644
index 0000000000000..28a77160a5556
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/TemplateHashResultInner.java
@@ -0,0 +1,72 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Result of the request to calculate template hash. It contains a string of minified template and its hash. */
+@Fluent
+public final class TemplateHashResultInner {
+ /*
+ * The minified template string.
+ */
+ @JsonProperty(value = "minifiedTemplate")
+ private String minifiedTemplate;
+
+ /*
+ * The template hash.
+ */
+ @JsonProperty(value = "templateHash")
+ private String templateHash;
+
+ /**
+ * Get the minifiedTemplate property: The minified template string.
+ *
+ * @return the minifiedTemplate value.
+ */
+ public String minifiedTemplate() {
+ return this.minifiedTemplate;
+ }
+
+ /**
+ * Set the minifiedTemplate property: The minified template string.
+ *
+ * @param minifiedTemplate the minifiedTemplate value to set.
+ * @return the TemplateHashResultInner object itself.
+ */
+ public TemplateHashResultInner withMinifiedTemplate(String minifiedTemplate) {
+ this.minifiedTemplate = minifiedTemplate;
+ return this;
+ }
+
+ /**
+ * Get the templateHash property: The template hash.
+ *
+ * @return the templateHash value.
+ */
+ public String templateHash() {
+ return this.templateHash;
+ }
+
+ /**
+ * Set the templateHash property: The template hash.
+ *
+ * @param templateHash the templateHash value to set.
+ * @return the TemplateHashResultInner object itself.
+ */
+ public TemplateHashResultInner withTemplateHash(String templateHash) {
+ this.templateHash = templateHash;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/WhatIfOperationProperties.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/WhatIfOperationProperties.java
new file mode 100644
index 0000000000000..0363b24fb00fd
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/WhatIfOperationProperties.java
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.resources.generated.models.WhatIfChange;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Deployment operation properties. */
+@Fluent
+public final class WhatIfOperationProperties {
+ /*
+ * List of resource changes predicted by What-If operation.
+ */
+ @JsonProperty(value = "changes")
+ private List changes;
+
+ /**
+ * Get the changes property: List of resource changes predicted by What-If operation.
+ *
+ * @return the changes value.
+ */
+ public List changes() {
+ return this.changes;
+ }
+
+ /**
+ * Set the changes property: List of resource changes predicted by What-If operation.
+ *
+ * @param changes the changes value to set.
+ * @return the WhatIfOperationProperties object itself.
+ */
+ public WhatIfOperationProperties withChanges(List changes) {
+ this.changes = changes;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (changes() != null) {
+ changes().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/WhatIfOperationResultInner.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/WhatIfOperationResultInner.java
new file mode 100644
index 0000000000000..a6410fc830e77
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/WhatIfOperationResultInner.java
@@ -0,0 +1,125 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.resourcemanager.resources.generated.models.WhatIfChange;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * Result of the What-If operation. Contains a list of predicted changes and a URL link to get to the next set of
+ * results.
+ */
+@Fluent
+public final class WhatIfOperationResultInner {
+ /*
+ * Status of the What-If operation.
+ */
+ @JsonProperty(value = "status")
+ private String status;
+
+ /*
+ * What-If operation properties.
+ */
+ @JsonProperty(value = "properties")
+ private WhatIfOperationProperties innerProperties;
+
+ /*
+ * Error Response
+ *
+ * Error when What-If operation fails.
+ */
+ @JsonProperty(value = "error")
+ private ManagementError error;
+
+ /**
+ * Get the status property: Status of the What-If operation.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: Status of the What-If operation.
+ *
+ * @param status the status value to set.
+ * @return the WhatIfOperationResultInner object itself.
+ */
+ public WhatIfOperationResultInner withStatus(String status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the innerProperties property: What-If operation properties.
+ *
+ * @return the innerProperties value.
+ */
+ private WhatIfOperationProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the error property: Error Response
+ *
+ * Error when What-If operation fails.
+ *
+ * @return the error value.
+ */
+ public ManagementError error() {
+ return this.error;
+ }
+
+ /**
+ * Set the error property: Error Response
+ *
+ *
Error when What-If operation fails.
+ *
+ * @param error the error value to set.
+ * @return the WhatIfOperationResultInner object itself.
+ */
+ public WhatIfOperationResultInner withError(ManagementError error) {
+ this.error = error;
+ return this;
+ }
+
+ /**
+ * Get the changes property: List of resource changes predicted by What-If operation.
+ *
+ * @return the changes value.
+ */
+ public List changes() {
+ return this.innerProperties() == null ? null : this.innerProperties().changes();
+ }
+
+ /**
+ * Set the changes property: List of resource changes predicted by What-If operation.
+ *
+ * @param changes the changes value to set.
+ * @return the WhatIfOperationResultInner object itself.
+ */
+ public WhatIfOperationResultInner withChanges(List changes) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WhatIfOperationProperties();
+ }
+ this.innerProperties().withChanges(changes);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/package-info.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/package-info.java
new file mode 100644
index 0000000000000..cf72c3ef077ed
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/package-info.java
@@ -0,0 +1,9 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/**
+ * Package containing the inner data models for ResourceManagementClient. Provides operations for working with resources
+ * and resource groups.
+ */
+package com.azure.resourcemanager.resources.generated.fluent.models;
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/package-info.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/package-info.java
new file mode 100644
index 0000000000000..1d259c694411d
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/package-info.java
@@ -0,0 +1,9 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/**
+ * Package containing the service clients for ResourceManagementClient. Provides operations for working with resources
+ * and resource groups.
+ */
+package com.azure.resourcemanager.resources.generated.fluent;
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/implementation/DeploymentExportResultImpl.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/implementation/DeploymentExportResultImpl.java
new file mode 100644
index 0000000000000..a38b34c45ae86
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/implementation/DeploymentExportResultImpl.java
@@ -0,0 +1,33 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.implementation;
+
+import com.azure.resourcemanager.resources.generated.fluent.models.DeploymentExportResultInner;
+import com.azure.resourcemanager.resources.generated.models.DeploymentExportResult;
+
+public final class DeploymentExportResultImpl implements DeploymentExportResult {
+ private DeploymentExportResultInner innerObject;
+
+ private final com.azure.resourcemanager.resources.generated.ResourceManager serviceManager;
+
+ DeploymentExportResultImpl(
+ DeploymentExportResultInner innerObject,
+ com.azure.resourcemanager.resources.generated.ResourceManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public Object template() {
+ return this.innerModel().template();
+ }
+
+ public DeploymentExportResultInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.resources.generated.ResourceManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/implementation/DeploymentExtendedImpl.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/implementation/DeploymentExtendedImpl.java
new file mode 100644
index 0000000000000..6276e03098055
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/implementation/DeploymentExtendedImpl.java
@@ -0,0 +1,232 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.Region;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.resources.generated.fluent.models.DeploymentExtendedInner;
+import com.azure.resourcemanager.resources.generated.models.Deployment;
+import com.azure.resourcemanager.resources.generated.models.DeploymentExportResult;
+import com.azure.resourcemanager.resources.generated.models.DeploymentExtended;
+import com.azure.resourcemanager.resources.generated.models.DeploymentProperties;
+import com.azure.resourcemanager.resources.generated.models.DeploymentPropertiesExtended;
+import com.azure.resourcemanager.resources.generated.models.DeploymentValidateResult;
+import com.azure.resourcemanager.resources.generated.models.DeploymentWhatIf;
+import com.azure.resourcemanager.resources.generated.models.WhatIfOperationResult;
+import java.util.Collections;
+import java.util.Map;
+
+public final class DeploymentExtendedImpl
+ implements DeploymentExtended, DeploymentExtended.Definition, DeploymentExtended.Update {
+ private DeploymentExtendedInner innerObject;
+
+ private final com.azure.resourcemanager.resources.generated.ResourceManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public DeploymentPropertiesExtended properties() {
+ return this.innerModel().properties();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public DeploymentExtendedInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.resources.generated.ResourceManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String deploymentName;
+
+ private Deployment createParameters;
+
+ private Deployment updateParameters;
+
+ public DeploymentExtendedImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public DeploymentExtended create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getDeployments()
+ .createOrUpdate(resourceGroupName, deploymentName, createParameters, Context.NONE);
+ return this;
+ }
+
+ public DeploymentExtended create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getDeployments()
+ .createOrUpdate(resourceGroupName, deploymentName, createParameters, context);
+ return this;
+ }
+
+ DeploymentExtendedImpl(String name, com.azure.resourcemanager.resources.generated.ResourceManager serviceManager) {
+ this.innerObject = new DeploymentExtendedInner();
+ this.serviceManager = serviceManager;
+ this.deploymentName = name;
+ this.createParameters = new Deployment();
+ }
+
+ public DeploymentExtendedImpl update() {
+ this.updateParameters = new Deployment();
+ return this;
+ }
+
+ public DeploymentExtended apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getDeployments()
+ .createOrUpdate(resourceGroupName, deploymentName, updateParameters, Context.NONE);
+ return this;
+ }
+
+ public DeploymentExtended apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getDeployments()
+ .createOrUpdate(resourceGroupName, deploymentName, updateParameters, context);
+ return this;
+ }
+
+ DeploymentExtendedImpl(
+ DeploymentExtendedInner innerObject,
+ com.azure.resourcemanager.resources.generated.ResourceManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourcegroups");
+ this.deploymentName = Utils.getValueFromIdByName(innerObject.id(), "deployments");
+ }
+
+ public DeploymentExtended refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getDeployments()
+ .getByResourceGroupWithResponse(resourceGroupName, deploymentName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public DeploymentExtended refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getDeployments()
+ .getByResourceGroupWithResponse(resourceGroupName, deploymentName, context)
+ .getValue();
+ return this;
+ }
+
+ public void cancel() {
+ serviceManager.deployments().cancel(resourceGroupName, deploymentName);
+ }
+
+ public Response cancelWithResponse(Context context) {
+ return serviceManager.deployments().cancelWithResponse(resourceGroupName, deploymentName, context);
+ }
+
+ public DeploymentValidateResult validate(Deployment parameters) {
+ return serviceManager.deployments().validate(resourceGroupName, deploymentName, parameters);
+ }
+
+ public DeploymentValidateResult validate(Deployment parameters, Context context) {
+ return serviceManager.deployments().validate(resourceGroupName, deploymentName, parameters, context);
+ }
+
+ public WhatIfOperationResult whatIf(DeploymentWhatIf parameters) {
+ return serviceManager.deployments().whatIf(resourceGroupName, deploymentName, parameters);
+ }
+
+ public WhatIfOperationResult whatIf(DeploymentWhatIf parameters, Context context) {
+ return serviceManager.deployments().whatIf(resourceGroupName, deploymentName, parameters, context);
+ }
+
+ public DeploymentExportResult exportTemplate() {
+ return serviceManager.deployments().exportTemplate(resourceGroupName, deploymentName);
+ }
+
+ public Response exportTemplateWithResponse(Context context) {
+ return serviceManager.deployments().exportTemplateWithResponse(resourceGroupName, deploymentName, context);
+ }
+
+ public DeploymentExtendedImpl withProperties(DeploymentProperties properties) {
+ if (isInCreateMode()) {
+ this.createParameters.withProperties(properties);
+ return this;
+ } else {
+ this.updateParameters.withProperties(properties);
+ return this;
+ }
+ }
+
+ public DeploymentExtendedImpl withRegion(Region location) {
+ this.createParameters.withLocation(location.toString());
+ return this;
+ }
+
+ public DeploymentExtendedImpl withRegion(String location) {
+ this.createParameters.withLocation(location);
+ return this;
+ }
+
+ public DeploymentExtendedImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.createParameters.withTags(tags);
+ return this;
+ } else {
+ this.updateParameters.withTags(tags);
+ return this;
+ }
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/implementation/DeploymentOperationImpl.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/implementation/DeploymentOperationImpl.java
new file mode 100644
index 0000000000000..be148521a7951
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/implementation/DeploymentOperationImpl.java
@@ -0,0 +1,42 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.implementation;
+
+import com.azure.resourcemanager.resources.generated.fluent.models.DeploymentOperationInner;
+import com.azure.resourcemanager.resources.generated.models.DeploymentOperation;
+import com.azure.resourcemanager.resources.generated.models.DeploymentOperationProperties;
+
+public final class DeploymentOperationImpl implements DeploymentOperation {
+ private DeploymentOperationInner innerObject;
+
+ private final com.azure.resourcemanager.resources.generated.ResourceManager serviceManager;
+
+ DeploymentOperationImpl(
+ DeploymentOperationInner innerObject,
+ com.azure.resourcemanager.resources.generated.ResourceManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String operationId() {
+ return this.innerModel().operationId();
+ }
+
+ public DeploymentOperationProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public DeploymentOperationInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.resources.generated.ResourceManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/implementation/DeploymentOperationsClientImpl.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/implementation/DeploymentOperationsClientImpl.java
new file mode 100644
index 0000000000000..16807358332e0
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/implementation/DeploymentOperationsClientImpl.java
@@ -0,0 +1,2256 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.resources.generated.fluent.DeploymentOperationsClient;
+import com.azure.resourcemanager.resources.generated.fluent.models.DeploymentOperationInner;
+import com.azure.resourcemanager.resources.generated.models.DeploymentOperationsListResult;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in DeploymentOperationsClient. */
+public final class DeploymentOperationsClientImpl implements DeploymentOperationsClient {
+ /** The proxy service used to perform REST calls. */
+ private final DeploymentOperationsService service;
+
+ /** The service client containing this operation class. */
+ private final ResourceManagementClientImpl client;
+
+ /**
+ * Initializes an instance of DeploymentOperationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ DeploymentOperationsClientImpl(ResourceManagementClientImpl client) {
+ this.service =
+ RestProxy
+ .create(DeploymentOperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ResourceManagementClientDeploymentOperations to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ResourceManagementCl")
+ private interface DeploymentOperationsService {
+ @Headers({"Content-Type: application/json"})
+ @Get("/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getAtScope(
+ @HostParam("$host") String endpoint,
+ @PathParam(value = "scope", encoded = true) String scope,
+ @PathParam("deploymentName") String deploymentName,
+ @PathParam("operationId") String operationId,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/operations")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listAtScope(
+ @HostParam("$host") String endpoint,
+ @PathParam(value = "scope", encoded = true) String scope,
+ @PathParam("deploymentName") String deploymentName,
+ @QueryParam("$top") Integer top,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getAtTenantScope(
+ @HostParam("$host") String endpoint,
+ @PathParam("deploymentName") String deploymentName,
+ @PathParam("operationId") String operationId,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("/providers/Microsoft.Resources/deployments/{deploymentName}/operations")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listAtTenantScope(
+ @HostParam("$host") String endpoint,
+ @PathParam("deploymentName") String deploymentName,
+ @QueryParam("$top") Integer top,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments"
+ + "/{deploymentName}/operations/{operationId}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getAtManagementGroupScope(
+ @HostParam("$host") String endpoint,
+ @PathParam("groupId") String groupId,
+ @PathParam("deploymentName") String deploymentName,
+ @PathParam("operationId") String operationId,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments"
+ + "/{deploymentName}/operations")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listAtManagementGroupScope(
+ @HostParam("$host") String endpoint,
+ @PathParam("groupId") String groupId,
+ @PathParam("deploymentName") String deploymentName,
+ @QueryParam("$top") Integer top,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations"
+ + "/{operationId}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getAtSubscriptionScope(
+ @HostParam("$host") String endpoint,
+ @PathParam("deploymentName") String deploymentName,
+ @PathParam("operationId") String operationId,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listAtSubscriptionScope(
+ @HostParam("$host") String endpoint,
+ @PathParam("deploymentName") String deploymentName,
+ @QueryParam("$top") Integer top,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations"
+ + "/{operationId}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("deploymentName") String deploymentName,
+ @PathParam("operationId") String operationId,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}"
+ + "/operations")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroup(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("deploymentName") String deploymentName,
+ @QueryParam("$top") Integer top,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listAtScopeNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listAtTenantScopeNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listAtManagementGroupScopeNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listAtSubscriptionScopeNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployments operation along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getAtScopeWithResponseAsync(
+ String scope, String deploymentName, String operationId) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (scope == null) {
+ return Mono.error(new IllegalArgumentException("Parameter scope is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ if (operationId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .getAtScope(
+ this.client.getEndpoint(),
+ scope,
+ deploymentName,
+ operationId,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployments operation along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getAtScopeWithResponseAsync(
+ String scope, String deploymentName, String operationId, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (scope == null) {
+ return Mono.error(new IllegalArgumentException("Parameter scope is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ if (operationId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .getAtScope(
+ this.client.getEndpoint(),
+ scope,
+ deploymentName,
+ operationId,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployments operation on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAtScopeAsync(String scope, String deploymentName, String operationId) {
+ return getAtScopeWithResponseAsync(scope, deploymentName, operationId)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployments operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DeploymentOperationInner getAtScope(String scope, String deploymentName, String operationId) {
+ return getAtScopeAsync(scope, deploymentName, operationId).block();
+ }
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployments operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getAtScopeWithResponse(
+ String scope, String deploymentName, String operationId, Context context) {
+ return getAtScopeWithResponseAsync(scope, deploymentName, operationId, context).block();
+ }
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param top The number of results to return.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all deployments operations for a deployment along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listAtScopeSinglePageAsync(
+ String scope, String deploymentName, Integer top) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (scope == null) {
+ return Mono.error(new IllegalArgumentException("Parameter scope is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listAtScope(
+ this.client.getEndpoint(),
+ scope,
+ deploymentName,
+ top,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .