diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 1349ba16c3558..fa515db161f53 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -300,6 +300,7 @@ com.azure.resourcemanager:azure-resourcemanager-maps;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-botservice;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-recoveryservicesbackup;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-deviceprovisioningservices;1.0.0;1.1.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-resources-generated;1.0.0-beta.1;1.0.0-beta.1
# Unreleased dependencies: Copy the entry from above, prepend "unreleased_" and remove the current
# version. Unreleased dependencies are only valid for dependency versions.
diff --git a/pom.xml b/pom.xml
index 8a459dd59a622..c71010cb0183f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -707,6 +707,7 @@
eng/code-quality-reports
eng/jacoco-test-coverage
sdk/advisor
+ sdk/agrifood
sdk/anomalydetector
sdk/apimanagement
sdk/appconfiguration
@@ -751,7 +752,6 @@
sdk/digitaltwins
sdk/eventgrid
sdk/eventhubs
- sdk/agrifood
sdk/formrecognizer
sdk/frontdoor
sdk/hanaonazure
@@ -800,6 +800,7 @@
sdk/resourcehealth
sdk/resourcemanager
sdk/resourcemover
+ sdk/resources
sdk/schemaregistry
sdk/search
sdk/servicebus
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/CHANGELOG.md b/sdk/resources/azure-resourcemanager-resources-generated/CHANGELOG.md
new file mode 100644
index 0000000000000..a03a38e3c820d
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2021-06-30)
+
+- Azure Resource Manager Resource client library for Java. This package contains Microsoft Azure SDK for Resource Management SDK. Provides operations for working with resources and resource groups. Package tag package-resources-2021-04. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/README.md b/sdk/resources/azure-resourcemanager-resources-generated/README.md
new file mode 100644
index 0000000000000..f4e4e7f54d3a7
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/README.md
@@ -0,0 +1,101 @@
+# Azure Resource Manager Resource client library for Java
+
+Azure Resource Manager Resource client library for Java.
+
+This package contains Microsoft Azure SDK for Resource Management SDK. Provides operations for working with resources and resource groups. Package tag package-resources-2021-04. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+
+## We'd love to hear your feedback
+
+We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.
+
+If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.
+
+Thank you in advance for your collaboration. We really appreciate your time!
+
+## Documentation
+
+Various documentation is available to help you get started
+
+- [API reference documentation][docs]
+
+## Getting started
+
+### Prerequisites
+
+- [Java Development Kit (JDK)][jdk] with version 8 or above
+- [Azure Subscription][azure_subscription]
+
+### Adding the package to your product
+
+[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-resources-generated;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-resources-generated
+ 1.0.0-beta.1
+
+```
+[//]: # ({x-version-update-end})
+
+### Include the recommended packages
+
+Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
+
+[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.
+
+### Authentication
+
+By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
+
+- `AZURE_CLIENT_ID` for Azure client ID.
+- `AZURE_TENANT_ID` for Azure tenant ID.
+- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
+
+In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
+
+With above configuration, `azure` client can be authenticated by following code:
+
+```java
+AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+TokenCredential credential = new DefaultAzureCredentialBuilder()
+ .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
+ .build();
+ResourceManager manager = ResourceManager
+ .authenticate(credential, profile);
+```
+
+The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+
+See [Authentication][authenticate] for more options.
+
+## Key concepts
+
+See [API design][design] for general introduction on design and key concepts on Azure Management Libraries.
+
+## Examples
+
+
+
+## Troubleshooting
+
+## Next steps
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/master/CONTRIBUTING.md).
+
+1. Fork it
+1. Create your feature branch (`git checkout -b my-new-feature`)
+1. Commit your changes (`git commit -am 'Add some feature'`)
+1. Push to the branch (`git push origin my-new-feature`)
+1. Create new Pull Request
+
+
+[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
+[docs]: https://azure.github.io/azure-sdk-for-java/
+[jdk]: https://docs.microsoft.com/java/azure/jdk/
+[azure_subscription]: https://azure.microsoft.com/free/
+[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/identity/azure-identity
+[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/core/azure-core-http-netty
+[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/AUTH.md
+[design]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/pom.xml b/sdk/resources/azure-resourcemanager-resources-generated/pom.xml
new file mode 100644
index 0000000000000..e109306ede507
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/pom.xml
@@ -0,0 +1,86 @@
+
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-resources-generated
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for Resource Management
+ This package contains Microsoft Azure SDK for Resource Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Provides operations for working with resources and resource groups. Package tag package-resources-2021-04.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+
+
+
+
+ com.azure
+ azure-core
+ 1.17.0
+
+
+ com.azure
+ azure-core-management
+ 1.3.0
+
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+ true
+
+
+
+ org.revapi
+ revapi-maven-plugin
+ 0.11.2
+
+
+
+ -
+
java.method.addedToInterface
+
+ -
+ true
+
.*
+ com\.azure\.resourcemanager(\.[^.]+)+\.fluent(\.[^.]+)*
+
+
+
+
+
+
+
+
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/ResourceManager.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/ResourceManager.java
new file mode 100644
index 0000000000000..87439ab52bac6
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/ResourceManager.java
@@ -0,0 +1,311 @@
+// 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;
+
+import com.azure.core.credential.TokenCredential;
+import com.azure.core.http.HttpClient;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.AddDatePolicy;
+import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.HttpPipelinePolicy;
+import com.azure.core.http.policy.HttpPolicyProviders;
+import com.azure.core.http.policy.RequestIdPolicy;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
+import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.util.Configuration;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.resources.generated.fluent.ResourceManagementClient;
+import com.azure.resourcemanager.resources.generated.implementation.DeploymentOperationsImpl;
+import com.azure.resourcemanager.resources.generated.implementation.DeploymentsImpl;
+import com.azure.resourcemanager.resources.generated.implementation.OperationsImpl;
+import com.azure.resourcemanager.resources.generated.implementation.ProviderResourceTypesImpl;
+import com.azure.resourcemanager.resources.generated.implementation.ProvidersImpl;
+import com.azure.resourcemanager.resources.generated.implementation.ResourceGroupsImpl;
+import com.azure.resourcemanager.resources.generated.implementation.ResourceManagementClientBuilder;
+import com.azure.resourcemanager.resources.generated.implementation.ResourcesImpl;
+import com.azure.resourcemanager.resources.generated.implementation.TagOperationsImpl;
+import com.azure.resourcemanager.resources.generated.models.DeploymentOperations;
+import com.azure.resourcemanager.resources.generated.models.Deployments;
+import com.azure.resourcemanager.resources.generated.models.Operations;
+import com.azure.resourcemanager.resources.generated.models.ProviderResourceTypes;
+import com.azure.resourcemanager.resources.generated.models.Providers;
+import com.azure.resourcemanager.resources.generated.models.ResourceGroups;
+import com.azure.resourcemanager.resources.generated.models.Resources;
+import com.azure.resourcemanager.resources.generated.models.TagOperations;
+import java.time.Duration;
+import java.time.temporal.ChronoUnit;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+/** Entry point to ResourceManager. Provides operations for working with resources and resource groups. */
+public final class ResourceManager {
+ private Operations operations;
+
+ private Deployments deployments;
+
+ private Providers providers;
+
+ private ProviderResourceTypes providerResourceTypes;
+
+ private Resources resources;
+
+ private ResourceGroups resourceGroups;
+
+ private TagOperations tagOperations;
+
+ private DeploymentOperations deploymentOperations;
+
+ private final ResourceManagementClient clientObject;
+
+ private ResourceManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject =
+ new ResourceManagementClientBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * 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 static ResourceManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ return configure().authenticate(credential, profile);
+ }
+
+ /**
+ * Gets a Configurable instance that can be used to create ResourceManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new ResourceManager.Configurable();
+ }
+
+ /** The Configurable allowing configurations to be set. */
+ public static final class Configurable {
+ private final ClientLogger logger = new ClientLogger(Configurable.class);
+
+ private HttpClient httpClient;
+ private HttpLogOptions httpLogOptions;
+ private final List policies = new ArrayList<>();
+ private final List scopes = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ 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 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, "'retryPolicy' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' 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) {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new RequestIdPolicy());
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.addAll(this.policies);
+ 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);
+ }
+ }
+
+ /** @return Resource collection API of Operations. */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /** @return Resource collection API of Deployments. */
+ public Deployments deployments() {
+ if (this.deployments == null) {
+ this.deployments = new DeploymentsImpl(clientObject.getDeployments(), this);
+ }
+ return deployments;
+ }
+
+ /** @return Resource collection API of Providers. */
+ public Providers providers() {
+ if (this.providers == null) {
+ this.providers = new ProvidersImpl(clientObject.getProviders(), this);
+ }
+ return providers;
+ }
+
+ /** @return Resource collection API of ProviderResourceTypes. */
+ public ProviderResourceTypes providerResourceTypes() {
+ if (this.providerResourceTypes == null) {
+ this.providerResourceTypes = new ProviderResourceTypesImpl(clientObject.getProviderResourceTypes(), this);
+ }
+ return providerResourceTypes;
+ }
+
+ /** @return Resource collection API of Resources. */
+ public Resources resources() {
+ if (this.resources == null) {
+ this.resources = new ResourcesImpl(clientObject.getResources(), this);
+ }
+ return resources;
+ }
+
+ /** @return Resource collection API of ResourceGroups. */
+ public ResourceGroups resourceGroups() {
+ if (this.resourceGroups == null) {
+ this.resourceGroups = new ResourceGroupsImpl(clientObject.getResourceGroups(), this);
+ }
+ return resourceGroups;
+ }
+
+ /** @return Resource collection API of TagOperations. */
+ public TagOperations tagOperations() {
+ if (this.tagOperations == null) {
+ this.tagOperations = new TagOperationsImpl(clientObject.getTagOperations(), this);
+ }
+ return tagOperations;
+ }
+
+ /** @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..06bcd4d7a5b6c
--- /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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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..df5e0116bde75
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/DeploymentsClient.java
@@ -0,0 +1,1964 @@
+// 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 {
+ /**
+ * 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteAtScope(String scope, String deploymentName);
+
+ /**
+ * 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteAtScope(String scope, String deploymentName, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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 the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkExistenceAtScopeWithResponse(String scope, String deploymentName, Context context);
+
+ /**
+ * 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)
+ SyncPoller, DeploymentExtendedInner> beginCreateOrUpdateAtScope(
+ String scope, String deploymentName, Deployment parameters);
+
+ /**
+ * 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)
+ SyncPoller, DeploymentExtendedInner> beginCreateOrUpdateAtScope(
+ String scope, String deploymentName, Deployment parameters, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAtScopeWithResponse(String scope, String deploymentName, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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 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 information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtScope(String scope, String filter, Integer top, Context context);
+
+ /**
+ * 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteAtTenantScope(String deploymentName);
+
+ /**
+ * 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteAtTenantScope(String deploymentName, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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 the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkExistenceAtTenantScopeWithResponse(String deploymentName, Context context);
+
+ /**
+ * 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)
+ SyncPoller, DeploymentExtendedInner> beginCreateOrUpdateAtTenantScope(
+ String deploymentName, ScopedDeployment parameters);
+
+ /**
+ * 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)
+ SyncPoller, DeploymentExtendedInner> beginCreateOrUpdateAtTenantScope(
+ String deploymentName, ScopedDeployment parameters, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAtTenantScopeWithResponse(String deploymentName, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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 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 information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtTenantScope(String filter, Integer top, Context context);
+
+ /**
+ * 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteAtManagementGroupScope(String groupId, String deploymentName);
+
+ /**
+ * 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteAtManagementGroupScope(
+ String groupId, String deploymentName, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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 the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkExistenceAtManagementGroupScopeWithResponse(
+ String groupId, String deploymentName, Context context);
+
+ /**
+ * 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)
+ SyncPoller, DeploymentExtendedInner> beginCreateOrUpdateAtManagementGroupScope(
+ String groupId, String deploymentName, ScopedDeployment parameters);
+
+ /**
+ * 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)
+ SyncPoller, DeploymentExtendedInner> beginCreateOrUpdateAtManagementGroupScope(
+ String groupId, String deploymentName, ScopedDeployment parameters, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAtManagementGroupScopeWithResponse(
+ String groupId, String deploymentName, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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 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 information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtManagementGroupScope(
+ String groupId, String filter, Integer top, Context context);
+
+ /**
+ * 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteAtSubscriptionScope(String deploymentName);
+
+ /**
+ * 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteAtSubscriptionScope(String deploymentName, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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 the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkExistenceAtSubscriptionScopeWithResponse(String deploymentName, Context context);
+
+ /**
+ * 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)
+ SyncPoller, DeploymentExtendedInner> beginCreateOrUpdateAtSubscriptionScope(
+ String deploymentName, Deployment parameters);
+
+ /**
+ * 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)
+ SyncPoller, DeploymentExtendedInner> beginCreateOrUpdateAtSubscriptionScope(
+ String deploymentName, Deployment parameters, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAtSubscriptionScopeWithResponse(String deploymentName, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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 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 information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String filter, Integer top, Context context);
+
+ /**
+ * 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String deploymentName);
+
+ /**
+ * 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String deploymentName, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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 the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkExistenceWithResponse(String resourceGroupName, String deploymentName, Context context);
+
+ /**
+ * 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)
+ SyncPoller, DeploymentExtendedInner> beginCreateOrUpdate(
+ String resourceGroupName, String deploymentName, Deployment parameters);
+
+ /**
+ * 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)
+ SyncPoller, DeploymentExtendedInner> beginCreateOrUpdate(
+ String resourceGroupName, String deploymentName, Deployment parameters, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String deploymentName, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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 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 information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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..b8839192d9939
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/OperationsClient.java
@@ -0,0 +1,36 @@
+// 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.
+ */
+ @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.
+ */
+ @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..aa9160bc0ba2a
--- /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.
+ */
+ @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..36fb56eb1d492
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ProvidersClient.java
@@ -0,0 +1,229 @@
+// 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.
+ */
+ @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 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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Gets all resource providers for a subscription.
+ *
+ * @param top The number of results to return. If null is passed returns all deployments.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Integer top, 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtTenantScope();
+
+ /**
+ * Gets all resource providers for the tenant.
+ *
+ * @param top The number of results to return. If null is passed returns all providers.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtTenantScope(Integer top, 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.
+ */
+ @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.
+ */
+ @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..87d590a350011
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ResourceGroupsClient.java
@@ -0,0 +1,287 @@
+// 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 the 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, ResourceGroupInner parameters, Context context);
+
+ /**
+ * 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String forceDeletionTypes);
+
+ /**
+ * 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String forceDeletionTypes, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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.
+ */
+ @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 resource group export result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 resource group export result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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.
+ */
+ @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.
+ */
+ @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..8b5bfafa92aed
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ResourcesClient.java
@@ -0,0 +1,908 @@
+// 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.
+ */
+ @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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(
+ String resourceGroupName, String filter, String expand, Integer top, Context context);
+
+ /**
+ * 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginMoveResources(String sourceResourceGroupName, ResourcesMoveInfo parameters);
+
+ /**
+ * 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginMoveResources(
+ String sourceResourceGroupName, ResourcesMoveInfo parameters, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginValidateMoveResources(
+ String sourceResourceGroupName, ResourcesMoveInfo parameters);
+
+ /**
+ * 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginValidateMoveResources(
+ String sourceResourceGroupName, ResourcesMoveInfo parameters, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Get all the resources in a subscription.
+ *
+ * @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 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 resources in a subscription.
+ */
+ @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 the 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 resource information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 resource information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 resource information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 resource information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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.
+ */
+ @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.
+ *
+ * @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.
+ *
+ * @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 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 resource information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 resource information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 resource information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 resource information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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.
+ */
+ @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..042ee91dd79d3
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/TagOperationsClient.java
@@ -0,0 +1,272 @@
+// 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 {
+ /**
+ * 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);
+
+ /**
+ * 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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteValueWithResponse(String tagName, String tagValue, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateValueWithResponse(String tagName, String tagValue, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(String tagName, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String tagName, Context context);
+
+ /**
+ * 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateAtScopeWithResponse(
+ String scope, TagsResourceInner parameters, Context context);
+
+ /**
+ * 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);
+
+ /**
+ * 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.
+ */
+ @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.
+ */
+ @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 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..3bff85c2342c5
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/DeploymentExportResultInner.java
@@ -0,0 +1,50 @@
+// 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.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The deployment export result. */
+@Fluent
+public final class DeploymentExportResultInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DeploymentExportResultInner.class);
+
+ /*
+ * 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..a9e67082b7706
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/DeploymentExtendedInner.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.Resource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.resources.generated.models.DeploymentPropertiesExtended;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Deployment information. */
+@Fluent
+public final class DeploymentExtendedInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DeploymentExtendedInner.class);
+
+ /*
+ * 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..3c658ef536963
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/DeploymentOperationInner.java
@@ -0,0 +1,84 @@
+// 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.util.logging.ClientLogger;
+import com.azure.resourcemanager.resources.generated.models.DeploymentOperationProperties;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Deployment operation information. */
+@Fluent
+public final class DeploymentOperationInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DeploymentOperationInner.class);
+
+ /*
+ * 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..6e59c99d1a255
--- /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.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.resources.generated.models.DeploymentPropertiesExtended;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Information from validate template deployment response. */
+@Fluent
+public final class DeploymentValidateResultInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DeploymentValidateResultInner.class);
+
+ /*
+ * 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: 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..edcf852f0a9f4
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/GenericResourceExpandedInner.java
@@ -0,0 +1,146 @@
+// 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.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+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.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.Map;
+
+/** Resource information. */
+@Immutable
+public final class GenericResourceExpandedInner extends GenericResourceInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(GenericResourceExpandedInner.class);
+
+ /*
+ * 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..d344694f0a774
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/GenericResourceInner.java
@@ -0,0 +1,238 @@
+// 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.core.util.logging.ClientLogger;
+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.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Resource information. */
+@Fluent
+public class GenericResourceInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(GenericResourceInner.class);
+
+ /*
+ * 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..1a5a4ec93b7af
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/OperationInner.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.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.resources.generated.models.OperationDisplay;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Microsoft.Resources operation. */
+@Fluent
+public final class OperationInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class);
+
+ /*
+ * 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..52e92d8511d01
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/ProviderInner.java
@@ -0,0 +1,143 @@
+// 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.util.logging.ClientLogger;
+import com.azure.resourcemanager.resources.generated.models.ProviderAuthorizationConsentState;
+import com.azure.resourcemanager.resources.generated.models.ProviderResourceType;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Resource provider information. */
+@Fluent
+public final class ProviderInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ProviderInner.class);
+
+ /*
+ * 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..d52c8f84c54ad
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/ProviderPermissionListResultInner.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.util.logging.ClientLogger;
+import com.azure.resourcemanager.resources.generated.models.ProviderPermission;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** List of provider permissions. */
+@Fluent
+public final class ProviderPermissionListResultInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ProviderPermissionListResultInner.class);
+
+ /*
+ * 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..096e3fe417696
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/ProviderResourceTypeListResultInner.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.util.logging.ClientLogger;
+import com.azure.resourcemanager.resources.generated.models.ProviderResourceType;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** List of resource types of a resource provider. */
+@Fluent
+public final class ProviderResourceTypeListResultInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ProviderResourceTypeListResultInner.class);
+
+ /*
+ * 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..72293c3bd75f0
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/ResourceGroupExportResultInner.java
@@ -0,0 +1,77 @@
+// 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.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Resource group export result. */
+@Fluent
+public final class ResourceGroupExportResultInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ResourceGroupExportResultInner.class);
+
+ /*
+ * The template content.
+ */
+ @JsonProperty(value = "template")
+ private Object template;
+
+ /*
+ * 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: The template export error.
+ *
+ * @return the error value.
+ */
+ public ManagementError error() {
+ return this.error;
+ }
+
+ /**
+ * Set the error property: 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..c0f0c88bda126
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/ResourceGroupInner.java
@@ -0,0 +1,96 @@
+// 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.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.resources.generated.models.ResourceGroupProperties;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Resource group information. */
+@Fluent
+public final class ResourceGroupInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ResourceGroupInner.class);
+
+ /*
+ * 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..4157e47556778
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/TagDetailsInner.java
@@ -0,0 +1,128 @@
+// 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.util.logging.ClientLogger;
+import com.azure.resourcemanager.resources.generated.models.TagCount;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Tag details. */
+@Fluent
+public final class TagDetailsInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(TagDetailsInner.class);
+
+ /*
+ * 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..12cee5668a186
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/TagValueInner.java
@@ -0,0 +1,95 @@
+// 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.util.logging.ClientLogger;
+import com.azure.resourcemanager.resources.generated.models.TagCount;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Tag information. */
+@Fluent
+public final class TagValueInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(TagValueInner.class);
+
+ /*
+ * 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..8d02a02681e5f
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/TagsResourceInner.java
@@ -0,0 +1,59 @@
+// 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.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Wrapper resource for tags API requests and responses. */
+@Fluent
+public final class TagsResourceInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(TagsResourceInner.class);
+
+ /*
+ * 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();
+ }
+ }
+}
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..2ff71ee7e64ab
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/TemplateHashResultInner.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.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+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 {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(TemplateHashResultInner.class);
+
+ /*
+ * 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/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..5ad67c0fc9aa5
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/WhatIfOperationResultInner.java
@@ -0,0 +1,113 @@
+// 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.annotation.JsonFlatten;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.resources.generated.models.WhatIfChange;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+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.
+ */
+@JsonFlatten
+@Fluent
+public class WhatIfOperationResultInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(WhatIfOperationResultInner.class);
+
+ /*
+ * Status of the What-If operation.
+ */
+ @JsonProperty(value = "status")
+ private String status;
+
+ /*
+ * Error when What-If operation fails.
+ */
+ @JsonProperty(value = "error")
+ private ManagementError error;
+
+ /*
+ * List of resource changes predicted by What-If operation.
+ */
+ @JsonProperty(value = "properties.changes")
+ private List changes;
+
+ /**
+ * 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 error property: Error when What-If operation fails.
+ *
+ * @return the error value.
+ */
+ public ManagementError error() {
+ return this.error;
+ }
+
+ /**
+ * Set the error property: 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.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) {
+ 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/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..f820a90198896
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/implementation/DeploymentExtendedImpl.java
@@ -0,0 +1,228 @@
+// 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 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..59ef0dd21a8aa
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/implementation/DeploymentOperationsClientImpl.java
@@ -0,0 +1,2284 @@
+// 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.core.util.logging.ClientLogger;
+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 {
+ private final ClientLogger logger = new ClientLogger(DeploymentOperationsClientImpl.class);
+
+ /** 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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAtScopeAsync(String scope, String deploymentName, String operationId) {
+ return getAtScopeWithResponseAsync(scope, deploymentName, operationId)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * 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.
+ */
+ @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.
+ */
+ @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))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listAtScopeSinglePageAsync(
+ String scope, String deploymentName, Integer top, 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."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listAtScope(
+ this.client.getEndpoint(), scope, deploymentName, top, this.client.getApiVersion(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAtScopeAsync(String scope, String deploymentName, Integer top) {
+ return new PagedFlux<>(
+ () -> listAtScopeSinglePageAsync(scope, deploymentName, top),
+ nextLink -> listAtScopeNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAtScopeAsync(String scope, String deploymentName) {
+ final Integer top = null;
+ return new PagedFlux<>(
+ () -> listAtScopeSinglePageAsync(scope, deploymentName, top),
+ nextLink -> listAtScopeNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAtScopeAsync(
+ String scope, String deploymentName, Integer top, Context context) {
+ return new PagedFlux<>(
+ () -> listAtScopeSinglePageAsync(scope, deploymentName, top, context),
+ nextLink -> listAtScopeNextSinglePageAsync(nextLink, 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listAtScope(String scope, String deploymentName) {
+ final Integer top = null;
+ return new PagedIterable<>(listAtScopeAsync(scope, deploymentName, top));
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listAtScope(
+ String scope, String deploymentName, Integer top, Context context) {
+ return new PagedIterable<>(listAtScopeAsync(scope, deploymentName, top, 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 ManagementException 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)
+ private Mono> getAtTenantScopeWithResponseAsync(
+ 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 (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
+ .getAtTenantScope(
+ this.client.getEndpoint(),
+ deploymentName,
+ operationId,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 ManagementException 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)
+ private Mono> getAtTenantScopeWithResponseAsync(
+ 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 (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
+ .getAtTenantScope(
+ this.client.getEndpoint(), deploymentName, operationId, this.client.getApiVersion(), accept, 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 ManagementException 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)
+ private Mono getAtTenantScopeAsync(String deploymentName, String operationId) {
+ return getAtTenantScopeWithResponseAsync(deploymentName, operationId)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * 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 ManagementException 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 getAtTenantScope(String deploymentName, String operationId) {
+ return getAtTenantScopeAsync(deploymentName, operationId).block();
+ }
+
+ /**
+ * 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 ManagementException 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 Response getAtTenantScopeWithResponse(
+ String deploymentName, String operationId, Context context) {
+ return getAtTenantScopeWithResponseAsync(deploymentName, operationId, context).block();
+ }
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listAtTenantScopeSinglePageAsync(
+ 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 (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
+ .listAtTenantScope(
+ this.client.getEndpoint(),
+ deploymentName,
+ top,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listAtTenantScopeSinglePageAsync(
+ String deploymentName, Integer top, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() 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";
+ context = this.client.mergeContext(context);
+ return service
+ .listAtTenantScope(
+ this.client.getEndpoint(), deploymentName, top, this.client.getApiVersion(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAtTenantScopeAsync(String deploymentName, Integer top) {
+ return new PagedFlux<>(
+ () -> listAtTenantScopeSinglePageAsync(deploymentName, top),
+ nextLink -> listAtTenantScopeNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAtTenantScopeAsync(String deploymentName) {
+ final Integer top = null;
+ return new PagedFlux<>(
+ () -> listAtTenantScopeSinglePageAsync(deploymentName, top),
+ nextLink -> listAtTenantScopeNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAtTenantScopeAsync(
+ String deploymentName, Integer top, Context context) {
+ return new PagedFlux<>(
+ () -> listAtTenantScopeSinglePageAsync(deploymentName, top, context),
+ nextLink -> listAtTenantScopeNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listAtTenantScope(String deploymentName) {
+ final Integer top = null;
+ return new PagedIterable<>(listAtTenantScopeAsync(deploymentName, top));
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listAtTenantScope(
+ String deploymentName, Integer top, Context context) {
+ return new PagedIterable<>(listAtTenantScopeAsync(deploymentName, top, 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 ManagementException 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)
+ private Mono> getAtManagementGroupScopeWithResponseAsync(
+ String groupId, 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 (groupId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter groupId 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
+ .getAtManagementGroupScope(
+ this.client.getEndpoint(),
+ groupId,
+ deploymentName,
+ operationId,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 ManagementException 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)
+ private Mono> getAtManagementGroupScopeWithResponseAsync(
+ String groupId, 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 (groupId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter groupId 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
+ .getAtManagementGroupScope(
+ this.client.getEndpoint(),
+ groupId,
+ deploymentName,
+ operationId,
+ this.client.getApiVersion(),
+ accept,
+ 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 ManagementException 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)
+ private Mono getAtManagementGroupScopeAsync(
+ String groupId, String deploymentName, String operationId) {
+ return getAtManagementGroupScopeWithResponseAsync(groupId, deploymentName, operationId)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * 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 ManagementException 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 getAtManagementGroupScope(
+ String groupId, String deploymentName, String operationId) {
+ return getAtManagementGroupScopeAsync(groupId, deploymentName, operationId).block();
+ }
+
+ /**
+ * 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 ManagementException 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 Response getAtManagementGroupScopeWithResponse(
+ String groupId, String deploymentName, String operationId, Context context) {
+ return getAtManagementGroupScopeWithResponseAsync(groupId, deploymentName, operationId, context).block();
+ }
+
+ /**
+ * 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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listAtManagementGroupScopeSinglePageAsync(
+ String groupId, 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 (groupId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter groupId 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
+ .listAtManagementGroupScope(
+ this.client.getEndpoint(),
+ groupId,
+ deploymentName,
+ top,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listAtManagementGroupScopeSinglePageAsync(
+ String groupId, String deploymentName, Integer top, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (groupId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter groupId 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";
+ context = this.client.mergeContext(context);
+ return service
+ .listAtManagementGroupScope(
+ this.client.getEndpoint(), groupId, deploymentName, top, this.client.getApiVersion(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * 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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAtManagementGroupScopeAsync(
+ String groupId, String deploymentName, Integer top) {
+ return new PagedFlux<>(
+ () -> listAtManagementGroupScopeSinglePageAsync(groupId, deploymentName, top),
+ nextLink -> listAtManagementGroupScopeNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAtManagementGroupScopeAsync(String groupId, String deploymentName) {
+ final Integer top = null;
+ return new PagedFlux<>(
+ () -> listAtManagementGroupScopeSinglePageAsync(groupId, deploymentName, top),
+ nextLink -> listAtManagementGroupScopeNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAtManagementGroupScopeAsync(
+ String groupId, String deploymentName, Integer top, Context context) {
+ return new PagedFlux<>(
+ () -> listAtManagementGroupScopeSinglePageAsync(groupId, deploymentName, top, context),
+ nextLink -> listAtManagementGroupScopeNextSinglePageAsync(nextLink, 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listAtManagementGroupScope(String groupId, String deploymentName) {
+ final Integer top = null;
+ return new PagedIterable<>(listAtManagementGroupScopeAsync(groupId, deploymentName, top));
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listAtManagementGroupScope(
+ String groupId, String deploymentName, Integer top, Context context) {
+ return new PagedIterable<>(listAtManagementGroupScopeAsync(groupId, deploymentName, top, 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 ManagementException 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)
+ private Mono> getAtSubscriptionScopeWithResponseAsync(
+ 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 (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."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .getAtSubscriptionScope(
+ this.client.getEndpoint(),
+ deploymentName,
+ operationId,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 ManagementException 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)
+ private Mono> getAtSubscriptionScopeWithResponseAsync(
+ 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 (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."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .getAtSubscriptionScope(
+ this.client.getEndpoint(),
+ deploymentName,
+ operationId,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ 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 ManagementException 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)
+ private Mono getAtSubscriptionScopeAsync(String deploymentName, String operationId) {
+ return getAtSubscriptionScopeWithResponseAsync(deploymentName, operationId)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * 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 ManagementException 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 getAtSubscriptionScope(String deploymentName, String operationId) {
+ return getAtSubscriptionScopeAsync(deploymentName, operationId).block();
+ }
+
+ /**
+ * 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 ManagementException 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 Response getAtSubscriptionScopeWithResponse(
+ String deploymentName, String operationId, Context context) {
+ return getAtSubscriptionScopeWithResponseAsync(deploymentName, operationId, context).block();
+ }
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listAtSubscriptionScopeSinglePageAsync(
+ 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 (deploymentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listAtSubscriptionScope(
+ this.client.getEndpoint(),
+ deploymentName,
+ top,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listAtSubscriptionScopeSinglePageAsync(
+ String deploymentName, Integer top, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listAtSubscriptionScope(
+ this.client.getEndpoint(),
+ deploymentName,
+ top,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAtSubscriptionScopeAsync(String deploymentName, Integer top) {
+ return new PagedFlux<>(
+ () -> listAtSubscriptionScopeSinglePageAsync(deploymentName, top),
+ nextLink -> listAtSubscriptionScopeNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAtSubscriptionScopeAsync(String deploymentName) {
+ final Integer top = null;
+ return new PagedFlux<>(
+ () -> listAtSubscriptionScopeSinglePageAsync(deploymentName, top),
+ nextLink -> listAtSubscriptionScopeNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAtSubscriptionScopeAsync(
+ String deploymentName, Integer top, Context context) {
+ return new PagedFlux<>(
+ () -> listAtSubscriptionScopeSinglePageAsync(deploymentName, top, context),
+ nextLink -> listAtSubscriptionScopeNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listAtSubscriptionScope(String deploymentName) {
+ final Integer top = null;
+ return new PagedIterable<>(listAtSubscriptionScopeAsync(deploymentName, top));
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listAtSubscriptionScope(
+ String deploymentName, Integer top, Context context) {
+ return new PagedIterable<>(listAtSubscriptionScopeAsync(deploymentName, top, 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 ManagementException 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)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, 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 (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName 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."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ deploymentName,
+ operationId,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 ManagementException 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)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, 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 (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName 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."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ deploymentName,
+ operationId,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ 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 ManagementException 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)
+ private Mono getAsync(
+ String resourceGroupName, String deploymentName, String operationId) {
+ return getWithResponseAsync(resourceGroupName, deploymentName, operationId)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * 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 ManagementException 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 get(String resourceGroupName, String deploymentName, String operationId) {
+ return getAsync(resourceGroupName, deploymentName, operationId).block();
+ }
+
+ /**
+ * 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 ManagementException 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 Response getWithResponse(
+ String resourceGroupName, String deploymentName, String operationId, Context context) {
+ return getWithResponseAsync(resourceGroupName, deploymentName, operationId, context).block();
+ }
+
+ /**
+ * 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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(
+ String resourceGroupName, 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 (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listByResourceGroup(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ deploymentName,
+ top,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(
+ String resourceGroupName, String deploymentName, Integer top, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByResourceGroup(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ deploymentName,
+ top,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * 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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(
+ String resourceGroupName, String deploymentName, Integer top) {
+ return new PagedFlux<>(
+ () -> listByResourceGroupSinglePageAsync(resourceGroupName, deploymentName, top),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(
+ String resourceGroupName, String deploymentName) {
+ final Integer top = null;
+ return new PagedFlux<>(
+ () -> listByResourceGroupSinglePageAsync(resourceGroupName, deploymentName, top),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(
+ String resourceGroupName, String deploymentName, Integer top, Context context) {
+ return new PagedFlux<>(
+ () -> listByResourceGroupSinglePageAsync(resourceGroupName, deploymentName, top, context),
+ nextLink -> listNextSinglePageAsync(nextLink, 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(
+ String resourceGroupName, String deploymentName) {
+ final Integer top = null;
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, deploymentName, top));
+ }
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(
+ String resourceGroupName, String deploymentName, Integer top, Context context) {
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, deploymentName, top, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 deployment operations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listAtScopeNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listAtScopeNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of deployment operations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listAtScopeNextSinglePageAsync(
+ String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listAtScopeNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 deployment operations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listAtTenantScopeNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listAtTenantScopeNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of deployment operations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listAtTenantScopeNextSinglePageAsync(
+ String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listAtTenantScopeNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 deployment operations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listAtManagementGroupScopeNextSinglePageAsync(
+ String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listAtManagementGroupScopeNext(nextLink, this.client.getEndpoint(), accept, context))
+ .