diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 81e13ce5a899b..df84811e5ac16 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -336,6 +336,7 @@ com.azure.resourcemanager:azure-resourcemanager-edgeorder;1.0.0-beta.1;1.0.0-bet
com.azure.resourcemanager:azure-resourcemanager-securityinsights;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-oep;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-dnsresolver;1.0.0-beta.1;1.0.0-beta.2
+com.azure.resourcemanager:azure-resourcemanager-resources-generated;1.0.0-beta.1;1.0.0-beta.1
com.azure.tools:azure-sdk-archetype;1.0.0;1.0.0
# Unreleased dependencies: Copy the entry from above, prepend "unreleased_" and remove the current
diff --git a/pom.xml b/pom.xml
index 0b3ac328a8f42..c85238e83b125 100644
--- a/pom.xml
+++ b/pom.xml
@@ -950,6 +950,7 @@
sdk/resourcehealth
sdk/resourcemanager
sdk/resourcemover
+ sdk/resources
sdk/schemaregistry
sdk/search
sdk/security
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..1f31f742bd1ac
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2022-02-25)
+
+- 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..73cc83fd01f71
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/README.md
@@ -0,0 +1,102 @@
+# 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
+
+[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resources/azure-resourcemanager-resources-generated/SAMPLE.md)
+
+
+## Troubleshooting
+
+## Next steps
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/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/main/sdk/identity/azure-identity
+[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
+[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
+[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/SAMPLE.md b/sdk/resources/azure-resourcemanager-resources-generated/SAMPLE.md
new file mode 100644
index 0000000000000..cd4bc54ad70da
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/SAMPLE.md
@@ -0,0 +1,897 @@
+# Code snippets and samples
+
+
+## Deployments
+
+- [CalculateTemplateHash](#deployments_calculatetemplatehash)
+- [CreateOrUpdate](#deployments_createorupdate)
+- [CreateOrUpdateAtManagementGroupScope](#deployments_createorupdateatmanagementgroupscope)
+- [CreateOrUpdateAtScope](#deployments_createorupdateatscope)
+- [CreateOrUpdateAtSubscriptionScope](#deployments_createorupdateatsubscriptionscope)
+- [CreateOrUpdateAtTenantScope](#deployments_createorupdateattenantscope)
+- [WhatIf](#deployments_whatif)
+- [WhatIfAtManagementGroupScope](#deployments_whatifatmanagementgroupscope)
+- [WhatIfAtSubscriptionScope](#deployments_whatifatsubscriptionscope)
+- [WhatIfAtTenantScope](#deployments_whatifattenantscope)
+
+## ProviderResourceTypes
+
+- [List](#providerresourcetypes_list)
+
+## Providers
+
+- [Get](#providers_get)
+- [GetAtTenantScope](#providers_getattenantscope)
+- [List](#providers_list)
+- [ProviderPermissions](#providers_providerpermissions)
+
+## ResourceGroups
+
+- [CreateOrUpdate](#resourcegroups_createorupdate)
+- [Delete](#resourcegroups_delete)
+- [ExportTemplate](#resourcegroups_exporttemplate)
+
+## TagOperations
+
+- [CreateOrUpdateAtScope](#tagoperations_createorupdateatscope)
+- [GetAtScope](#tagoperations_getatscope)
+### Deployments_CalculateTemplateHash
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.serializer.SerializerEncoding;
+import java.io.IOException;
+
+/** Samples for Deployments CalculateTemplateHash. */
+public final class DeploymentsCalculateTemplateHashSamples {
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/CalculateTemplateHash.json
+ */
+ /**
+ * Sample code: Calculate template hash.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void calculateTemplateHash(com.azure.resourcemanager.resources.generated.ResourceManager manager)
+ throws IOException {
+ manager
+ .deployments()
+ .calculateTemplateHashWithResponse(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"$schema\":\"http://schemas.management.azure.com/deploymentTemplate?api-version=2014-04-01-preview\",\"contentVersion\":\"1.0.0.0\",\"outputs\":{\"string\":{\"type\":\"string\",\"value\":\"myvalue\"}},\"parameters\":{\"string\":{\"type\":\"string\"}},\"resources\":[],\"variables\":{\"array\":[1,2,3,4],\"bool\":true,\"int\":42,\"object\":{\"object\":{\"location\":\"West"
+ + " US\",\"vmSize\":\"Large\"}},\"string\":\"string\"}}",
+ Object.class,
+ SerializerEncoding.JSON),
+ Context.NONE);
+ }
+}
+```
+
+### Deployments_CreateOrUpdate
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.resources.generated.models.DeploymentMode;
+import com.azure.resourcemanager.resources.generated.models.DeploymentProperties;
+import com.azure.resourcemanager.resources.generated.models.OnErrorDeployment;
+import com.azure.resourcemanager.resources.generated.models.OnErrorDeploymentType;
+import com.azure.resourcemanager.resources.generated.models.TemplateLink;
+import java.io.IOException;
+
+/** Samples for Deployments CreateOrUpdate. */
+public final class DeploymentsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PutDeploymentResourceGroup.json
+ */
+ /**
+ * Sample code: Create a deployment that will deploy a template with a uri and queryString.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void createADeploymentThatWillDeployATemplateWithAUriAndQueryString(
+ com.azure.resourcemanager.resources.generated.ResourceManager manager) throws IOException {
+ manager
+ .deployments()
+ .define("my-deployment")
+ .withExistingResourceGroup("my-resource-group")
+ .withProperties(
+ new DeploymentProperties()
+ .withTemplateLink(
+ new TemplateLink()
+ .withUri("https://example.com/exampleTemplate.json")
+ .withQueryString(
+ "sv=2019-02-02&st=2019-04-29T22%3A18%3A26Z&se=2019-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=xxxxxxxx0xxxxxxxxxxxxx%2bxxxxxxxxxxxxxxxxxxxx%3d"))
+ .withParameters(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))
+ .withMode(DeploymentMode.INCREMENTAL))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PutDeploymentResourceGroupTemplateSpecsWithId.json
+ */
+ /**
+ * Sample code: Create a deployment that will deploy a templateSpec with the given resourceId.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void createADeploymentThatWillDeployATemplateSpecWithTheGivenResourceId(
+ com.azure.resourcemanager.resources.generated.ResourceManager manager) throws IOException {
+ manager
+ .deployments()
+ .define("my-deployment")
+ .withExistingResourceGroup("my-resource-group")
+ .withProperties(
+ new DeploymentProperties()
+ .withTemplateLink(
+ new TemplateLink()
+ .withId(
+ "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1"))
+ .withParameters(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))
+ .withMode(DeploymentMode.INCREMENTAL))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PutDeploymentWithOnErrorDeploymentSpecificDeployment.json
+ */
+ /**
+ * Sample code: Create a deployment that will redeploy another deployment on failure.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void createADeploymentThatWillRedeployAnotherDeploymentOnFailure(
+ com.azure.resourcemanager.resources.generated.ResourceManager manager) throws IOException {
+ manager
+ .deployments()
+ .define("my-deployment")
+ .withExistingResourceGroup("my-resource-group")
+ .withProperties(
+ new DeploymentProperties()
+ .withTemplateLink(new TemplateLink().withUri("https://example.com/exampleTemplate.json"))
+ .withParameters(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))
+ .withMode(DeploymentMode.COMPLETE)
+ .withOnErrorDeployment(
+ new OnErrorDeployment()
+ .withType(OnErrorDeploymentType.SPECIFIC_DEPLOYMENT)
+ .withDeploymentName("name-of-deployment-to-use")))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PutDeploymentWithOnErrorDeploymentLastSuccessful.json
+ */
+ /**
+ * Sample code: Create a deployment that will redeploy the last successful deployment on failure.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void createADeploymentThatWillRedeployTheLastSuccessfulDeploymentOnFailure(
+ com.azure.resourcemanager.resources.generated.ResourceManager manager) throws IOException {
+ manager
+ .deployments()
+ .define("my-deployment")
+ .withExistingResourceGroup("my-resource-group")
+ .withProperties(
+ new DeploymentProperties()
+ .withTemplateLink(new TemplateLink().withUri("https://example.com/exampleTemplate.json"))
+ .withParameters(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))
+ .withMode(DeploymentMode.COMPLETE)
+ .withOnErrorDeployment(new OnErrorDeployment().withType(OnErrorDeploymentType.LAST_SUCCESSFUL)))
+ .create();
+ }
+}
+```
+
+### Deployments_CreateOrUpdateAtManagementGroupScope
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.resources.generated.models.DeploymentMode;
+import com.azure.resourcemanager.resources.generated.models.DeploymentProperties;
+import com.azure.resourcemanager.resources.generated.models.ScopedDeployment;
+import com.azure.resourcemanager.resources.generated.models.TemplateLink;
+import java.io.IOException;
+
+/** Samples for Deployments CreateOrUpdateAtManagementGroupScope. */
+public final class DeploymentsCreateOrUpdateAtManagementGroupScopeSamples {
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PutDeploymentAtManagementGroup.json
+ */
+ /**
+ * Sample code: Create deployment at management group scope.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void createDeploymentAtManagementGroupScope(
+ com.azure.resourcemanager.resources.generated.ResourceManager manager) throws IOException {
+ manager
+ .deployments()
+ .createOrUpdateAtManagementGroupScope(
+ "my-management-group-id",
+ "my-deployment",
+ new ScopedDeployment()
+ .withLocation("eastus")
+ .withProperties(
+ new DeploymentProperties()
+ .withTemplateLink(new TemplateLink().withUri("https://example.com/exampleTemplate.json"))
+ .withParameters(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))
+ .withMode(DeploymentMode.INCREMENTAL)),
+ Context.NONE);
+ }
+}
+```
+
+### Deployments_CreateOrUpdateAtScope
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.resources.generated.models.Deployment;
+import com.azure.resourcemanager.resources.generated.models.DeploymentMode;
+import com.azure.resourcemanager.resources.generated.models.DeploymentProperties;
+import com.azure.resourcemanager.resources.generated.models.TemplateLink;
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Deployments CreateOrUpdateAtScope. */
+public final class DeploymentsCreateOrUpdateAtScopeSamples {
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PutDeploymentAtScope.json
+ */
+ /**
+ * Sample code: Create deployment at a given scope.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void createDeploymentAtAGivenScope(
+ com.azure.resourcemanager.resources.generated.ResourceManager manager) throws IOException {
+ manager
+ .deployments()
+ .createOrUpdateAtScope(
+ "providers/Microsoft.Management/managementGroups/my-management-group-id",
+ "my-deployment",
+ new Deployment()
+ .withLocation("eastus")
+ .withProperties(
+ new DeploymentProperties()
+ .withTemplateLink(new TemplateLink().withUri("https://example.com/exampleTemplate.json"))
+ .withParameters(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))
+ .withMode(DeploymentMode.INCREMENTAL))
+ .withTags(mapOf("tagKey1", "tag-value-1", "tagKey2", "tag-value-2")),
+ Context.NONE);
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Deployments_CreateOrUpdateAtSubscriptionScope
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.resources.generated.models.Deployment;
+import com.azure.resourcemanager.resources.generated.models.DeploymentMode;
+import com.azure.resourcemanager.resources.generated.models.DeploymentProperties;
+import com.azure.resourcemanager.resources.generated.models.TemplateLink;
+import java.io.IOException;
+
+/** Samples for Deployments CreateOrUpdateAtSubscriptionScope. */
+public final class DeploymentsCreateOrUpdateAtSubscriptionScopeSamples {
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PutDeploymentSubscriptionTemplateSpecsWithId.json
+ */
+ /**
+ * Sample code: Create a deployment that will deploy a templateSpec with the given resourceId.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void createADeploymentThatWillDeployATemplateSpecWithTheGivenResourceId(
+ com.azure.resourcemanager.resources.generated.ResourceManager manager) throws IOException {
+ manager
+ .deployments()
+ .createOrUpdateAtSubscriptionScope(
+ "my-deployment",
+ new Deployment()
+ .withLocation("eastus")
+ .withProperties(
+ new DeploymentProperties()
+ .withTemplateLink(
+ new TemplateLink()
+ .withId(
+ "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1"))
+ .withParameters(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))
+ .withMode(DeploymentMode.INCREMENTAL)),
+ Context.NONE);
+ }
+}
+```
+
+### Deployments_CreateOrUpdateAtTenantScope
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.resources.generated.models.DeploymentMode;
+import com.azure.resourcemanager.resources.generated.models.DeploymentProperties;
+import com.azure.resourcemanager.resources.generated.models.ScopedDeployment;
+import com.azure.resourcemanager.resources.generated.models.TemplateLink;
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Deployments CreateOrUpdateAtTenantScope. */
+public final class DeploymentsCreateOrUpdateAtTenantScopeSamples {
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PutDeploymentAtTenant.json
+ */
+ /**
+ * Sample code: Create deployment at tenant scope.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void createDeploymentAtTenantScope(
+ com.azure.resourcemanager.resources.generated.ResourceManager manager) throws IOException {
+ manager
+ .deployments()
+ .createOrUpdateAtTenantScope(
+ "tenant-dep01",
+ new ScopedDeployment()
+ .withLocation("eastus")
+ .withProperties(
+ new DeploymentProperties()
+ .withTemplateLink(new TemplateLink().withUri("https://example.com/exampleTemplate.json"))
+ .withParameters(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))
+ .withMode(DeploymentMode.INCREMENTAL))
+ .withTags(mapOf("tagKey1", "tag-value-1", "tagKey2", "tag-value-2")),
+ Context.NONE);
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Deployments_WhatIf
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.resources.generated.models.DeploymentMode;
+import com.azure.resourcemanager.resources.generated.models.DeploymentWhatIf;
+import com.azure.resourcemanager.resources.generated.models.DeploymentWhatIfProperties;
+import com.azure.resourcemanager.resources.generated.models.TemplateLink;
+import java.io.IOException;
+
+/** Samples for Deployments WhatIf. */
+public final class DeploymentsWhatIfSamples {
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PostDeploymentWhatIfOnResourceGroup.json
+ */
+ /**
+ * Sample code: Predict template changes at resource group scope.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void predictTemplateChangesAtResourceGroupScope(
+ com.azure.resourcemanager.resources.generated.ResourceManager manager) throws IOException {
+ manager
+ .deployments()
+ .whatIf(
+ "my-resource-group",
+ "my-deployment",
+ new DeploymentWhatIf()
+ .withProperties(
+ new DeploymentWhatIfProperties()
+ .withTemplateLink(new TemplateLink())
+ .withParameters(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))
+ .withMode(DeploymentMode.INCREMENTAL)),
+ Context.NONE);
+ }
+}
+```
+
+### Deployments_WhatIfAtManagementGroupScope
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.resources.generated.models.DeploymentMode;
+import com.azure.resourcemanager.resources.generated.models.DeploymentWhatIfProperties;
+import com.azure.resourcemanager.resources.generated.models.ScopedDeploymentWhatIf;
+import com.azure.resourcemanager.resources.generated.models.TemplateLink;
+import java.io.IOException;
+
+/** Samples for Deployments WhatIfAtManagementGroupScope. */
+public final class DeploymentsWhatIfAtManagementGroupScopeSamples {
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PostDeploymentWhatIfOnManagementGroup.json
+ */
+ /**
+ * Sample code: Predict template changes at management group scope.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void predictTemplateChangesAtManagementGroupScope(
+ com.azure.resourcemanager.resources.generated.ResourceManager manager) throws IOException {
+ manager
+ .deployments()
+ .whatIfAtManagementGroupScope(
+ "myManagementGruop",
+ "exampleDeploymentName",
+ new ScopedDeploymentWhatIf()
+ .withLocation("eastus")
+ .withProperties(
+ new DeploymentWhatIfProperties()
+ .withTemplateLink(new TemplateLink())
+ .withParameters(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))
+ .withMode(DeploymentMode.INCREMENTAL)),
+ Context.NONE);
+ }
+}
+```
+
+### Deployments_WhatIfAtSubscriptionScope
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.resources.generated.models.DeploymentMode;
+import com.azure.resourcemanager.resources.generated.models.DeploymentWhatIf;
+import com.azure.resourcemanager.resources.generated.models.DeploymentWhatIfProperties;
+import com.azure.resourcemanager.resources.generated.models.TemplateLink;
+import java.io.IOException;
+
+/** Samples for Deployments WhatIfAtSubscriptionScope. */
+public final class DeploymentsWhatIfAtSubscriptionScopeSamples {
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PostDeploymentWhatIfOnSubscription.json
+ */
+ /**
+ * Sample code: Predict template changes at subscription scope.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void predictTemplateChangesAtSubscriptionScope(
+ com.azure.resourcemanager.resources.generated.ResourceManager manager) throws IOException {
+ manager
+ .deployments()
+ .whatIfAtSubscriptionScope(
+ "my-deployment",
+ new DeploymentWhatIf()
+ .withLocation("westus")
+ .withProperties(
+ new DeploymentWhatIfProperties()
+ .withTemplateLink(new TemplateLink())
+ .withParameters(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))
+ .withMode(DeploymentMode.INCREMENTAL)),
+ Context.NONE);
+ }
+}
+```
+
+### Deployments_WhatIfAtTenantScope
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.resources.generated.models.DeploymentMode;
+import com.azure.resourcemanager.resources.generated.models.DeploymentWhatIfProperties;
+import com.azure.resourcemanager.resources.generated.models.ScopedDeploymentWhatIf;
+import com.azure.resourcemanager.resources.generated.models.TemplateLink;
+import java.io.IOException;
+
+/** Samples for Deployments WhatIfAtTenantScope. */
+public final class DeploymentsWhatIfAtTenantScopeSamples {
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PostDeploymentWhatIfOnTenant.json
+ */
+ /**
+ * Sample code: Predict template changes at management group scope.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void predictTemplateChangesAtManagementGroupScope(
+ com.azure.resourcemanager.resources.generated.ResourceManager manager) throws IOException {
+ manager
+ .deployments()
+ .whatIfAtTenantScope(
+ "exampleDeploymentName",
+ new ScopedDeploymentWhatIf()
+ .withLocation("eastus")
+ .withProperties(
+ new DeploymentWhatIfProperties()
+ .withTemplateLink(new TemplateLink())
+ .withParameters(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))
+ .withMode(DeploymentMode.INCREMENTAL)),
+ Context.NONE);
+ }
+}
+```
+
+### ProviderResourceTypes_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ProviderResourceTypes List. */
+public final class ProviderResourceTypesListSamples {
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/GetProviderResourceTypes.json
+ */
+ /**
+ * Sample code: Get provider resource types.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void getProviderResourceTypes(com.azure.resourcemanager.resources.generated.ResourceManager manager) {
+ manager.providerResourceTypes().listWithResponse("Microsoft.TestRP", null, Context.NONE);
+ }
+}
+```
+
+### Providers_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Providers Get. */
+public final class ProvidersGetSamples {
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/GetProvider.json
+ */
+ /**
+ * Sample code: Get provider.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void getProvider(com.azure.resourcemanager.resources.generated.ResourceManager manager) {
+ manager.providers().getWithResponse("Microsoft.TestRP1", null, Context.NONE);
+ }
+}
+```
+
+### Providers_GetAtTenantScope
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Providers GetAtTenantScope. */
+public final class ProvidersGetAtTenantScopeSamples {
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/GetNamedProviderAtTenant.json
+ */
+ /**
+ * Sample code: Get a resource provider at tenant scope.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void getAResourceProviderAtTenantScope(
+ com.azure.resourcemanager.resources.generated.ResourceManager manager) {
+ manager.providers().getAtTenantScopeWithResponse("Microsoft.Storage", "resourceTypes/aliases", Context.NONE);
+ }
+}
+```
+
+### Providers_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Providers List. */
+public final class ProvidersListSamples {
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/GetProviders.json
+ */
+ /**
+ * Sample code: Get providers.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void getProviders(com.azure.resourcemanager.resources.generated.ResourceManager manager) {
+ manager.providers().list(null, Context.NONE);
+ }
+}
+```
+
+### Providers_ProviderPermissions
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Providers ProviderPermissions. */
+public final class ProvidersProviderPermissionsSamples {
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/GetProviderPermissions.json
+ */
+ /**
+ * Sample code: Get provider resource types.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void getProviderResourceTypes(com.azure.resourcemanager.resources.generated.ResourceManager manager) {
+ manager.providers().providerPermissionsWithResponse("Microsoft.TestRP", Context.NONE);
+ }
+}
+```
+
+### ResourceGroups_CreateOrUpdate
+
+```java
+/** Samples for ResourceGroups CreateOrUpdate. */
+public final class ResourceGroupsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/CreateResourceGroup.json
+ */
+ /**
+ * Sample code: Create or update a resource group.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void createOrUpdateAResourceGroup(
+ com.azure.resourcemanager.resources.generated.ResourceManager manager) {
+ manager.resourceGroups().define("my-resource-group").withRegion("eastus").create();
+ }
+}
+```
+
+### ResourceGroups_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ResourceGroups Delete. */
+public final class ResourceGroupsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/ForceDeleteVMsInResourceGroup.json
+ */
+ /**
+ * Sample code: Force delete all the Virtual Machines in a resource group.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void forceDeleteAllTheVirtualMachinesInAResourceGroup(
+ com.azure.resourcemanager.resources.generated.ResourceManager manager) {
+ manager.resourceGroups().delete("my-resource-group", "Microsoft.Compute/virtualMachines", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/ForceDeleteVMsAndVMSSInResourceGroup.json
+ */
+ /**
+ * Sample code: Force delete all the Virtual Machines and Virtual Machine Scale Sets in a resource group.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void forceDeleteAllTheVirtualMachinesAndVirtualMachineScaleSetsInAResourceGroup(
+ com.azure.resourcemanager.resources.generated.ResourceManager manager) {
+ manager
+ .resourceGroups()
+ .delete(
+ "my-resource-group",
+ "Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets",
+ Context.NONE);
+ }
+}
+```
+
+### ResourceGroups_ExportTemplate
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.resources.generated.models.ExportTemplateRequest;
+import java.util.Arrays;
+
+/** Samples for ResourceGroups ExportTemplate. */
+public final class ResourceGroupsExportTemplateSamples {
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/ExportResourceGroup.json
+ */
+ /**
+ * Sample code: Export a resource group.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void exportAResourceGroup(com.azure.resourcemanager.resources.generated.ResourceManager manager) {
+ manager
+ .resourceGroups()
+ .exportTemplate(
+ "my-resource-group",
+ new ExportTemplateRequest()
+ .withResources(Arrays.asList("*"))
+ .withOptions("IncludeParameterDefaultValue,IncludeComments"),
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/ExportResourceGroupWithFiltering.json
+ */
+ /**
+ * Sample code: Export a resource group with filtering.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void exportAResourceGroupWithFiltering(
+ com.azure.resourcemanager.resources.generated.ResourceManager manager) {
+ manager
+ .resourceGroups()
+ .exportTemplate(
+ "my-resource-group",
+ new ExportTemplateRequest()
+ .withResources(
+ Arrays
+ .asList(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/My.RP/myResourceType/myFirstResource"))
+ .withOptions("SkipResourceNameParameterization"),
+ Context.NONE);
+ }
+}
+```
+
+### TagOperations_CreateOrUpdateAtScope
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.resources.generated.fluent.models.TagsResourceInner;
+import com.azure.resourcemanager.resources.generated.models.Tags;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for TagOperations CreateOrUpdateAtScope. */
+public final class TagOperationsCreateOrUpdateAtScopeSamples {
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PutTagsResource.json
+ */
+ /**
+ * Sample code: Update tags on a resource.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void updateTagsOnAResource(com.azure.resourcemanager.resources.generated.ResourceManager manager) {
+ manager
+ .tagOperations()
+ .createOrUpdateAtScopeWithResponse(
+ "subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/myPRNameSpace/VM/myVm",
+ new TagsResourceInner()
+ .withProperties(new Tags().withTags(mapOf("tagKey1", "tag-value-1", "tagKey2", "tag-value-2"))),
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PutTagsSubscription.json
+ */
+ /**
+ * Sample code: Update tags on a subscription.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void updateTagsOnASubscription(
+ com.azure.resourcemanager.resources.generated.ResourceManager manager) {
+ manager
+ .tagOperations()
+ .createOrUpdateAtScopeWithResponse(
+ "subscriptions/00000000-0000-0000-0000-000000000000",
+ new TagsResourceInner()
+ .withProperties(new Tags().withTags(mapOf("tagKey1", "tag-value-1", "tagKey2", "tag-value-2"))),
+ Context.NONE);
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### TagOperations_GetAtScope
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for TagOperations GetAtScope. */
+public final class TagOperationsGetAtScopeSamples {
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/GetTagsResource.json
+ */
+ /**
+ * Sample code: Get tags on a resource.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void getTagsOnAResource(com.azure.resourcemanager.resources.generated.ResourceManager manager) {
+ manager
+ .tagOperations()
+ .getAtScopeWithResponse(
+ "subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/myPRNameSpace/VM/myVm",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/GetTagsSubscription.json
+ */
+ /**
+ * Sample code: Get tags on a subscription.
+ *
+ * @param manager Entry point to ResourceManager.
+ */
+ public static void getTagsOnASubscription(com.azure.resourcemanager.resources.generated.ResourceManager manager) {
+ manager
+ .tagOperations()
+ .getAtScopeWithResponse("subscriptions/00000000-0000-0000-0000-000000000000", Context.NONE);
+ }
+}
+```
+
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..f5c8ab82e4eca
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/pom.xml
@@ -0,0 +1,55 @@
+
+ 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
+ true
+
+
+
+ com.azure
+ azure-core
+ 1.25.0
+
+
+ com.azure
+ azure-core-management
+ 1.5.2
+
+
+
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..0c96f5b39eb20
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/ResourceManager.java
@@ -0,0 +1,326 @@
+// 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.HttpPipelinePosition;
+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;
+import java.util.stream.Collectors;
+
+/** 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());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline =
+ new HttpPipelineBuilder()
+ .httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new ResourceManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /** @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..7c82112054113
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/DeploymentOperationsClient.java
@@ -0,0 +1,301 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.resources.generated.fluent.models.DeploymentOperationInner;
+
+/** An instance of this class provides access to all the operations defined in DeploymentOperationsClient. */
+public interface DeploymentOperationsClient {
+ /**
+ * Gets a deployments operation.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployments operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentOperationInner getAtScope(String scope, String deploymentName, String operationId);
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployments operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAtScopeWithResponse(
+ String scope, String deploymentName, String operationId, Context context);
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all deployments operations for a deployment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtScope(String scope, String deploymentName);
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param top The number of results to return.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all deployments operations for a deployment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtScope(
+ String scope, String deploymentName, Integer top, Context context);
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployments operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentOperationInner getAtTenantScope(String deploymentName, String operationId);
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployments operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAtTenantScopeWithResponse(
+ String deploymentName, String operationId, Context context);
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all deployments operations for a deployment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtTenantScope(String deploymentName);
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param top The number of results to return.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all deployments operations for a deployment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtTenantScope(String deploymentName, Integer top, Context context);
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployments operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentOperationInner getAtManagementGroupScope(String groupId, String deploymentName, String operationId);
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployments operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAtManagementGroupScopeWithResponse(
+ String groupId, String deploymentName, String operationId, Context context);
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all deployments operations for a deployment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtManagementGroupScope(String groupId, String deploymentName);
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param top The number of results to return.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all deployments operations for a deployment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtManagementGroupScope(
+ String groupId, String deploymentName, Integer top, Context context);
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployments operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentOperationInner getAtSubscriptionScope(String deploymentName, String operationId);
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployments operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAtSubscriptionScopeWithResponse(
+ String deploymentName, String operationId, Context context);
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all deployments operations for a deployment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtSubscriptionScope(String deploymentName);
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param top The number of results to return.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all deployments operations for a deployment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtSubscriptionScope(
+ String deploymentName, Integer top, Context context);
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployments operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentOperationInner get(String resourceGroupName, String deploymentName, String operationId);
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployments operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String deploymentName, String operationId, Context context);
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all deployments operations for a deployment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, String deploymentName);
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param top The number of results to return.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all deployments operations for a deployment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(
+ String resourceGroupName, String deploymentName, Integer top, Context context);
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/DeploymentsClient.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/DeploymentsClient.java
new file mode 100644
index 0000000000000..c0077904de33a
--- /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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 whether resource exists along with {@link 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 the {@link SyncPoller} for polling of deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 the {@link SyncPoller} for polling of deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentExtendedInner> beginCreateOrUpdateAtScope(
+ String scope, String deploymentName, Deployment parameters, Context context);
+
+ /**
+ * 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 along with {@link Response}.
+ */
+ @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 {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response cancelAtScopeWithResponse(String scope, String deploymentName, Context context);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentValidateResultInner> beginValidateAtScope(
+ String scope, String deploymentName, Deployment parameters);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentValidateResultInner> beginValidateAtScope(
+ String scope, String deploymentName, Deployment parameters, Context context);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentValidateResultInner validateAtScope(String scope, String deploymentName, Deployment parameters);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentValidateResultInner validateAtScope(
+ String scope, String deploymentName, Deployment parameters, Context context);
+
+ /**
+ * Exports the template used for specified deployment.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the deployment export result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExportResultInner exportTemplateAtScope(String scope, String deploymentName);
+
+ /**
+ * Exports the template used for specified deployment.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the deployment export result along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response exportTemplateAtScopeWithResponse(
+ String scope, String deploymentName, Context context);
+
+ /**
+ * Get all the deployments at the given scope.
+ *
+ * @param scope The resource scope.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the deployments at the given scope as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtScope(String scope);
+
+ /**
+ * Get all the deployments at the given scope.
+ *
+ * @param scope The resource scope.
+ * @param filter The filter to apply on the operation. For example, you can use $filter=provisioningState eq
+ * '{state}'.
+ * @param top The number of results to get. If null is passed, returns all deployments.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the deployments at the given scope as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtScope(String scope, String filter, Integer top, Context context);
+
+ /**
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. This is an asynchronous operation that returns a status of 202 until the
+ * template deployment is successfully deleted. The Location response header contains the URI that is used to obtain
+ * the status of the process. While the process is running, a call to the URI in the Location header returns a
+ * status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If
+ * the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteAtTenantScope(String deploymentName);
+
+ /**
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. This is an asynchronous operation that returns a status of 202 until the
+ * template deployment is successfully deleted. The Location response header contains the URI that is used to obtain
+ * the status of the process. While the process is running, a call to the URI in the Location header returns a
+ * status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If
+ * the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteAtTenantScope(String deploymentName, Context context);
+
+ /**
+ * 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 whether resource exists along with {@link 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 the {@link SyncPoller} for polling of deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 the {@link SyncPoller} for polling of deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 along with {@link Response}.
+ */
+ @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 {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response cancelAtTenantScopeWithResponse(String deploymentName, Context context);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentValidateResultInner> beginValidateAtTenantScope(
+ String deploymentName, ScopedDeployment parameters);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentValidateResultInner> beginValidateAtTenantScope(
+ String deploymentName, ScopedDeployment parameters, Context context);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentValidateResultInner validateAtTenantScope(String deploymentName, ScopedDeployment parameters);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentValidateResultInner validateAtTenantScope(
+ String deploymentName, ScopedDeployment parameters, Context context);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the tenant group.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WhatIfOperationResultInner> beginWhatIfAtTenantScope(
+ String deploymentName, ScopedDeploymentWhatIf parameters);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the tenant group.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WhatIfOperationResultInner> beginWhatIfAtTenantScope(
+ String deploymentName, ScopedDeploymentWhatIf parameters, Context context);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the tenant group.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WhatIfOperationResultInner whatIfAtTenantScope(String deploymentName, ScopedDeploymentWhatIf parameters);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the tenant group.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WhatIfOperationResultInner whatIfAtTenantScope(
+ String deploymentName, ScopedDeploymentWhatIf parameters, Context context);
+
+ /**
+ * Exports the template used for specified deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the deployment export result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExportResultInner exportTemplateAtTenantScope(String deploymentName);
+
+ /**
+ * Exports the template used for specified deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the deployment export result along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response exportTemplateAtTenantScopeWithResponse(
+ String deploymentName, Context context);
+
+ /**
+ * Get all the deployments at the tenant scope.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the deployments at the tenant scope as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtTenantScope();
+
+ /**
+ * Get all the deployments at the tenant scope.
+ *
+ * @param filter The filter to apply on the operation. For example, you can use $filter=provisioningState eq
+ * '{state}'.
+ * @param top The number of results to get. If null is passed, returns all deployments.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the deployments at the tenant scope as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtTenantScope(String filter, Integer top, Context context);
+
+ /**
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. This is an asynchronous operation that returns a status of 202 until the
+ * template deployment is successfully deleted. The Location response header contains the URI that is used to obtain
+ * the status of the process. While the process is running, a call to the URI in the Location header returns a
+ * status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If
+ * the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteAtManagementGroupScope(String groupId, String deploymentName);
+
+ /**
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. This is an asynchronous operation that returns a status of 202 until the
+ * template deployment is successfully deleted. The Location response header contains the URI that is used to obtain
+ * the status of the process. While the process is running, a call to the URI in the Location header returns a
+ * status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If
+ * the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteAtManagementGroupScope(
+ String groupId, String deploymentName, Context context);
+
+ /**
+ * 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 whether resource exists along with {@link 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 the {@link SyncPoller} for polling of deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 the {@link SyncPoller} for polling of deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentExtendedInner> beginCreateOrUpdateAtManagementGroupScope(
+ String groupId, String deploymentName, ScopedDeployment parameters, Context context);
+
+ /**
+ * 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 along with {@link Response}.
+ */
+ @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 {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response cancelAtManagementGroupScopeWithResponse(String groupId, String deploymentName, Context context);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentValidateResultInner>
+ beginValidateAtManagementGroupScope(String groupId, String deploymentName, ScopedDeployment parameters);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentValidateResultInner>
+ beginValidateAtManagementGroupScope(
+ String groupId, String deploymentName, ScopedDeployment parameters, Context context);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentValidateResultInner validateAtManagementGroupScope(
+ String groupId, String deploymentName, ScopedDeployment parameters);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentValidateResultInner validateAtManagementGroupScope(
+ String groupId, String deploymentName, ScopedDeployment parameters, Context context);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the management group.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WhatIfOperationResultInner> beginWhatIfAtManagementGroupScope(
+ String groupId, String deploymentName, ScopedDeploymentWhatIf parameters);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the management group.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WhatIfOperationResultInner> beginWhatIfAtManagementGroupScope(
+ String groupId, String deploymentName, ScopedDeploymentWhatIf parameters, Context context);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the management group.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WhatIfOperationResultInner whatIfAtManagementGroupScope(
+ String groupId, String deploymentName, ScopedDeploymentWhatIf parameters);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the management group.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WhatIfOperationResultInner whatIfAtManagementGroupScope(
+ String groupId, String deploymentName, ScopedDeploymentWhatIf parameters, Context context);
+
+ /**
+ * Exports the template used for specified deployment.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the deployment export result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExportResultInner exportTemplateAtManagementGroupScope(String groupId, String deploymentName);
+
+ /**
+ * Exports the template used for specified deployment.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the deployment export result along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response exportTemplateAtManagementGroupScopeWithResponse(
+ String groupId, String deploymentName, Context context);
+
+ /**
+ * Get all the deployments for a management group.
+ *
+ * @param groupId The management group ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the deployments for a management group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtManagementGroupScope(String groupId);
+
+ /**
+ * Get all the deployments for a management group.
+ *
+ * @param groupId The management group ID.
+ * @param filter The filter to apply on the operation. For example, you can use $filter=provisioningState eq
+ * '{state}'.
+ * @param top The number of results to get. If null is passed, returns all deployments.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the deployments for a management group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtManagementGroupScope(
+ String groupId, String filter, Integer top, Context context);
+
+ /**
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. This is an asynchronous operation that returns a status of 202 until the
+ * template deployment is successfully deleted. The Location response header contains the URI that is used to obtain
+ * the status of the process. While the process is running, a call to the URI in the Location header returns a
+ * status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If
+ * the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteAtSubscriptionScope(String deploymentName);
+
+ /**
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. This is an asynchronous operation that returns a status of 202 until the
+ * template deployment is successfully deleted. The Location response header contains the URI that is used to obtain
+ * the status of the process. While the process is running, a call to the URI in the Location header returns a
+ * status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If
+ * the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteAtSubscriptionScope(String deploymentName, Context context);
+
+ /**
+ * 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 whether resource exists along with {@link 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 the {@link SyncPoller} for polling of deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 the {@link SyncPoller} for polling of deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 along with {@link Response}.
+ */
+ @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 {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response cancelAtSubscriptionScopeWithResponse(String deploymentName, Context context);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentValidateResultInner>
+ beginValidateAtSubscriptionScope(String deploymentName, Deployment parameters);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentValidateResultInner>
+ beginValidateAtSubscriptionScope(String deploymentName, Deployment parameters, Context context);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentValidateResultInner validateAtSubscriptionScope(String deploymentName, Deployment parameters);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentValidateResultInner validateAtSubscriptionScope(
+ String deploymentName, Deployment parameters, Context context);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the subscription.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to What If.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WhatIfOperationResultInner> beginWhatIfAtSubscriptionScope(
+ String deploymentName, DeploymentWhatIf parameters);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the subscription.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to What If.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WhatIfOperationResultInner> beginWhatIfAtSubscriptionScope(
+ String deploymentName, DeploymentWhatIf parameters, Context context);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the subscription.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to What If.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WhatIfOperationResultInner whatIfAtSubscriptionScope(String deploymentName, DeploymentWhatIf parameters);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the subscription.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to What If.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WhatIfOperationResultInner whatIfAtSubscriptionScope(
+ String deploymentName, DeploymentWhatIf parameters, Context context);
+
+ /**
+ * Exports the template used for specified deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the deployment export result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExportResultInner exportTemplateAtSubscriptionScope(String deploymentName);
+
+ /**
+ * Exports the template used for specified deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the deployment export result along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response exportTemplateAtSubscriptionScopeWithResponse(
+ String deploymentName, Context context);
+
+ /**
+ * Get all the deployments for a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the deployments for a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Get all the deployments for a subscription.
+ *
+ * @param filter The filter to apply on the operation. For example, you can use $filter=provisioningState eq
+ * '{state}'.
+ * @param top The number of results to get. If null is passed, returns all deployments.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the deployments for a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String filter, Integer top, Context context);
+
+ /**
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. Deleting a template deployment does not affect the state of the resource group.
+ * This is an asynchronous operation that returns a status of 202 until the template deployment is successfully
+ * deleted. The Location response header contains the URI that is used to obtain the status of the process. While
+ * the process is running, a call to the URI in the Location header returns a status of 202. When the process
+ * finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed,
+ * the URI in the Location header returns an error-level status code.
+ *
+ * @param resourceGroupName The name of the resource group with the deployment to delete. The name is case
+ * insensitive.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String deploymentName);
+
+ /**
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the
+ * associated deployment operations. Deleting a template deployment does not affect the state of the resource group.
+ * This is an asynchronous operation that returns a status of 202 until the template deployment is successfully
+ * deleted. The Location response header contains the URI that is used to obtain the status of the process. While
+ * the process is running, a call to the URI in the Location header returns a status of 202. When the process
+ * finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed,
+ * the URI in the Location header returns an error-level status code.
+ *
+ * @param resourceGroupName The name of the resource group with the deployment to delete. The name is case
+ * insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String deploymentName, Context context);
+
+ /**
+ * 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 whether resource exists along with {@link 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 the {@link SyncPoller} for polling of deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 the {@link SyncPoller} for polling of deployment information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentExtendedInner> beginCreateOrUpdate(
+ String resourceGroupName, String deploymentName, Deployment parameters, Context context);
+
+ /**
+ * 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 along with {@link Response}.
+ */
+ @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 {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response cancelWithResponse(String resourceGroupName, String deploymentName, Context context);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param resourceGroupName The name of the resource group the template will be deployed to. The name is case
+ * insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentValidateResultInner> beginValidate(
+ String resourceGroupName, String deploymentName, Deployment parameters);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param resourceGroupName The name of the resource group the template will be deployed to. The name is case
+ * insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentValidateResultInner> beginValidate(
+ String resourceGroupName, String deploymentName, Deployment parameters, Context context);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param resourceGroupName The name of the resource group the template will be deployed to. The name is case
+ * insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentValidateResultInner validate(String resourceGroupName, String deploymentName, Deployment parameters);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource
+ * Manager..
+ *
+ * @param resourceGroupName The name of the resource group the template will be deployed to. The name is case
+ * insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information from validate template deployment response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentValidateResultInner validate(
+ String resourceGroupName, String deploymentName, Deployment parameters, Context context);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the resource group.
+ *
+ * @param resourceGroupName The name of the resource group the template will be deployed to. The name is case
+ * insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WhatIfOperationResultInner> beginWhatIf(
+ String resourceGroupName, String deploymentName, DeploymentWhatIf parameters);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the resource group.
+ *
+ * @param resourceGroupName The name of the resource group the template will be deployed to. The name is case
+ * insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WhatIfOperationResultInner> beginWhatIf(
+ String resourceGroupName, String deploymentName, DeploymentWhatIf parameters, Context context);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the resource group.
+ *
+ * @param resourceGroupName The name of the resource group the template will be deployed to. The name is case
+ * insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WhatIfOperationResultInner whatIf(String resourceGroupName, String deploymentName, DeploymentWhatIf parameters);
+
+ /**
+ * Returns changes that will be made by the deployment if executed at the scope of the resource group.
+ *
+ * @param resourceGroupName The name of the resource group the template will be deployed to. The name is case
+ * insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the What-If operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WhatIfOperationResultInner whatIf(
+ String resourceGroupName, String deploymentName, DeploymentWhatIf parameters, Context context);
+
+ /**
+ * Exports the template used for specified deployment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the deployment export result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentExportResultInner exportTemplate(String resourceGroupName, String deploymentName);
+
+ /**
+ * Exports the template used for specified deployment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the deployment export result along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response exportTemplateWithResponse(
+ String resourceGroupName, String deploymentName, Context context);
+
+ /**
+ * Get all the deployments for a resource group.
+ *
+ * @param resourceGroupName The name of the resource group with the deployments to get. The name is case
+ * insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the deployments for a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Get all the deployments for a resource group.
+ *
+ * @param resourceGroupName The name of the resource group with the deployments to get. The name is case
+ * insensitive.
+ * @param filter The filter to apply on the operation. For example, you can use $filter=provisioningState eq
+ * '{state}'.
+ * @param top The number of results to get. If null is passed, returns all deployments.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the deployments for a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(
+ String resourceGroupName, String filter, Integer top, Context context);
+
+ /**
+ * Calculate the hash of the given template.
+ *
+ * @param template The template provided to calculate hash.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to calculate template hash.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TemplateHashResultInner calculateTemplateHash(Object template);
+
+ /**
+ * Calculate the hash of the given template.
+ *
+ * @param template The template provided to calculate hash.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to calculate template hash along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response calculateTemplateHashWithResponse(Object template, Context context);
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/OperationsClient.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/OperationsClient.java
new file mode 100644
index 0000000000000..b6e3e25ecb2b0
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/OperationsClient.java
@@ -0,0 +1,38 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.resources.generated.fluent.models.OperationInner;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public interface OperationsClient {
+ /**
+ * Lists all of the available Microsoft.Resources REST API operations.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list Microsoft.Resources operations as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all of the available Microsoft.Resources REST API operations.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list Microsoft.Resources operations as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ProviderResourceTypesClient.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ProviderResourceTypesClient.java
new file mode 100644
index 0000000000000..7038bc2c88d4a
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ProviderResourceTypesClient.java
@@ -0,0 +1,42 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.resources.generated.fluent.models.ProviderResourceTypeListResultInner;
+
+/** An instance of this class provides access to all the operations defined in ProviderResourceTypesClient. */
+public interface ProviderResourceTypesClient {
+ /**
+ * List the resource types for a specified resource provider.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of resource types of a resource provider.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ProviderResourceTypeListResultInner list(String resourceProviderNamespace);
+
+ /**
+ * List the resource types for a specified resource provider.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param expand The $expand query parameter. For example, to include property aliases in response, use
+ * $expand=resourceTypes/aliases.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of resource types of a resource provider along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(
+ String resourceProviderNamespace, String expand, Context context);
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ProvidersClient.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ProvidersClient.java
new file mode 100644
index 0000000000000..60b8906d219e1
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ProvidersClient.java
@@ -0,0 +1,227 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.resources.generated.fluent.models.ProviderInner;
+import com.azure.resourcemanager.resources.generated.fluent.models.ProviderPermissionListResultInner;
+import com.azure.resourcemanager.resources.generated.models.ProviderRegistrationRequest;
+
+/** An instance of this class provides access to all the operations defined in ProvidersClient. */
+public interface ProvidersClient {
+ /**
+ * Unregisters a subscription from a resource provider.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider to unregister.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource provider information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ProviderInner unregister(String resourceProviderNamespace);
+
+ /**
+ * Unregisters a subscription from a resource provider.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider to unregister.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource provider information along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response unregisterWithResponse(String resourceProviderNamespace, Context context);
+
+ /**
+ * Registers a management group with a resource provider.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider to register.
+ * @param groupId The management group ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void registerAtManagementGroupScope(String resourceProviderNamespace, String groupId);
+
+ /**
+ * Registers a management group with a resource provider.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider to register.
+ * @param groupId The management group ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response registerAtManagementGroupScopeWithResponse(
+ String resourceProviderNamespace, String groupId, Context context);
+
+ /**
+ * Get the provider permissions.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the provider permissions.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ProviderPermissionListResultInner providerPermissions(String resourceProviderNamespace);
+
+ /**
+ * Get the provider permissions.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the provider permissions along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response providerPermissionsWithResponse(
+ String resourceProviderNamespace, Context context);
+
+ /**
+ * Registers a subscription with a resource provider.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider to register.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource provider information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ProviderInner register(String resourceProviderNamespace);
+
+ /**
+ * Registers a subscription with a resource provider.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider to register.
+ * @param properties The third party consent for S2S.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource provider information along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response registerWithResponse(
+ String resourceProviderNamespace, ProviderRegistrationRequest properties, Context context);
+
+ /**
+ * Gets all resource providers for a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all resource providers for a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Gets all resource providers for a subscription.
+ *
+ * @param expand The properties to include in the results. For example, use &$expand=metadata in the query
+ * string to retrieve resource provider metadata. To include property aliases in response, use
+ * $expand=resourceTypes/aliases.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all resource providers for a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String expand, Context context);
+
+ /**
+ * Gets all resource providers for the tenant.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all resource providers for the tenant as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtTenantScope();
+
+ /**
+ * Gets all resource providers for the tenant.
+ *
+ * @param expand The properties to include in the results. For example, use &$expand=metadata in the query
+ * string to retrieve resource provider metadata. To include property aliases in response, use
+ * $expand=resourceTypes/aliases.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all resource providers for the tenant as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtTenantScope(String expand, Context context);
+
+ /**
+ * Gets the specified resource provider.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified resource provider.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ProviderInner get(String resourceProviderNamespace);
+
+ /**
+ * Gets the specified resource provider.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param expand The $expand query parameter. For example, to include property aliases in response, use
+ * $expand=resourceTypes/aliases.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified resource provider along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceProviderNamespace, String expand, Context context);
+
+ /**
+ * Gets the specified resource provider at the tenant level.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified resource provider at the tenant level.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ProviderInner getAtTenantScope(String resourceProviderNamespace);
+
+ /**
+ * Gets the specified resource provider at the tenant level.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param expand The $expand query parameter. For example, to include property aliases in response, use
+ * $expand=resourceTypes/aliases.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified resource provider at the tenant level along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAtTenantScopeWithResponse(
+ String resourceProviderNamespace, String expand, Context context);
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ResourceGroupsClient.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ResourceGroupsClient.java
new file mode 100644
index 0000000000000..2d4d46c923326
--- /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 whether resource exists along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkExistenceWithResponse(String resourceGroupName, Context context);
+
+ /**
+ * Creates or updates a resource group.
+ *
+ * @param resourceGroupName The name of the resource group to create or update. Can include alphanumeric,
+ * underscore, parentheses, hyphen, period (except at end), and Unicode characters that match the allowed
+ * characters.
+ * @param parameters Parameters supplied to the create or update a resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource group information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ResourceGroupInner createOrUpdate(String resourceGroupName, ResourceGroupInner parameters);
+
+ /**
+ * Creates or updates a resource group.
+ *
+ * @param resourceGroupName The name of the resource group to create or update. Can include alphanumeric,
+ * underscore, parentheses, hyphen, period (except at end), and Unicode characters that match the allowed
+ * characters.
+ * @param parameters Parameters supplied to the create or update a resource group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource group information along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, ResourceGroupInner parameters, Context context);
+
+ /**
+ * When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of
+ * its template deployments and currently stored operations.
+ *
+ * @param resourceGroupName The name of the resource group to delete. The name is case insensitive.
+ * @param forceDeletionTypes The resource types you want to force delete. Currently, only the following is
+ * supported: forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String forceDeletionTypes);
+
+ /**
+ * When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of
+ * its template deployments and currently stored operations.
+ *
+ * @param resourceGroupName The name of the resource group to delete. The name is case insensitive.
+ * @param forceDeletionTypes The resource types you want to force delete. Currently, only the following is
+ * supported: forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String forceDeletionTypes, Context context);
+
+ /**
+ * 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 along with {@link Response}.
+ */
+ @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 along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, ResourceGroupPatchable parameters, Context context);
+
+ /**
+ * Captures the specified resource group as a template.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters Parameters for exporting the template.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of resource group export result.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ResourceGroupExportResultInner> beginExportTemplate(
+ String resourceGroupName, ExportTemplateRequest parameters);
+
+ /**
+ * Captures the specified resource group as a template.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters Parameters for exporting the template.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of resource group export result.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ResourceGroupExportResultInner> beginExportTemplate(
+ String resourceGroupName, ExportTemplateRequest parameters, Context context);
+
+ /**
+ * Captures the specified resource group as a template.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters Parameters for exporting the template.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource group export result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ResourceGroupExportResultInner exportTemplate(String resourceGroupName, ExportTemplateRequest parameters);
+
+ /**
+ * Captures the specified resource group as a template.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters Parameters for exporting the template.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource group export result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ResourceGroupExportResultInner exportTemplate(
+ String resourceGroupName, ExportTemplateRequest parameters, Context context);
+
+ /**
+ * Gets all the resource groups for a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the resource groups for a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Gets all the resource groups for a subscription.
+ *
+ * @param filter The filter to apply on the operation.<br><br>You can filter by tag names and values.
+ * For example, to filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue eq 'Value1'.
+ * @param top The number of results to return. If null is passed, returns all resource groups.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the resource groups for a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String filter, Integer top, Context context);
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ResourceManagementClient.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ResourceManagementClient.java
new file mode 100644
index 0000000000000..69cdcea6288e1
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ResourceManagementClient.java
@@ -0,0 +1,102 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for ResourceManagementClient class. */
+public interface ResourceManagementClient {
+ /**
+ * Gets The Microsoft Azure subscription ID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the DeploymentsClient object to access its operations.
+ *
+ * @return the DeploymentsClient object.
+ */
+ DeploymentsClient getDeployments();
+
+ /**
+ * Gets the ProvidersClient object to access its operations.
+ *
+ * @return the ProvidersClient object.
+ */
+ ProvidersClient getProviders();
+
+ /**
+ * Gets the ProviderResourceTypesClient object to access its operations.
+ *
+ * @return the ProviderResourceTypesClient object.
+ */
+ ProviderResourceTypesClient getProviderResourceTypes();
+
+ /**
+ * Gets the ResourcesClient object to access its operations.
+ *
+ * @return the ResourcesClient object.
+ */
+ ResourcesClient getResources();
+
+ /**
+ * Gets the ResourceGroupsClient object to access its operations.
+ *
+ * @return the ResourceGroupsClient object.
+ */
+ ResourceGroupsClient getResourceGroups();
+
+ /**
+ * Gets the TagOperationsClient object to access its operations.
+ *
+ * @return the TagOperationsClient object.
+ */
+ TagOperationsClient getTagOperations();
+
+ /**
+ * Gets the DeploymentOperationsClient object to access its operations.
+ *
+ * @return the DeploymentOperationsClient object.
+ */
+ DeploymentOperationsClient getDeploymentOperations();
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ResourcesClient.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ResourcesClient.java
new file mode 100644
index 0000000000000..2022dc32cc4c9
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/ResourcesClient.java
@@ -0,0 +1,915 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.resources.generated.fluent.models.GenericResourceExpandedInner;
+import com.azure.resourcemanager.resources.generated.fluent.models.GenericResourceInner;
+import com.azure.resourcemanager.resources.generated.models.ResourcesMoveInfo;
+
+/** An instance of this class provides access to all the operations defined in ResourcesClient. */
+public interface ResourcesClient {
+ /**
+ * Get all the resources for a resource group.
+ *
+ * @param resourceGroupName The resource group with the resources to get.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the resources for a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Get all the resources for a resource group.
+ *
+ * @param resourceGroupName The resource group with the resources to get.
+ * @param filter The filter to apply on the operation.<br><br>The properties you can use for eq (equals)
+ * or ne (not equals) are: location, resourceType, name, resourceGroup, identity, identity/principalId, plan,
+ * plan/publisher, plan/product, plan/name, plan/version, and plan/promotionCode.<br><br>For
+ * example, to filter by a resource type, use: $filter=resourceType eq
+ * 'Microsoft.Network/virtualNetworks'<br><br>You can use substringof(value, property) in the
+ * filter. The properties you can use for substring are: name and resourceGroup.<br><br>For example,
+ * to get all resources with 'demo' anywhere in the name, use: $filter=substringof('demo',
+ * name)<br><br>You can link more than one substringof together by adding and/or
+ * operators.<br><br>You can filter by tag names and values. For example, to filter for a tag name
+ * and value, use $filter=tagName eq 'tag1' and tagValue eq 'Value1'. When you filter by a tag name and value,
+ * the tags for each resource are not returned in the results.<br><br>You can use some properties
+ * together when filtering. The combinations you can use are: substringof and/or resourceType, plan and
+ * plan/publisher and plan/name, identity and identity/principalId.
+ * @param expand Comma-separated list of additional properties to be included in the response. Valid values include
+ * `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`.
+ * @param top The number of results to return. If null is passed, returns all resources.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the resources for a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(
+ String resourceGroupName, String filter, String expand, Integer top, Context context);
+
+ /**
+ * The resources to be moved must be in the same source resource group in the source subscription being used. The
+ * target resource group may be in a different subscription. When moving resources, both the source group and the
+ * target group are locked for the duration of the operation. Write and delete operations are blocked on the groups
+ * until the move completes.
+ *
+ * @param sourceResourceGroupName The name of the resource group from the source subscription containing the
+ * resources to be moved.
+ * @param parameters Parameters for moving resources.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginMoveResources(String sourceResourceGroupName, ResourcesMoveInfo parameters);
+
+ /**
+ * The resources to be moved must be in the same source resource group in the source subscription being used. The
+ * target resource group may be in a different subscription. When moving resources, both the source group and the
+ * target group are locked for the duration of the operation. Write and delete operations are blocked on the groups
+ * until the move completes.
+ *
+ * @param sourceResourceGroupName The name of the resource group from the source subscription containing the
+ * resources to be moved.
+ * @param parameters Parameters for moving resources.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginMoveResources(
+ String sourceResourceGroupName, ResourcesMoveInfo parameters, Context context);
+
+ /**
+ * 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Get all the resources in a subscription.
+ *
+ * @param filter The filter to apply on the operation.<br><br>Filter comparison operators include `eq`
+ * (equals) and `ne` (not equals) and may be used with the following properties: `location`, `resourceType`,
+ * `name`, `resourceGroup`, `identity`, `identity/principalId`, `plan`, `plan/publisher`, `plan/product`,
+ * `plan/name`, `plan/version`, and `plan/promotionCode`.<br><br>For example, to filter by a
+ * resource type, use `$filter=resourceType eq
+ * 'Microsoft.Network/virtualNetworks'`<br><br><br>`substringof(value, property)` can be used
+ * to filter for substrings of the following currently-supported properties: `name` and
+ * `resourceGroup`<br><br>For example, to get all resources with 'demo' anywhere in the resource
+ * name, use `$filter=substringof('demo', name)`<br><br>Multiple substring operations can also be
+ * combined using `and`/`or` operators.<br><br>Note that any truncated number of results queried via
+ * `$top` may also not be compatible when using a filter.<br><br><br>Resources can be filtered
+ * by tag names and values. For example, to filter for a tag name and value, use `$filter=tagName eq 'tag1' and
+ * tagValue eq 'Value1'`. Note that when resources are filtered by tag name and value, <b>the original
+ * tags for each resource will not be returned in the results.</b> Any list of additional properties
+ * queried via `$expand` may also not be compatible when filtering by tag names/values. <br><br>For
+ * tag names only, resources can be filtered by prefix using the following syntax: `$filter=startswith(tagName,
+ * 'depart')`. This query will return all resources with a tag name prefixed by the phrase `depart`
+ * (i.e.`department`, `departureDate`, `departureTime`, etc.)<br><br><br>Note that some
+ * properties can be combined when filtering resources, which include the following: `substringof() and/or
+ * resourceType`, `plan and plan/publisher and plan/name`, and `identity and identity/principalId`.
+ * @param expand Comma-separated list of additional properties to be included in the response. Valid values include
+ * `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`.
+ * @param top The number of 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 in a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String filter, String expand, Integer top, Context context);
+
+ /**
+ * Checks whether a resource exists.
+ *
+ * @param resourceGroupName The name of the resource group containing the resource to check. The name is case
+ * insensitive.
+ * @param resourceProviderNamespace The resource provider of the resource to check.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type.
+ * @param resourceName The name of the resource to check whether it exists.
+ * @param apiVersion The API version to use for the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return whether resource exists.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ boolean checkExistence(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion);
+
+ /**
+ * Checks whether a resource exists.
+ *
+ * @param resourceGroupName The name of the resource group containing the resource to check. The name is case
+ * insensitive.
+ * @param resourceProviderNamespace The resource provider of the resource to check.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type.
+ * @param resourceName The name of the resource to check whether it exists.
+ * @param apiVersion The API version to use for the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return whether resource exists along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkExistenceWithResponse(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion,
+ Context context);
+
+ /**
+ * Deletes a resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource to delete. The name is case
+ * insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type.
+ * @param resourceName The name of the resource to delete.
+ * @param apiVersion The API version to use for the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion);
+
+ /**
+ * Deletes a resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource to delete. The name is case
+ * insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type.
+ * @param resourceName The name of the resource to delete.
+ * @param apiVersion The API version to use for the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion,
+ Context context);
+
+ /**
+ * Deletes a resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource to delete. The name is case
+ * insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type.
+ * @param resourceName The name of the resource to delete.
+ * @param apiVersion The API version to use for the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion);
+
+ /**
+ * Deletes a resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource to delete. The name is case
+ * insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type.
+ * @param resourceName The name of the resource to delete.
+ * @param apiVersion The API version to use for the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion,
+ Context context);
+
+ /**
+ * Creates a resource.
+ *
+ * @param resourceGroupName The name of the resource group for the resource. The name is case insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type of the resource to create.
+ * @param resourceName The name of the resource to create.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Parameters for creating or updating the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of resource information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GenericResourceInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion,
+ GenericResourceInner parameters);
+
+ /**
+ * Creates a resource.
+ *
+ * @param resourceGroupName The name of the resource group for the resource. The name is case insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type of the resource to create.
+ * @param resourceName The name of the resource to create.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Parameters for creating or updating the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of resource information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GenericResourceInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion,
+ GenericResourceInner parameters,
+ Context context);
+
+ /**
+ * Creates a resource.
+ *
+ * @param resourceGroupName The name of the resource group for the resource. The name is case insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type of the resource to create.
+ * @param resourceName The name of the resource to create.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Parameters for creating or updating the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenericResourceInner createOrUpdate(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion,
+ GenericResourceInner parameters);
+
+ /**
+ * Creates a resource.
+ *
+ * @param resourceGroupName The name of the resource group for the resource. The name is case insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type of the resource to create.
+ * @param resourceName The name of the resource to create.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Parameters for creating or updating the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenericResourceInner createOrUpdate(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion,
+ GenericResourceInner parameters,
+ Context context);
+
+ /**
+ * Updates a resource.
+ *
+ * @param resourceGroupName The name of the resource group for the resource. The name is case insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type of the resource to update.
+ * @param resourceName The name of the resource to update.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Parameters for updating the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of resource information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GenericResourceInner> beginUpdate(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion,
+ GenericResourceInner parameters);
+
+ /**
+ * Updates a resource.
+ *
+ * @param resourceGroupName The name of the resource group for the resource. The name is case insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type of the resource to update.
+ * @param resourceName The name of the resource to update.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Parameters for updating the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of resource information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GenericResourceInner> beginUpdate(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion,
+ GenericResourceInner parameters,
+ Context context);
+
+ /**
+ * Updates a resource.
+ *
+ * @param resourceGroupName The name of the resource group for the resource. The name is case insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type of the resource to update.
+ * @param resourceName The name of the resource to update.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Parameters for updating the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenericResourceInner update(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion,
+ GenericResourceInner parameters);
+
+ /**
+ * Updates a resource.
+ *
+ * @param resourceGroupName The name of the resource group for the resource. The name is case insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type of the resource to update.
+ * @param resourceName The name of the resource to update.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Parameters for updating the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenericResourceInner update(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion,
+ GenericResourceInner parameters,
+ Context context);
+
+ /**
+ * Gets a resource.
+ *
+ * @param resourceGroupName The name of the resource group containing the resource to get. The name is case
+ * insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type of the resource.
+ * @param resourceName The name of the resource to get.
+ * @param apiVersion The API version to use for the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenericResourceInner get(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion);
+
+ /**
+ * Gets a resource.
+ *
+ * @param resourceGroupName The name of the resource group containing the resource to get. The name is case
+ * insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type of the resource.
+ * @param resourceName The name of the resource to get.
+ * @param apiVersion The API version to use for the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName,
+ String resourceProviderNamespace,
+ String parentResourcePath,
+ String resourceType,
+ String resourceName,
+ String apiVersion,
+ Context context);
+
+ /**
+ * Checks by ID whether a resource exists.
+ *
+ * @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 whether resource exists along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkExistenceByIdWithResponse(String resourceId, String apiVersion, Context context);
+
+ /**
+ * Deletes a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteById(String resourceId, String apiVersion);
+
+ /**
+ * Deletes a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteById(String resourceId, String apiVersion, Context context);
+
+ /**
+ * Deletes a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteById(String resourceId, String apiVersion);
+
+ /**
+ * Deletes a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteById(String resourceId, String apiVersion, Context context);
+
+ /**
+ * Create a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Create or update resource parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of resource information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GenericResourceInner> beginCreateOrUpdateById(
+ String resourceId, String apiVersion, GenericResourceInner parameters);
+
+ /**
+ * Create a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Create or update resource parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of resource information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GenericResourceInner> beginCreateOrUpdateById(
+ String resourceId, String apiVersion, GenericResourceInner parameters, Context context);
+
+ /**
+ * Create a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Create or update resource parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenericResourceInner createOrUpdateById(String resourceId, String apiVersion, GenericResourceInner parameters);
+
+ /**
+ * Create a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Create or update resource parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenericResourceInner createOrUpdateById(
+ String resourceId, String apiVersion, GenericResourceInner parameters, Context context);
+
+ /**
+ * Updates a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Update resource parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of resource information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GenericResourceInner> beginUpdateById(
+ String resourceId, String apiVersion, GenericResourceInner parameters);
+
+ /**
+ * Updates a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Update resource parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of resource information.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GenericResourceInner> beginUpdateById(
+ String resourceId, String apiVersion, GenericResourceInner parameters, Context context);
+
+ /**
+ * Updates a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Update resource parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenericResourceInner updateById(String resourceId, String apiVersion, GenericResourceInner parameters);
+
+ /**
+ * Updates a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Update resource parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenericResourceInner updateById(
+ String resourceId, String apiVersion, GenericResourceInner parameters, Context context);
+
+ /**
+ * Gets a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a resource by ID.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenericResourceInner getById(String resourceId, String apiVersion);
+
+ /**
+ * Gets a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the
+ * format,
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.
+ * @param apiVersion The API version to use for the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a resource by ID along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByIdWithResponse(String resourceId, String apiVersion, Context context);
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/TagOperationsClient.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/TagOperationsClient.java
new file mode 100644
index 0000000000000..52eee7c8eaa65
--- /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 {@link 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 along with {@link Response}.
+ */
+ @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 along with {@link Response}.
+ */
+ @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 {@link 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 as paginated response with {@link PagedIterable}.
+ */
+ @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 as paginated response with {@link PagedIterable}.
+ */
+ @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 along with {@link Response}.
+ */
+ @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 along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateAtScopeWithResponse(String scope, TagsPatchResource parameters, Context context);
+
+ /**
+ * Gets the entire set of tags on a resource or subscription.
+ *
+ * @param scope The resource scope.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the entire set of tags on a resource or subscription.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TagsResourceInner getAtScope(String scope);
+
+ /**
+ * Gets the entire set of tags on a resource or subscription.
+ *
+ * @param scope The resource scope.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the entire set of tags on a resource or subscription along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAtScopeWithResponse(String scope, Context context);
+
+ /**
+ * Deletes the entire set of tags on a resource or subscription.
+ *
+ * @param scope The resource scope.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteAtScope(String scope);
+
+ /**
+ * Deletes the entire set of tags on a resource or subscription.
+ *
+ * @param scope The resource scope.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteAtScopeWithResponse(String scope, Context context);
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/DeploymentExportResultInner.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/DeploymentExportResultInner.java
new file mode 100644
index 0000000000000..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..cb8f044950405
--- /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);
+
+ /*
+ * Error Response The deployment validation error.
+ */
+ @JsonProperty(value = "error", access = JsonProperty.Access.WRITE_ONLY)
+ private ManagementError error;
+
+ /*
+ * The template deployment properties.
+ */
+ @JsonProperty(value = "properties")
+ private DeploymentPropertiesExtended properties;
+
+ /**
+ * Get the error property: Error Response The deployment validation error.
+ *
+ * @return the error value.
+ */
+ public ManagementError error() {
+ return this.error;
+ }
+
+ /**
+ * Get the properties property: The template deployment properties.
+ *
+ * @return the properties value.
+ */
+ public DeploymentPropertiesExtended properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The template deployment properties.
+ *
+ * @param properties the properties value to set.
+ * @return the DeploymentValidateResultInner object itself.
+ */
+ public DeploymentValidateResultInner withProperties(DeploymentPropertiesExtended properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/GenericResourceExpandedInner.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/GenericResourceExpandedInner.java
new file mode 100644
index 0000000000000..45491608665ca
--- /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.Fluent;
+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. */
+@Fluent
+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..c7dba0d1ac9f3
--- /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;
+
+ /*
+ * Error Response The template export error.
+ */
+ @JsonProperty(value = "error")
+ private ManagementError error;
+
+ /**
+ * Get the template property: The template content.
+ *
+ * @return the template value.
+ */
+ public Object template() {
+ return this.template;
+ }
+
+ /**
+ * Set the template property: The template content.
+ *
+ * @param template the template value to set.
+ * @return the ResourceGroupExportResultInner object itself.
+ */
+ public ResourceGroupExportResultInner withTemplate(Object template) {
+ this.template = template;
+ return this;
+ }
+
+ /**
+ * Get the error property: Error Response The template export error.
+ *
+ * @return the error value.
+ */
+ public ManagementError error() {
+ return this.error;
+ }
+
+ /**
+ * Set the error property: Error Response The template export error.
+ *
+ * @param error the error value to set.
+ * @return the ResourceGroupExportResultInner object itself.
+ */
+ public ResourceGroupExportResultInner withError(ManagementError error) {
+ this.error = error;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/ResourceGroupInner.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/ResourceGroupInner.java
new file mode 100644
index 0000000000000..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/WhatIfOperationProperties.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/WhatIfOperationProperties.java
new file mode 100644
index 0000000000000..6cb699f445f48
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/WhatIfOperationProperties.java
@@ -0,0 +1,55 @@
+// 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.WhatIfChange;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Deployment operation properties. */
+@Fluent
+public final class WhatIfOperationProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(WhatIfOperationProperties.class);
+
+ /*
+ * List of resource changes predicted by What-If operation.
+ */
+ @JsonProperty(value = "changes")
+ private List changes;
+
+ /**
+ * Get the changes property: List of resource changes predicted by What-If operation.
+ *
+ * @return the changes value.
+ */
+ public List changes() {
+ return this.changes;
+ }
+
+ /**
+ * Set the changes property: List of resource changes predicted by What-If operation.
+ *
+ * @param changes the changes value to set.
+ * @return the WhatIfOperationProperties object itself.
+ */
+ public WhatIfOperationProperties withChanges(List changes) {
+ this.changes = changes;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (changes() != null) {
+ changes().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/WhatIfOperationResultInner.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/WhatIfOperationResultInner.java
new file mode 100644
index 0000000000000..00439a18e687c
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/WhatIfOperationResultInner.java
@@ -0,0 +1,123 @@
+// 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.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.
+ */
+@Fluent
+public final class WhatIfOperationResultInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(WhatIfOperationResultInner.class);
+
+ /*
+ * Status of the What-If operation.
+ */
+ @JsonProperty(value = "status")
+ private String status;
+
+ /*
+ * What-If operation properties.
+ */
+ @JsonProperty(value = "properties")
+ private WhatIfOperationProperties innerProperties;
+
+ /*
+ * Error Response Error when What-If operation fails.
+ */
+ @JsonProperty(value = "error")
+ private ManagementError error;
+
+ /**
+ * Get the status property: Status of the What-If operation.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: Status of the What-If operation.
+ *
+ * @param status the status value to set.
+ * @return the WhatIfOperationResultInner object itself.
+ */
+ public WhatIfOperationResultInner withStatus(String status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the innerProperties property: What-If operation properties.
+ *
+ * @return the innerProperties value.
+ */
+ private WhatIfOperationProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the error property: Error Response Error when What-If operation fails.
+ *
+ * @return the error value.
+ */
+ public ManagementError error() {
+ return this.error;
+ }
+
+ /**
+ * Set the error property: Error Response Error when What-If operation fails.
+ *
+ * @param error the error value to set.
+ * @return the WhatIfOperationResultInner object itself.
+ */
+ public WhatIfOperationResultInner withError(ManagementError error) {
+ this.error = error;
+ return this;
+ }
+
+ /**
+ * Get the changes property: List of resource changes predicted by What-If operation.
+ *
+ * @return the changes value.
+ */
+ public List changes() {
+ return this.innerProperties() == null ? null : this.innerProperties().changes();
+ }
+
+ /**
+ * Set the changes property: List of resource changes predicted by What-If operation.
+ *
+ * @param changes the changes value to set.
+ * @return the WhatIfOperationResultInner object itself.
+ */
+ public WhatIfOperationResultInner withChanges(List changes) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WhatIfOperationProperties();
+ }
+ this.innerProperties().withChanges(changes);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/package-info.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/package-info.java
new file mode 100644
index 0000000000000..cf72c3ef077ed
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/models/package-info.java
@@ -0,0 +1,9 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/**
+ * Package containing the inner data models for ResourceManagementClient. Provides operations for working with resources
+ * and resource groups.
+ */
+package com.azure.resourcemanager.resources.generated.fluent.models;
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/package-info.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/package-info.java
new file mode 100644
index 0000000000000..1d259c694411d
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/fluent/package-info.java
@@ -0,0 +1,9 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/**
+ * Package containing the service clients for ResourceManagementClient. Provides operations for working with resources
+ * and resource groups.
+ */
+package com.azure.resourcemanager.resources.generated.fluent;
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/implementation/DeploymentExportResultImpl.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/implementation/DeploymentExportResultImpl.java
new file mode 100644
index 0000000000000..a38b34c45ae86
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/implementation/DeploymentExportResultImpl.java
@@ -0,0 +1,33 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.resources.generated.implementation;
+
+import com.azure.resourcemanager.resources.generated.fluent.models.DeploymentExportResultInner;
+import com.azure.resourcemanager.resources.generated.models.DeploymentExportResult;
+
+public final class DeploymentExportResultImpl implements DeploymentExportResult {
+ private DeploymentExportResultInner innerObject;
+
+ private final com.azure.resourcemanager.resources.generated.ResourceManager serviceManager;
+
+ DeploymentExportResultImpl(
+ DeploymentExportResultInner innerObject,
+ com.azure.resourcemanager.resources.generated.ResourceManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public Object template() {
+ return this.innerModel().template();
+ }
+
+ public DeploymentExportResultInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.resources.generated.ResourceManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/implementation/DeploymentExtendedImpl.java b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/implementation/DeploymentExtendedImpl.java
new file mode 100644
index 0000000000000..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..32f3f034efe61
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-generated/src/main/java/com/azure/resourcemanager/resources/generated/implementation/DeploymentOperationsClientImpl.java
@@ -0,0 +1,2294 @@
+// 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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getAtScopeWithResponseAsync(
+ String scope, String deploymentName, String operationId) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (scope == null) {
+ return Mono.error(new IllegalArgumentException("Parameter scope is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ if (operationId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .getAtScope(
+ this.client.getEndpoint(),
+ scope,
+ deploymentName,
+ operationId,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployments operation along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getAtScopeWithResponseAsync(
+ String scope, String deploymentName, String operationId, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (scope == null) {
+ return Mono.error(new IllegalArgumentException("Parameter scope is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ if (operationId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .getAtScope(
+ this.client.getEndpoint(),
+ scope,
+ deploymentName,
+ operationId,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a deployments operation on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAtScopeAsync(String scope, String deploymentName, String operationId) {
+ return getAtScopeWithResponseAsync(scope, deploymentName, operationId)
+ .flatMap(
+ (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 along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getAtScopeWithResponse(
+ String scope, String deploymentName, String operationId, Context context) {
+ return getAtScopeWithResponseAsync(scope, deploymentName, operationId, context).block();
+ }
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param top The number of results to return.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all deployments operations for a deployment along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listAtScopeSinglePageAsync(
+ String scope, String deploymentName, Integer top) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (scope == null) {
+ return Mono.error(new IllegalArgumentException("Parameter scope is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listAtScope(
+ this.client.getEndpoint(),
+ scope,
+ deploymentName,
+ top,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>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 along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @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 as paginated response with {@link PagedFlux}.
+ */
+ @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 as paginated response with {@link PagedFlux}.
+ */
+ @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 as paginated response with {@link PagedFlux}.
+ */
+ @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 as paginated response with {@link PagedIterable}.
+ */
+ @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 as paginated response with {@link PagedIterable}.
+ */
+ @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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 on successful completion of {@link Mono}.
+ */
+ @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 along with {@link Response}.
+ */
+ @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 along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @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 along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @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 as paginated response with {@link PagedFlux}.
+ */
+ @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 as paginated response with {@link PagedFlux}.
+ */
+ @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 as paginated response with {@link PagedFlux}.
+ */
+ @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 as paginated response with {@link PagedIterable}.
+ */
+ @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 as paginated response with {@link PagedIterable}.
+ */
+ @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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 on successful completion of {@link Mono}.
+ */
+ @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 along with {@link Response}.
+ */
+ @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 along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @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 along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @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 as paginated response with {@link PagedFlux}.
+ */
+ @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 as paginated response with {@link PagedFlux}.
+ */
+ @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 as paginated response with {@link PagedFlux}.
+ */
+ @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 as paginated response with {@link PagedIterable}.
+ */
+ @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 as paginated response with {@link PagedIterable}.
+ */
+ @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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 on successful completion of {@link Mono}.
+ */
+ @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 along with {@link Response}.
+ */
+ @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 along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @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 along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @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 as paginated response with {@link PagedFlux}.
+ */
+ @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 as paginated response with {@link PagedFlux}.
+ */
+ @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 as paginated response with {@link PagedFlux}.
+ */
+ @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 as paginated response with {@link PagedIterable}.
+ */
+ @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 as paginated response with {@link PagedIterable}.
+ */
+ @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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 on successful completion of {@link Mono}.
+ */
+ @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 along with {@link Response}.
+ */
+ @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 along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @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 along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @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 as paginated response with {@link PagedFlux}.
+ */
+ @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 as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux