diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 7a987a84736ad..0839f684a968a 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -199,6 +199,7 @@ com.azure.resourcemanager:azure-resourcemanager-loganalytics;1.0.0-beta.1;1.0.0-
com.azure.resourcemanager:azure-resourcemanager-eventgrid;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-healthbot;1.0.0-beta.1;1.0.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-confluent;1.0.0-beta.1;1.0.0-beta.2
+com.azure.resourcemanager:azure-resourcemanager-azurestack;1.0.0-beta.1;1.0.0-beta.1
# Unreleased dependencies: Copy the entry from above, prepend "unreleased_" and remove the current
# version. Unreleased dependencies are only valid for dependency versions.
diff --git a/pom.xml b/pom.xml
index 3d84dd84ceb34..3ccc0ad079fae 100644
--- a/pom.xml
+++ b/pom.xml
@@ -560,6 +560,7 @@
sdk/appconfiguration
sdk/attestation
sdk/authorization
+ sdk/azurestack
sdk/batch
sdk/boms
sdk/cognitiveservices
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/CHANGELOG.md b/sdk/azurestack/azure-resourcemanager-azurestack/CHANGELOG.md
new file mode 100644
index 0000000000000..5ae5a70816df4
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2021-02-09)
+
+- Azure Resource Manager AzureStack client library for Java. This package contains Microsoft Azure SDK for AzureStack Management SDK. Azure Stack. Package tag package-preview-2020-06. 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/azurestack/azure-resourcemanager-azurestack/README.md b/sdk/azurestack/azure-resourcemanager-azurestack/README.md
new file mode 100644
index 0000000000000..ddb68971585ec
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/README.md
@@ -0,0 +1,99 @@
+# Azure Resource Manager AzureStack client library for Java
+
+Azure Resource Manager AzureStack client library for Java.
+
+This package contains Microsoft Azure SDK for AzureStack Management SDK. Azure Stack. Package tag package-preview-2020-06. 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-azurestack;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-azurestack
+ 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();
+AzureStackManager manager = AzureStackManager
+ .authenticate(credential, profile);
+```
+
+The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+
+See [Authentication][authenticate] for more options.
+
+## Key concepts
+
+See [API design][design] for general introduction on design and key concepts on Azure Management Libraries.
+
+## Examples
+
+## Troubleshooting
+
+## Next steps
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/master/CONTRIBUTING.md).
+
+1. Fork it
+1. Create your feature branch (`git checkout -b my-new-feature`)
+1. Commit your changes (`git commit -am 'Add some feature'`)
+1. Push to the branch (`git push origin my-new-feature`)
+1. Create new Pull Request
+
+
+[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
+[docs]: https://azure.github.io/azure-sdk-for-java/
+[jdk]: https://docs.microsoft.com/java/azure/jdk/
+[azure_subscription]: https://azure.microsoft.com/free/
+[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/identity/azure-identity
+[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/core/azure-core-http-netty
+[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/AUTH.md
+[design]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/pom.xml b/sdk/azurestack/azure-resourcemanager-azurestack/pom.xml
new file mode 100644
index 0000000000000..5203e6c338f07
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/pom.xml
@@ -0,0 +1,62 @@
+
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-azurestack
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for AzureStack Management
+ This package contains Microsoft Azure SDK for AzureStack Management SDK. Azure Stack. Package tag package-preview-2020-06. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
+ https://github.com/Azure/azure-sdk-for-java
+
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+
+
+
+
+ com.azure
+ azure-core-management
+ 1.1.1
+
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+ true
+
+
+
+
+
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/AzureStackManager.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/AzureStackManager.java
new file mode 100644
index 0000000000000..57fd462042b92
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/AzureStackManager.java
@@ -0,0 +1,274 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestack;
+
+import com.azure.core.credential.TokenCredential;
+import com.azure.core.http.HttpClient;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.AddDatePolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
+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.profile.AzureProfile;
+import com.azure.core.util.Configuration;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.azurestack.fluent.AzureStackManagementClient;
+import com.azure.resourcemanager.azurestack.implementation.AzureStackManagementClientBuilder;
+import com.azure.resourcemanager.azurestack.implementation.CloudManifestFilesImpl;
+import com.azure.resourcemanager.azurestack.implementation.CustomerSubscriptionsImpl;
+import com.azure.resourcemanager.azurestack.implementation.LinkedSubscriptionsImpl;
+import com.azure.resourcemanager.azurestack.implementation.OperationsImpl;
+import com.azure.resourcemanager.azurestack.implementation.ProductsImpl;
+import com.azure.resourcemanager.azurestack.implementation.RegistrationsImpl;
+import com.azure.resourcemanager.azurestack.models.CloudManifestFiles;
+import com.azure.resourcemanager.azurestack.models.CustomerSubscriptions;
+import com.azure.resourcemanager.azurestack.models.LinkedSubscriptions;
+import com.azure.resourcemanager.azurestack.models.Operations;
+import com.azure.resourcemanager.azurestack.models.Products;
+import com.azure.resourcemanager.azurestack.models.Registrations;
+import java.time.Duration;
+import java.time.temporal.ChronoUnit;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+/** Entry point to AzureStackManager. Azure Stack. */
+public final class AzureStackManager {
+ private Operations operations;
+
+ private CloudManifestFiles cloudManifestFiles;
+
+ private CustomerSubscriptions customerSubscriptions;
+
+ private Products products;
+
+ private Registrations registrations;
+
+ private LinkedSubscriptions linkedSubscriptions;
+
+ private final AzureStackManagementClient clientObject;
+
+ private AzureStackManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject =
+ new AzureStackManagementClientBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * Creates an instance of AzureStack service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the AzureStack service API instance.
+ */
+ public static AzureStackManager 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 AzureStackManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new AzureStackManager.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 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;
+ }
+
+ /**
+ * 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 AzureStack service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the AzureStack service API instance.
+ */
+ public AzureStackManager 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.azurestack")
+ .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 (retryPolicy == null) {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new RequestIdPolicy());
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies
+ .add(
+ new BearerTokenAuthenticationPolicy(
+ credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline =
+ new HttpPipelineBuilder()
+ .httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new AzureStackManager(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 CloudManifestFiles. */
+ public CloudManifestFiles cloudManifestFiles() {
+ if (this.cloudManifestFiles == null) {
+ this.cloudManifestFiles = new CloudManifestFilesImpl(clientObject.getCloudManifestFiles(), this);
+ }
+ return cloudManifestFiles;
+ }
+
+ /** @return Resource collection API of CustomerSubscriptions. */
+ public CustomerSubscriptions customerSubscriptions() {
+ if (this.customerSubscriptions == null) {
+ this.customerSubscriptions = new CustomerSubscriptionsImpl(clientObject.getCustomerSubscriptions(), this);
+ }
+ return customerSubscriptions;
+ }
+
+ /** @return Resource collection API of Products. */
+ public Products products() {
+ if (this.products == null) {
+ this.products = new ProductsImpl(clientObject.getProducts(), this);
+ }
+ return products;
+ }
+
+ /** @return Resource collection API of Registrations. */
+ public Registrations registrations() {
+ if (this.registrations == null) {
+ this.registrations = new RegistrationsImpl(clientObject.getRegistrations(), this);
+ }
+ return registrations;
+ }
+
+ /** @return Resource collection API of LinkedSubscriptions. */
+ public LinkedSubscriptions linkedSubscriptions() {
+ if (this.linkedSubscriptions == null) {
+ this.linkedSubscriptions = new LinkedSubscriptionsImpl(clientObject.getLinkedSubscriptions(), this);
+ }
+ return linkedSubscriptions;
+ }
+
+ /**
+ * @return Wrapped service client AzureStackManagementClient providing direct access to the underlying
+ * auto-generated API implementation, based on Azure REST API.
+ */
+ public AzureStackManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/AzureStackManagementClient.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/AzureStackManagementClient.java
new file mode 100644
index 0000000000000..551173793bb02
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/AzureStackManagementClient.java
@@ -0,0 +1,89 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestack.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for AzureStackManagementClient class. */
+public interface AzureStackManagementClient {
+ /**
+ * Gets Subscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part
+ * of the URI for every service call.
+ *
+ * @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 CloudManifestFilesClient object to access its operations.
+ *
+ * @return the CloudManifestFilesClient object.
+ */
+ CloudManifestFilesClient getCloudManifestFiles();
+
+ /**
+ * Gets the CustomerSubscriptionsClient object to access its operations.
+ *
+ * @return the CustomerSubscriptionsClient object.
+ */
+ CustomerSubscriptionsClient getCustomerSubscriptions();
+
+ /**
+ * Gets the ProductsClient object to access its operations.
+ *
+ * @return the ProductsClient object.
+ */
+ ProductsClient getProducts();
+
+ /**
+ * Gets the RegistrationsClient object to access its operations.
+ *
+ * @return the RegistrationsClient object.
+ */
+ RegistrationsClient getRegistrations();
+
+ /**
+ * Gets the LinkedSubscriptionsClient object to access its operations.
+ *
+ * @return the LinkedSubscriptionsClient object.
+ */
+ LinkedSubscriptionsClient getLinkedSubscriptions();
+}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/CloudManifestFilesClient.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/CloudManifestFilesClient.java
new file mode 100644
index 0000000000000..f1834421d572a
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/CloudManifestFilesClient.java
@@ -0,0 +1,63 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestack.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.azurestack.fluent.models.CloudManifestFileResponseInner;
+
+/** An instance of this class provides access to all the operations defined in CloudManifestFilesClient. */
+public interface CloudManifestFilesClient {
+ /**
+ * Returns a cloud specific manifest JSON file with latest version.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud specific manifest GET response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CloudManifestFileResponseInner list();
+
+ /**
+ * Returns a cloud specific manifest JSON file with latest version.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud specific manifest GET response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(Context context);
+
+ /**
+ * Returns a cloud specific manifest JSON file.
+ *
+ * @param verificationVersion Signing verification key version.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud specific manifest GET response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CloudManifestFileResponseInner get(String verificationVersion);
+
+ /**
+ * Returns a cloud specific manifest JSON file.
+ *
+ * @param verificationVersion Signing verification key version.
+ * @param versionCreationDate Signing verification key version creation date.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud specific manifest GET response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String verificationVersion, String versionCreationDate, Context context);
+}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/CustomerSubscriptionsClient.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/CustomerSubscriptionsClient.java
new file mode 100644
index 0000000000000..696d572bb26fe
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/CustomerSubscriptionsClient.java
@@ -0,0 +1,141 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestack.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.azurestack.fluent.models.CustomerSubscriptionInner;
+
+/** An instance of this class provides access to all the operations defined in CustomerSubscriptionsClient. */
+public interface CustomerSubscriptionsClient {
+ /**
+ * Returns a list of products.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return pageable list of customer subscriptions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroup, String registrationName);
+
+ /**
+ * Returns a list of products.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return pageable list of customer subscriptions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroup, String registrationName, Context context);
+
+ /**
+ * Returns the specified product.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param customerSubscriptionName Name of the product.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return customer subscription.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CustomerSubscriptionInner get(String resourceGroup, String registrationName, String customerSubscriptionName);
+
+ /**
+ * Returns the specified product.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param customerSubscriptionName Name of the product.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return customer subscription.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroup, String registrationName, String customerSubscriptionName, Context context);
+
+ /**
+ * Deletes a customer subscription under a registration.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param customerSubscriptionName Name of the product.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 resourceGroup, String registrationName, String customerSubscriptionName);
+
+ /**
+ * Deletes a customer subscription under a registration.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param customerSubscriptionName Name of the product.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroup, String registrationName, String customerSubscriptionName, Context context);
+
+ /**
+ * Creates a new customer subscription under a registration.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param customerSubscriptionName Name of the product.
+ * @param customerCreationParameters Parameters use to create a customer subscription.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return customer subscription.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CustomerSubscriptionInner create(
+ String resourceGroup,
+ String registrationName,
+ String customerSubscriptionName,
+ CustomerSubscriptionInner customerCreationParameters);
+
+ /**
+ * Creates a new customer subscription under a registration.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param customerSubscriptionName Name of the product.
+ * @param customerCreationParameters Parameters use to create a customer subscription.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return customer subscription.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createWithResponse(
+ String resourceGroup,
+ String registrationName,
+ String customerSubscriptionName,
+ CustomerSubscriptionInner customerCreationParameters,
+ Context context);
+}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/LinkedSubscriptionsClient.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/LinkedSubscriptionsClient.java
new file mode 100644
index 0000000000000..4b39c0114f0fb
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/LinkedSubscriptionsClient.java
@@ -0,0 +1,179 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestack.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.azurestack.fluent.models.LinkedSubscriptionInner;
+import com.azure.resourcemanager.azurestack.models.LinkedSubscriptionParameter;
+
+/** An instance of this class provides access to all the operations defined in LinkedSubscriptionsClient. */
+public interface LinkedSubscriptionsClient {
+ /**
+ * Returns a list of all linked subscriptions under current resource group.
+ *
+ * @param resourceGroup Name of the 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 list of linked subscriptions with paging support.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroup);
+
+ /**
+ * Returns a list of all linked subscriptions under current resource group.
+ *
+ * @param resourceGroup Name of the 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 list of linked subscriptions with paging support.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroup, Context context);
+
+ /**
+ * Returns a list of all linked subscriptions under current subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of linked subscriptions with paging support.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Returns a list of all linked subscriptions under current subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of linked subscriptions with paging support.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Returns the properties of a Linked Subscription resource.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param linkedSubscriptionName Name of the Linked Subscription 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 linked Subscription information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LinkedSubscriptionInner getByResourceGroup(String resourceGroup, String linkedSubscriptionName);
+
+ /**
+ * Returns the properties of a Linked Subscription resource.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param linkedSubscriptionName Name of the Linked Subscription 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 linked Subscription information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroup, String linkedSubscriptionName, Context context);
+
+ /**
+ * Delete the requested Linked Subscription resource.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param linkedSubscriptionName Name of the Linked Subscription 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroup, String linkedSubscriptionName);
+
+ /**
+ * Delete the requested Linked Subscription resource.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param linkedSubscriptionName Name of the Linked Subscription 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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroup, String linkedSubscriptionName, Context context);
+
+ /**
+ * Create or update a linked subscription resource.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param linkedSubscriptionName Name of the Linked Subscription resource.
+ * @param resource Linked subscription resource parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linked Subscription information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LinkedSubscriptionInner createOrUpdate(
+ String resourceGroup, String linkedSubscriptionName, LinkedSubscriptionParameter resource);
+
+ /**
+ * Create or update a linked subscription resource.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param linkedSubscriptionName Name of the Linked Subscription resource.
+ * @param resource Linked subscription resource parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linked Subscription information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroup, String linkedSubscriptionName, LinkedSubscriptionParameter resource, Context context);
+
+ /**
+ * Patch a Linked Subscription resource.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param linkedSubscriptionName Name of the Linked Subscription resource.
+ * @param resource Linked subscription resource parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linked Subscription information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LinkedSubscriptionInner update(
+ String resourceGroup, String linkedSubscriptionName, LinkedSubscriptionParameter resource);
+
+ /**
+ * Patch a Linked Subscription resource.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param linkedSubscriptionName Name of the Linked Subscription resource.
+ * @param resource Linked subscription resource parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linked Subscription information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroup, String linkedSubscriptionName, LinkedSubscriptionParameter resource, Context context);
+}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/OperationsClient.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/OperationsClient.java
new file mode 100644
index 0000000000000..f294306434ebe
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/OperationsClient.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestack.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.azurestack.fluent.models.OperationInner;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public interface OperationsClient {
+ /**
+ * Returns the list of supported REST 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 list of Operations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Returns the list of supported REST 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 list of Operations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/ProductsClient.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/ProductsClient.java
new file mode 100644
index 0000000000000..a8456312d9a4a
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/ProductsClient.java
@@ -0,0 +1,212 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestack.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.azurestack.fluent.models.ExtendedProductInner;
+import com.azure.resourcemanager.azurestack.fluent.models.ProductInner;
+import com.azure.resourcemanager.azurestack.fluent.models.ProductListInner;
+import com.azure.resourcemanager.azurestack.fluent.models.ProductLogInner;
+import com.azure.resourcemanager.azurestack.models.DeviceConfiguration;
+import com.azure.resourcemanager.azurestack.models.MarketplaceProductLogUpdate;
+
+/** An instance of this class provides access to all the operations defined in ProductsClient. */
+public interface ProductsClient {
+ /**
+ * Returns a list of products.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return pageable list of products.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroup, String registrationName);
+
+ /**
+ * Returns a list of products.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return pageable list of products.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroup, String registrationName, Context context);
+
+ /**
+ * Returns the specified product.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param productName Name of the product.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return product information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ProductInner get(String resourceGroup, String registrationName, String productName);
+
+ /**
+ * Returns the specified product.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param productName Name of the product.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return product information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroup, String registrationName, String productName, Context context);
+
+ /**
+ * Returns the extended properties of a product.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param productName Name of the product.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return extended description about the product required for installing it into Azure Stack.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ExtendedProductInner listDetails(String resourceGroup, String registrationName, String productName);
+
+ /**
+ * Returns the extended properties of a product.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param productName Name of the product.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return extended description about the product required for installing it into Azure Stack.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listDetailsWithResponse(
+ String resourceGroup, String registrationName, String productName, Context context);
+
+ /**
+ * Returns a list of products.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param productName Name of the product.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return pageable list of products.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ProductListInner getProducts(String resourceGroup, String registrationName, String productName);
+
+ /**
+ * Returns a list of products.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param productName Name of the product.
+ * @param deviceConfiguration Device configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return pageable list of products.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getProductsWithResponse(
+ String resourceGroup,
+ String registrationName,
+ String productName,
+ DeviceConfiguration deviceConfiguration,
+ Context context);
+
+ /**
+ * Returns the specified product.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param productName Name of the product.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return product information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ProductInner getProduct(String resourceGroup, String registrationName, String productName);
+
+ /**
+ * Returns the specified product.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param productName Name of the product.
+ * @param deviceConfiguration Device configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return product information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getProductWithResponse(
+ String resourceGroup,
+ String registrationName,
+ String productName,
+ DeviceConfiguration deviceConfiguration,
+ Context context);
+
+ /**
+ * Returns the specified product.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param productName Name of the product.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return product action log.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ProductLogInner uploadLog(String resourceGroup, String registrationName, String productName);
+
+ /**
+ * Returns the specified product.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param productName Name of the product.
+ * @param marketplaceProductLogUpdate Update details for product log.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return product action log.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response uploadLogWithResponse(
+ String resourceGroup,
+ String registrationName,
+ String productName,
+ MarketplaceProductLogUpdate marketplaceProductLogUpdate,
+ Context context);
+}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/RegistrationsClient.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/RegistrationsClient.java
new file mode 100644
index 0000000000000..062a41d3d102d
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/RegistrationsClient.java
@@ -0,0 +1,210 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestack.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.azurestack.fluent.models.ActivationKeyResultInner;
+import com.azure.resourcemanager.azurestack.fluent.models.RegistrationInner;
+import com.azure.resourcemanager.azurestack.models.RegistrationParameter;
+
+/** An instance of this class provides access to all the operations defined in RegistrationsClient. */
+public interface RegistrationsClient {
+ /**
+ * Returns a list of all registrations.
+ *
+ * @param resourceGroup Name of the 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 pageable list of registrations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroup);
+
+ /**
+ * Returns a list of all registrations.
+ *
+ * @param resourceGroup Name of the 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 pageable list of registrations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroup, Context context);
+
+ /**
+ * Returns the properties of an Azure Stack registration.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return registration information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistrationInner getByResourceGroup(String resourceGroup, String registrationName);
+
+ /**
+ * Returns the properties of an Azure Stack registration.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return registration information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroup, String registrationName, Context context);
+
+ /**
+ * Delete the requested Azure Stack registration.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 resourceGroup, String registrationName);
+
+ /**
+ * Delete the requested Azure Stack registration.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroup, String registrationName, Context context);
+
+ /**
+ * Create or update an Azure Stack registration.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param token Registration token.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return registration information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistrationInner createOrUpdate(String resourceGroup, String registrationName, RegistrationParameter token);
+
+ /**
+ * Create or update an Azure Stack registration.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param token Registration token.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return registration information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroup, String registrationName, RegistrationParameter token, Context context);
+
+ /**
+ * Patch an Azure Stack registration.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param token Registration token.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return registration information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistrationInner update(String resourceGroup, String registrationName, RegistrationParameter token);
+
+ /**
+ * Patch an Azure Stack registration.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param token Registration token.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return registration information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroup, String registrationName, RegistrationParameter token, Context context);
+
+ /**
+ * Returns Azure Stack Activation Key.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the resource containing the Azure Stack activation key.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ActivationKeyResultInner getActivationKey(String resourceGroup, String registrationName);
+
+ /**
+ * Returns Azure Stack Activation Key.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the resource containing the Azure Stack activation key.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getActivationKeyWithResponse(
+ String resourceGroup, String registrationName, Context context);
+
+ /**
+ * Enables remote management for device under the Azure Stack registration.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 enableRemoteManagement(String resourceGroup, String registrationName);
+
+ /**
+ * Enables remote management for device under the Azure Stack registration.
+ *
+ * @param resourceGroup Name of the resource group.
+ * @param registrationName Name of the Azure Stack registration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response enableRemoteManagementWithResponse(String resourceGroup, String registrationName, Context context);
+}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/ActivationKeyResultInner.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/ActivationKeyResultInner.java
new file mode 100644
index 0000000000000..808c1126580b3
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/ActivationKeyResultInner.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.azurestack.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 resource containing the Azure Stack activation key. */
+@Fluent
+public final class ActivationKeyResultInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ActivationKeyResultInner.class);
+
+ /*
+ * Azure Stack activation key.
+ */
+ @JsonProperty(value = "activationKey")
+ private String activationKey;
+
+ /**
+ * Get the activationKey property: Azure Stack activation key.
+ *
+ * @return the activationKey value.
+ */
+ public String activationKey() {
+ return this.activationKey;
+ }
+
+ /**
+ * Set the activationKey property: Azure Stack activation key.
+ *
+ * @param activationKey the activationKey value to set.
+ * @return the ActivationKeyResultInner object itself.
+ */
+ public ActivationKeyResultInner withActivationKey(String activationKey) {
+ this.activationKey = activationKey;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/CloudManifestFileResponseInner.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/CloudManifestFileResponseInner.java
new file mode 100644
index 0000000000000..3ffed19f56ab9
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/CloudManifestFileResponseInner.java
@@ -0,0 +1,82 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestack.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.azurestack.models.CloudManifestFileProperties;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Cloud specific manifest GET response. */
+@Fluent
+public final class CloudManifestFileResponseInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(CloudManifestFileResponseInner.class);
+
+ /*
+ * Cloud specific manifest data.
+ */
+ @JsonProperty(value = "properties")
+ private CloudManifestFileProperties properties;
+
+ /*
+ * The entity tag used for optimistic concurrency when modifying the
+ * resource.
+ */
+ @JsonProperty(value = "etag")
+ private String etag;
+
+ /**
+ * Get the properties property: Cloud specific manifest data.
+ *
+ * @return the properties value.
+ */
+ public CloudManifestFileProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Cloud specific manifest data.
+ *
+ * @param properties the properties value to set.
+ * @return the CloudManifestFileResponseInner object itself.
+ */
+ public CloudManifestFileResponseInner withProperties(CloudManifestFileProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the etag property: The entity tag used for optimistic concurrency when modifying the resource.
+ *
+ * @return the etag value.
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+ /**
+ * Set the etag property: The entity tag used for optimistic concurrency when modifying the resource.
+ *
+ * @param etag the etag value to set.
+ * @return the CloudManifestFileResponseInner object itself.
+ */
+ public CloudManifestFileResponseInner withEtag(String etag) {
+ this.etag = etag;
+ 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/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/CustomerSubscriptionInner.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/CustomerSubscriptionInner.java
new file mode 100644
index 0000000000000..5184e4d8f9221
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/CustomerSubscriptionInner.java
@@ -0,0 +1,99 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestack.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.azurestack.models.SystemData;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Customer subscription. */
+@JsonFlatten
+@Fluent
+public class CustomerSubscriptionInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(CustomerSubscriptionInner.class);
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * Tenant Id.
+ */
+ @JsonProperty(value = "properties.tenantId")
+ private String tenantId;
+
+ /*
+ * The entity tag used for optimistic concurrency when modifying the
+ * resource.
+ */
+ @JsonProperty(value = "etag")
+ private String etag;
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the tenantId property: Tenant Id.
+ *
+ * @return the tenantId value.
+ */
+ public String tenantId() {
+ return this.tenantId;
+ }
+
+ /**
+ * Set the tenantId property: Tenant Id.
+ *
+ * @param tenantId the tenantId value to set.
+ * @return the CustomerSubscriptionInner object itself.
+ */
+ public CustomerSubscriptionInner withTenantId(String tenantId) {
+ this.tenantId = tenantId;
+ return this;
+ }
+
+ /**
+ * Get the etag property: The entity tag used for optimistic concurrency when modifying the resource.
+ *
+ * @return the etag value.
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+ /**
+ * Set the etag property: The entity tag used for optimistic concurrency when modifying the resource.
+ *
+ * @param etag the etag value to set.
+ * @return the CustomerSubscriptionInner object itself.
+ */
+ public CustomerSubscriptionInner withEtag(String etag) {
+ this.etag = etag;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (systemData() != null) {
+ systemData().validate();
+ }
+ }
+}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/ExtendedProductInner.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/ExtendedProductInner.java
new file mode 100644
index 0000000000000..c6b72a8bd3921
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/ExtendedProductInner.java
@@ -0,0 +1,221 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestack.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.azurestack.models.ComputeRole;
+import com.azure.resourcemanager.azurestack.models.DataDiskImage;
+import com.azure.resourcemanager.azurestack.models.OperatingSystem;
+import com.azure.resourcemanager.azurestack.models.OsDiskImage;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Extended description about the product required for installing it into Azure Stack. */
+@JsonFlatten
+@Immutable
+public class ExtendedProductInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ExtendedProductInner.class);
+
+ /*
+ * The URI to the .azpkg file that provides information required for
+ * showing product in the gallery.
+ */
+ @JsonProperty(value = "galleryPackageBlobSasUri", access = JsonProperty.Access.WRITE_ONLY)
+ private String galleryPackageBlobSasUri;
+
+ /*
+ * Specifies the kind of the product (virtualMachine or
+ * virtualMachineExtension).
+ */
+ @JsonProperty(value = "productKind", access = JsonProperty.Access.WRITE_ONLY)
+ private String productKind;
+
+ /*
+ * Specifies kind of compute role included in the package.
+ */
+ @JsonProperty(value = "properties.computeRole", access = JsonProperty.Access.WRITE_ONLY)
+ private ComputeRole computeRole;
+
+ /*
+ * Specifies if product is a Virtual Machine Extension.
+ */
+ @JsonProperty(value = "properties.isSystemExtension", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean isSystemExtension;
+
+ /*
+ * Indicates if specified product supports multiple extensions.
+ */
+ @JsonProperty(value = "properties.supportMultipleExtensions", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean supportMultipleExtensions;
+
+ /*
+ * Specifies product version.
+ */
+ @JsonProperty(value = "properties.version", access = JsonProperty.Access.WRITE_ONLY)
+ private String versionPropertiesVersion;
+
+ /*
+ * Specifies operating system used by the product.
+ */
+ @JsonProperty(value = "properties.vmOsType", access = JsonProperty.Access.WRITE_ONLY)
+ private OperatingSystem vmOsType;
+
+ /*
+ * Indicates if virtual machine Scale Set is enabled in the specified
+ * product.
+ */
+ @JsonProperty(value = "properties.vmScaleSetEnabled", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean vmScaleSetEnabled;
+
+ /*
+ * The URI.
+ */
+ @JsonProperty(value = "properties.sourceBlob.uri", access = JsonProperty.Access.WRITE_ONLY)
+ private String uri;
+
+ /*
+ * Specifies product version.
+ */
+ @JsonProperty(value = "properties.version", access = JsonProperty.Access.WRITE_ONLY)
+ private String version;
+
+ /*
+ * OS disk image used by product.
+ */
+ @JsonProperty(value = "properties.osDiskImage", access = JsonProperty.Access.WRITE_ONLY)
+ private OsDiskImage osDiskImage;
+
+ /*
+ * List of attached data disks.
+ */
+ @JsonProperty(value = "properties.dataDiskImages", access = JsonProperty.Access.WRITE_ONLY)
+ private List dataDiskImages;
+
+ /**
+ * Get the galleryPackageBlobSasUri property: The URI to the .azpkg file that provides information required for
+ * showing product in the gallery.
+ *
+ * @return the galleryPackageBlobSasUri value.
+ */
+ public String galleryPackageBlobSasUri() {
+ return this.galleryPackageBlobSasUri;
+ }
+
+ /**
+ * Get the productKind property: Specifies the kind of the product (virtualMachine or virtualMachineExtension).
+ *
+ * @return the productKind value.
+ */
+ public String productKind() {
+ return this.productKind;
+ }
+
+ /**
+ * Get the computeRole property: Specifies kind of compute role included in the package.
+ *
+ * @return the computeRole value.
+ */
+ public ComputeRole computeRole() {
+ return this.computeRole;
+ }
+
+ /**
+ * Get the isSystemExtension property: Specifies if product is a Virtual Machine Extension.
+ *
+ * @return the isSystemExtension value.
+ */
+ public Boolean isSystemExtension() {
+ return this.isSystemExtension;
+ }
+
+ /**
+ * Get the supportMultipleExtensions property: Indicates if specified product supports multiple extensions.
+ *
+ * @return the supportMultipleExtensions value.
+ */
+ public Boolean supportMultipleExtensions() {
+ return this.supportMultipleExtensions;
+ }
+
+ /**
+ * Get the versionPropertiesVersion property: Specifies product version.
+ *
+ * @return the versionPropertiesVersion value.
+ */
+ public String versionPropertiesVersion() {
+ return this.versionPropertiesVersion;
+ }
+
+ /**
+ * Get the vmOsType property: Specifies operating system used by the product.
+ *
+ * @return the vmOsType value.
+ */
+ public OperatingSystem vmOsType() {
+ return this.vmOsType;
+ }
+
+ /**
+ * Get the vmScaleSetEnabled property: Indicates if virtual machine Scale Set is enabled in the specified product.
+ *
+ * @return the vmScaleSetEnabled value.
+ */
+ public Boolean vmScaleSetEnabled() {
+ return this.vmScaleSetEnabled;
+ }
+
+ /**
+ * Get the uri property: The URI.
+ *
+ * @return the uri value.
+ */
+ public String uri() {
+ return this.uri;
+ }
+
+ /**
+ * Get the version property: Specifies product version.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Get the osDiskImage property: OS disk image used by product.
+ *
+ * @return the osDiskImage value.
+ */
+ public OsDiskImage osDiskImage() {
+ return this.osDiskImage;
+ }
+
+ /**
+ * Get the dataDiskImages property: List of attached data disks.
+ *
+ * @return the dataDiskImages value.
+ */
+ public List dataDiskImages() {
+ return this.dataDiskImages;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (osDiskImage() != null) {
+ osDiskImage().validate();
+ }
+ if (dataDiskImages() != null) {
+ dataDiskImages().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/LinkedSubscriptionInner.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/LinkedSubscriptionInner.java
new file mode 100644
index 0000000000000..6895b1465bd94
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/LinkedSubscriptionInner.java
@@ -0,0 +1,236 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestack.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.Resource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.azurestack.models.SystemData;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Linked Subscription information. */
+@JsonFlatten
+@Fluent
+public class LinkedSubscriptionInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(LinkedSubscriptionInner.class);
+
+ /*
+ * The identifier associated with the device subscription.
+ */
+ @JsonProperty(value = "properties.linkedSubscriptionId")
+ private String linkedSubscriptionId;
+
+ /*
+ * The identifier associated with the device registration.
+ */
+ @JsonProperty(value = "properties.registrationResourceId")
+ private String registrationResourceId;
+
+ /*
+ * The identifier of the Azure Stack device for remote management.
+ */
+ @JsonProperty(value = "properties.deviceId", access = JsonProperty.Access.WRITE_ONLY)
+ private String deviceId;
+
+ /*
+ * The object identifier associated with the Azure Stack device connecting
+ * to Azure.
+ */
+ @JsonProperty(value = "properties.deviceObjectId", access = JsonProperty.Access.WRITE_ONLY)
+ private String deviceObjectId;
+
+ /*
+ * The connection state of the Azure Stack device.
+ */
+ @JsonProperty(value = "properties.deviceLinkState", access = JsonProperty.Access.WRITE_ONLY)
+ private String deviceLinkState;
+
+ /*
+ * The last remote management connection time for the Azure Stack device
+ * connected to the linked subscription resource.
+ */
+ @JsonProperty(value = "properties.lastConnectedTime", access = JsonProperty.Access.WRITE_ONLY)
+ private String lastConnectedTime;
+
+ /*
+ * The status of the remote management connection of the Azure Stack
+ * device.
+ */
+ @JsonProperty(value = "properties.deviceConnectionStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private String deviceConnectionStatus;
+
+ /*
+ * The kind of the resource.
+ */
+ @JsonProperty(value = "kind", access = JsonProperty.Access.WRITE_ONLY)
+ private String kind;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The entity tag used for optimistic concurrency when modifying the
+ * resource.
+ */
+ @JsonProperty(value = "etag")
+ private String etag;
+
+ /**
+ * Get the linkedSubscriptionId property: The identifier associated with the device subscription.
+ *
+ * @return the linkedSubscriptionId value.
+ */
+ public String linkedSubscriptionId() {
+ return this.linkedSubscriptionId;
+ }
+
+ /**
+ * Set the linkedSubscriptionId property: The identifier associated with the device subscription.
+ *
+ * @param linkedSubscriptionId the linkedSubscriptionId value to set.
+ * @return the LinkedSubscriptionInner object itself.
+ */
+ public LinkedSubscriptionInner withLinkedSubscriptionId(String linkedSubscriptionId) {
+ this.linkedSubscriptionId = linkedSubscriptionId;
+ return this;
+ }
+
+ /**
+ * Get the registrationResourceId property: The identifier associated with the device registration.
+ *
+ * @return the registrationResourceId value.
+ */
+ public String registrationResourceId() {
+ return this.registrationResourceId;
+ }
+
+ /**
+ * Set the registrationResourceId property: The identifier associated with the device registration.
+ *
+ * @param registrationResourceId the registrationResourceId value to set.
+ * @return the LinkedSubscriptionInner object itself.
+ */
+ public LinkedSubscriptionInner withRegistrationResourceId(String registrationResourceId) {
+ this.registrationResourceId = registrationResourceId;
+ return this;
+ }
+
+ /**
+ * Get the deviceId property: The identifier of the Azure Stack device for remote management.
+ *
+ * @return the deviceId value.
+ */
+ public String deviceId() {
+ return this.deviceId;
+ }
+
+ /**
+ * Get the deviceObjectId property: The object identifier associated with the Azure Stack device connecting to
+ * Azure.
+ *
+ * @return the deviceObjectId value.
+ */
+ public String deviceObjectId() {
+ return this.deviceObjectId;
+ }
+
+ /**
+ * Get the deviceLinkState property: The connection state of the Azure Stack device.
+ *
+ * @return the deviceLinkState value.
+ */
+ public String deviceLinkState() {
+ return this.deviceLinkState;
+ }
+
+ /**
+ * Get the lastConnectedTime property: The last remote management connection time for the Azure Stack device
+ * connected to the linked subscription resource.
+ *
+ * @return the lastConnectedTime value.
+ */
+ public String lastConnectedTime() {
+ return this.lastConnectedTime;
+ }
+
+ /**
+ * Get the deviceConnectionStatus property: The status of the remote management connection of the Azure Stack
+ * device.
+ *
+ * @return the deviceConnectionStatus value.
+ */
+ public String deviceConnectionStatus() {
+ return this.deviceConnectionStatus;
+ }
+
+ /**
+ * Get the kind property: The kind of the resource.
+ *
+ * @return the kind value.
+ */
+ public String kind() {
+ return this.kind;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the etag property: The entity tag used for optimistic concurrency when modifying the resource.
+ *
+ * @return the etag value.
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+ /**
+ * Set the etag property: The entity tag used for optimistic concurrency when modifying the resource.
+ *
+ * @param etag the etag value to set.
+ * @return the LinkedSubscriptionInner object itself.
+ */
+ public LinkedSubscriptionInner withEtag(String etag) {
+ this.etag = etag;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public LinkedSubscriptionInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public LinkedSubscriptionInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (systemData() != null) {
+ systemData().validate();
+ }
+ }
+}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/OperationInner.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/OperationInner.java
new file mode 100644
index 0000000000000..8fecbd12675d1
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/OperationInner.java
@@ -0,0 +1,107 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestack.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.azurestack.models.Display;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Describes the supported REST operation. */
+@Fluent
+public final class OperationInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class);
+
+ /*
+ * The name of the operation being performed on this particular object.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * Contains the localized display information for this particular operation
+ * or action.
+ */
+ @JsonProperty(value = "display")
+ private Display display;
+
+ /*
+ * The intended executor of the operation.
+ */
+ @JsonProperty(value = "origin")
+ private String origin;
+
+ /**
+ * Get the name property: The name of the operation being performed on this particular object.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: The name of the operation being performed on this particular object.
+ *
+ * @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: Contains the localized display information for this particular operation or action.
+ *
+ * @return the display value.
+ */
+ public Display display() {
+ return this.display;
+ }
+
+ /**
+ * Set the display property: Contains the localized display information for this particular operation or action.
+ *
+ * @param display the display value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withDisplay(Display display) {
+ this.display = display;
+ return this;
+ }
+
+ /**
+ * Get the origin property: The intended executor of the operation.
+ *
+ * @return the origin value.
+ */
+ public String origin() {
+ return this.origin;
+ }
+
+ /**
+ * Set the origin property: The intended executor of the operation.
+ *
+ * @param origin the origin value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withOrigin(String origin) {
+ this.origin = origin;
+ 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/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/ProductInner.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/ProductInner.java
new file mode 100644
index 0000000000000..4cb651f912fea
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/ProductInner.java
@@ -0,0 +1,558 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestack.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.azurestack.models.Compatibility;
+import com.azure.resourcemanager.azurestack.models.IconUris;
+import com.azure.resourcemanager.azurestack.models.ProductLink;
+import com.azure.resourcemanager.azurestack.models.ProductProperties;
+import com.azure.resourcemanager.azurestack.models.SystemData;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Product information. */
+@JsonFlatten
+@Fluent
+public class ProductInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ProductInner.class);
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The display name of the product.
+ */
+ @JsonProperty(value = "properties.displayName")
+ private String displayName;
+
+ /*
+ * The description of the product.
+ */
+ @JsonProperty(value = "properties.description")
+ private String description;
+
+ /*
+ * The user-friendly name of the product publisher.
+ */
+ @JsonProperty(value = "properties.publisherDisplayName")
+ private String publisherDisplayName;
+
+ /*
+ * Publisher identifier.
+ */
+ @JsonProperty(value = "properties.publisherIdentifier")
+ private String publisherIdentifier;
+
+ /*
+ * The offer representing the product.
+ */
+ @JsonProperty(value = "properties.offer")
+ private String offer;
+
+ /*
+ * The version of the product offer.
+ */
+ @JsonProperty(value = "properties.offerVersion")
+ private String offerVersion;
+
+ /*
+ * The product SKU.
+ */
+ @JsonProperty(value = "properties.sku")
+ private String sku;
+
+ /*
+ * The part number used for billing purposes.
+ */
+ @JsonProperty(value = "properties.billingPartNumber")
+ private String billingPartNumber;
+
+ /*
+ * The type of the Virtual Machine Extension.
+ */
+ @JsonProperty(value = "properties.vmExtensionType")
+ private String vmExtensionType;
+
+ /*
+ * The identifier of the gallery item corresponding to the product.
+ */
+ @JsonProperty(value = "properties.galleryItemIdentity")
+ private String galleryItemIdentity;
+
+ /*
+ * Additional links available for this product.
+ */
+ @JsonProperty(value = "properties.iconUris")
+ private IconUris iconUris;
+
+ /*
+ * Additional links available for this product.
+ */
+ @JsonProperty(value = "properties.links")
+ private List links;
+
+ /*
+ * The legal terms.
+ */
+ @JsonProperty(value = "properties.legalTerms")
+ private String legalTerms;
+
+ /*
+ * The privacy policy.
+ */
+ @JsonProperty(value = "properties.privacyPolicy")
+ private String privacyPolicy;
+
+ /*
+ * The length of product content.
+ */
+ @JsonProperty(value = "properties.payloadLength")
+ private Long payloadLength;
+
+ /*
+ * The kind of the product (virtualMachine or virtualMachineExtension)
+ */
+ @JsonProperty(value = "properties.productKind")
+ private String productKind;
+
+ /*
+ * Additional properties for the product.
+ */
+ @JsonProperty(value = "properties.productProperties")
+ private ProductProperties productProperties;
+
+ /*
+ * Product compatibility with current device.
+ */
+ @JsonProperty(value = "properties.compatibility")
+ private Compatibility compatibility;
+
+ /*
+ * The entity tag used for optimistic concurrency when modifying the
+ * resource.
+ */
+ @JsonProperty(value = "etag")
+ private String etag;
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the displayName property: The display name of the product.
+ *
+ * @return the displayName value.
+ */
+ public String displayName() {
+ return this.displayName;
+ }
+
+ /**
+ * Set the displayName property: The display name of the product.
+ *
+ * @param displayName the displayName value to set.
+ * @return the ProductInner object itself.
+ */
+ public ProductInner withDisplayName(String displayName) {
+ this.displayName = displayName;
+ return this;
+ }
+
+ /**
+ * Get the description property: The description of the product.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: The description of the product.
+ *
+ * @param description the description value to set.
+ * @return the ProductInner object itself.
+ */
+ public ProductInner withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the publisherDisplayName property: The user-friendly name of the product publisher.
+ *
+ * @return the publisherDisplayName value.
+ */
+ public String publisherDisplayName() {
+ return this.publisherDisplayName;
+ }
+
+ /**
+ * Set the publisherDisplayName property: The user-friendly name of the product publisher.
+ *
+ * @param publisherDisplayName the publisherDisplayName value to set.
+ * @return the ProductInner object itself.
+ */
+ public ProductInner withPublisherDisplayName(String publisherDisplayName) {
+ this.publisherDisplayName = publisherDisplayName;
+ return this;
+ }
+
+ /**
+ * Get the publisherIdentifier property: Publisher identifier.
+ *
+ * @return the publisherIdentifier value.
+ */
+ public String publisherIdentifier() {
+ return this.publisherIdentifier;
+ }
+
+ /**
+ * Set the publisherIdentifier property: Publisher identifier.
+ *
+ * @param publisherIdentifier the publisherIdentifier value to set.
+ * @return the ProductInner object itself.
+ */
+ public ProductInner withPublisherIdentifier(String publisherIdentifier) {
+ this.publisherIdentifier = publisherIdentifier;
+ return this;
+ }
+
+ /**
+ * Get the offer property: The offer representing the product.
+ *
+ * @return the offer value.
+ */
+ public String offer() {
+ return this.offer;
+ }
+
+ /**
+ * Set the offer property: The offer representing the product.
+ *
+ * @param offer the offer value to set.
+ * @return the ProductInner object itself.
+ */
+ public ProductInner withOffer(String offer) {
+ this.offer = offer;
+ return this;
+ }
+
+ /**
+ * Get the offerVersion property: The version of the product offer.
+ *
+ * @return the offerVersion value.
+ */
+ public String offerVersion() {
+ return this.offerVersion;
+ }
+
+ /**
+ * Set the offerVersion property: The version of the product offer.
+ *
+ * @param offerVersion the offerVersion value to set.
+ * @return the ProductInner object itself.
+ */
+ public ProductInner withOfferVersion(String offerVersion) {
+ this.offerVersion = offerVersion;
+ return this;
+ }
+
+ /**
+ * Get the sku property: The product SKU.
+ *
+ * @return the sku value.
+ */
+ public String sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: The product SKU.
+ *
+ * @param sku the sku value to set.
+ * @return the ProductInner object itself.
+ */
+ public ProductInner withSku(String sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the billingPartNumber property: The part number used for billing purposes.
+ *
+ * @return the billingPartNumber value.
+ */
+ public String billingPartNumber() {
+ return this.billingPartNumber;
+ }
+
+ /**
+ * Set the billingPartNumber property: The part number used for billing purposes.
+ *
+ * @param billingPartNumber the billingPartNumber value to set.
+ * @return the ProductInner object itself.
+ */
+ public ProductInner withBillingPartNumber(String billingPartNumber) {
+ this.billingPartNumber = billingPartNumber;
+ return this;
+ }
+
+ /**
+ * Get the vmExtensionType property: The type of the Virtual Machine Extension.
+ *
+ * @return the vmExtensionType value.
+ */
+ public String vmExtensionType() {
+ return this.vmExtensionType;
+ }
+
+ /**
+ * Set the vmExtensionType property: The type of the Virtual Machine Extension.
+ *
+ * @param vmExtensionType the vmExtensionType value to set.
+ * @return the ProductInner object itself.
+ */
+ public ProductInner withVmExtensionType(String vmExtensionType) {
+ this.vmExtensionType = vmExtensionType;
+ return this;
+ }
+
+ /**
+ * Get the galleryItemIdentity property: The identifier of the gallery item corresponding to the product.
+ *
+ * @return the galleryItemIdentity value.
+ */
+ public String galleryItemIdentity() {
+ return this.galleryItemIdentity;
+ }
+
+ /**
+ * Set the galleryItemIdentity property: The identifier of the gallery item corresponding to the product.
+ *
+ * @param galleryItemIdentity the galleryItemIdentity value to set.
+ * @return the ProductInner object itself.
+ */
+ public ProductInner withGalleryItemIdentity(String galleryItemIdentity) {
+ this.galleryItemIdentity = galleryItemIdentity;
+ return this;
+ }
+
+ /**
+ * Get the iconUris property: Additional links available for this product.
+ *
+ * @return the iconUris value.
+ */
+ public IconUris iconUris() {
+ return this.iconUris;
+ }
+
+ /**
+ * Set the iconUris property: Additional links available for this product.
+ *
+ * @param iconUris the iconUris value to set.
+ * @return the ProductInner object itself.
+ */
+ public ProductInner withIconUris(IconUris iconUris) {
+ this.iconUris = iconUris;
+ return this;
+ }
+
+ /**
+ * Get the links property: Additional links available for this product.
+ *
+ * @return the links value.
+ */
+ public List links() {
+ return this.links;
+ }
+
+ /**
+ * Set the links property: Additional links available for this product.
+ *
+ * @param links the links value to set.
+ * @return the ProductInner object itself.
+ */
+ public ProductInner withLinks(List links) {
+ this.links = links;
+ return this;
+ }
+
+ /**
+ * Get the legalTerms property: The legal terms.
+ *
+ * @return the legalTerms value.
+ */
+ public String legalTerms() {
+ return this.legalTerms;
+ }
+
+ /**
+ * Set the legalTerms property: The legal terms.
+ *
+ * @param legalTerms the legalTerms value to set.
+ * @return the ProductInner object itself.
+ */
+ public ProductInner withLegalTerms(String legalTerms) {
+ this.legalTerms = legalTerms;
+ return this;
+ }
+
+ /**
+ * Get the privacyPolicy property: The privacy policy.
+ *
+ * @return the privacyPolicy value.
+ */
+ public String privacyPolicy() {
+ return this.privacyPolicy;
+ }
+
+ /**
+ * Set the privacyPolicy property: The privacy policy.
+ *
+ * @param privacyPolicy the privacyPolicy value to set.
+ * @return the ProductInner object itself.
+ */
+ public ProductInner withPrivacyPolicy(String privacyPolicy) {
+ this.privacyPolicy = privacyPolicy;
+ return this;
+ }
+
+ /**
+ * Get the payloadLength property: The length of product content.
+ *
+ * @return the payloadLength value.
+ */
+ public Long payloadLength() {
+ return this.payloadLength;
+ }
+
+ /**
+ * Set the payloadLength property: The length of product content.
+ *
+ * @param payloadLength the payloadLength value to set.
+ * @return the ProductInner object itself.
+ */
+ public ProductInner withPayloadLength(Long payloadLength) {
+ this.payloadLength = payloadLength;
+ return this;
+ }
+
+ /**
+ * Get the productKind property: The kind of the product (virtualMachine or virtualMachineExtension).
+ *
+ * @return the productKind value.
+ */
+ public String productKind() {
+ return this.productKind;
+ }
+
+ /**
+ * Set the productKind property: The kind of the product (virtualMachine or virtualMachineExtension).
+ *
+ * @param productKind the productKind value to set.
+ * @return the ProductInner object itself.
+ */
+ public ProductInner withProductKind(String productKind) {
+ this.productKind = productKind;
+ return this;
+ }
+
+ /**
+ * Get the productProperties property: Additional properties for the product.
+ *
+ * @return the productProperties value.
+ */
+ public ProductProperties productProperties() {
+ return this.productProperties;
+ }
+
+ /**
+ * Set the productProperties property: Additional properties for the product.
+ *
+ * @param productProperties the productProperties value to set.
+ * @return the ProductInner object itself.
+ */
+ public ProductInner withProductProperties(ProductProperties productProperties) {
+ this.productProperties = productProperties;
+ return this;
+ }
+
+ /**
+ * Get the compatibility property: Product compatibility with current device.
+ *
+ * @return the compatibility value.
+ */
+ public Compatibility compatibility() {
+ return this.compatibility;
+ }
+
+ /**
+ * Set the compatibility property: Product compatibility with current device.
+ *
+ * @param compatibility the compatibility value to set.
+ * @return the ProductInner object itself.
+ */
+ public ProductInner withCompatibility(Compatibility compatibility) {
+ this.compatibility = compatibility;
+ return this;
+ }
+
+ /**
+ * Get the etag property: The entity tag used for optimistic concurrency when modifying the resource.
+ *
+ * @return the etag value.
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+ /**
+ * Set the etag property: The entity tag used for optimistic concurrency when modifying the resource.
+ *
+ * @param etag the etag value to set.
+ * @return the ProductInner object itself.
+ */
+ public ProductInner withEtag(String etag) {
+ this.etag = etag;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (systemData() != null) {
+ systemData().validate();
+ }
+ if (iconUris() != null) {
+ iconUris().validate();
+ }
+ if (links() != null) {
+ links().forEach(e -> e.validate());
+ }
+ if (productProperties() != null) {
+ productProperties().validate();
+ }
+ if (compatibility() != null) {
+ compatibility().validate();
+ }
+ }
+}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/ProductListInner.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/ProductListInner.java
new file mode 100644
index 0000000000000..f5e2a50ca3469
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/ProductListInner.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.azurestack.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;
+import java.util.List;
+
+/** Pageable list of products. */
+@Fluent
+public final class ProductListInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ProductListInner.class);
+
+ /*
+ * URI to the next page.
+ */
+ @JsonProperty(value = "nextLink")
+ private String nextLink;
+
+ /*
+ * List of products.
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /**
+ * Get the nextLink property: URI to the next page.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Set the nextLink property: URI to the next page.
+ *
+ * @param nextLink the nextLink value to set.
+ * @return the ProductListInner object itself.
+ */
+ public ProductListInner withNextLink(String nextLink) {
+ this.nextLink = nextLink;
+ return this;
+ }
+
+ /**
+ * Get the value property: List of products.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: List of products.
+ *
+ * @param value the value value to set.
+ * @return the ProductListInner object itself.
+ */
+ public ProductListInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * 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/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/ProductLogInner.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/ProductLogInner.java
new file mode 100644
index 0000000000000..b6d75a701f234
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/ProductLogInner.java
@@ -0,0 +1,189 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestack.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Product action log. */
+@Immutable
+public final class ProductLogInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ProductLogInner.class);
+
+ /*
+ * Log ID.
+ */
+ @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
+ private String id;
+
+ /*
+ * Logged product ID.
+ */
+ @JsonProperty(value = "productId", access = JsonProperty.Access.WRITE_ONLY)
+ private String productId;
+
+ /*
+ * Logged subscription ID.
+ */
+ @JsonProperty(value = "subscriptionId", access = JsonProperty.Access.WRITE_ONLY)
+ private String subscriptionId;
+
+ /*
+ * Logged registration name.
+ */
+ @JsonProperty(value = "registrationName", access = JsonProperty.Access.WRITE_ONLY)
+ private String registrationName;
+
+ /*
+ * Logged resource group name.
+ */
+ @JsonProperty(value = "resourceGroupName", access = JsonProperty.Access.WRITE_ONLY)
+ private String resourceGroupName;
+
+ /*
+ * Logged operation.
+ */
+ @JsonProperty(value = "operation", access = JsonProperty.Access.WRITE_ONLY)
+ private String operation;
+
+ /*
+ * Operation start datetime.
+ */
+ @JsonProperty(value = "startDate", access = JsonProperty.Access.WRITE_ONLY)
+ private String startDate;
+
+ /*
+ * Operation end datetime.
+ */
+ @JsonProperty(value = "endDate", access = JsonProperty.Access.WRITE_ONLY)
+ private String endDate;
+
+ /*
+ * Operation status.
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ private String status;
+
+ /*
+ * Operation error data.
+ */
+ @JsonProperty(value = "error", access = JsonProperty.Access.WRITE_ONLY)
+ private String error;
+
+ /*
+ * Operation error details.
+ */
+ @JsonProperty(value = "details", access = JsonProperty.Access.WRITE_ONLY)
+ private String details;
+
+ /**
+ * Get the id property: Log ID.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the productId property: Logged product ID.
+ *
+ * @return the productId value.
+ */
+ public String productId() {
+ return this.productId;
+ }
+
+ /**
+ * Get the subscriptionId property: Logged subscription ID.
+ *
+ * @return the subscriptionId value.
+ */
+ public String subscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /**
+ * Get the registrationName property: Logged registration name.
+ *
+ * @return the registrationName value.
+ */
+ public String registrationName() {
+ return this.registrationName;
+ }
+
+ /**
+ * Get the resourceGroupName property: Logged resource group name.
+ *
+ * @return the resourceGroupName value.
+ */
+ public String resourceGroupName() {
+ return this.resourceGroupName;
+ }
+
+ /**
+ * Get the operation property: Logged operation.
+ *
+ * @return the operation value.
+ */
+ public String operation() {
+ return this.operation;
+ }
+
+ /**
+ * Get the startDate property: Operation start datetime.
+ *
+ * @return the startDate value.
+ */
+ public String startDate() {
+ return this.startDate;
+ }
+
+ /**
+ * Get the endDate property: Operation end datetime.
+ *
+ * @return the endDate value.
+ */
+ public String endDate() {
+ return this.endDate;
+ }
+
+ /**
+ * Get the status property: Operation status.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Get the error property: Operation error data.
+ *
+ * @return the error value.
+ */
+ public String error() {
+ return this.error;
+ }
+
+ /**
+ * Get the details property: Operation error details.
+ *
+ * @return the details value.
+ */
+ public String details() {
+ return this.details;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/RegistrationInner.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/RegistrationInner.java
new file mode 100644
index 0000000000000..0755a30ea0128
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/RegistrationInner.java
@@ -0,0 +1,182 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestack.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.Resource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.azurestack.models.SystemData;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Registration information. */
+@JsonFlatten
+@Fluent
+public class RegistrationInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(RegistrationInner.class);
+
+ /*
+ * The object identifier associated with the Azure Stack connecting to
+ * Azure.
+ */
+ @JsonProperty(value = "properties.objectId")
+ private String objectId;
+
+ /*
+ * The identifier of the registered Azure Stack.
+ */
+ @JsonProperty(value = "properties.cloudId")
+ private String cloudId;
+
+ /*
+ * Specifies the billing mode for the Azure Stack registration.
+ */
+ @JsonProperty(value = "properties.billingModel")
+ private String billingModel;
+
+ /*
+ * The kind of the resource.
+ */
+ @JsonProperty(value = "kind", access = JsonProperty.Access.WRITE_ONLY)
+ private String kind;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The entity tag used for optimistic concurrency when modifying the
+ * resource.
+ */
+ @JsonProperty(value = "etag")
+ private String etag;
+
+ /**
+ * Get the objectId property: The object identifier associated with the Azure Stack connecting to Azure.
+ *
+ * @return the objectId value.
+ */
+ public String objectId() {
+ return this.objectId;
+ }
+
+ /**
+ * Set the objectId property: The object identifier associated with the Azure Stack connecting to Azure.
+ *
+ * @param objectId the objectId value to set.
+ * @return the RegistrationInner object itself.
+ */
+ public RegistrationInner withObjectId(String objectId) {
+ this.objectId = objectId;
+ return this;
+ }
+
+ /**
+ * Get the cloudId property: The identifier of the registered Azure Stack.
+ *
+ * @return the cloudId value.
+ */
+ public String cloudId() {
+ return this.cloudId;
+ }
+
+ /**
+ * Set the cloudId property: The identifier of the registered Azure Stack.
+ *
+ * @param cloudId the cloudId value to set.
+ * @return the RegistrationInner object itself.
+ */
+ public RegistrationInner withCloudId(String cloudId) {
+ this.cloudId = cloudId;
+ return this;
+ }
+
+ /**
+ * Get the billingModel property: Specifies the billing mode for the Azure Stack registration.
+ *
+ * @return the billingModel value.
+ */
+ public String billingModel() {
+ return this.billingModel;
+ }
+
+ /**
+ * Set the billingModel property: Specifies the billing mode for the Azure Stack registration.
+ *
+ * @param billingModel the billingModel value to set.
+ * @return the RegistrationInner object itself.
+ */
+ public RegistrationInner withBillingModel(String billingModel) {
+ this.billingModel = billingModel;
+ return this;
+ }
+
+ /**
+ * Get the kind property: The kind of the resource.
+ *
+ * @return the kind value.
+ */
+ public String kind() {
+ return this.kind;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the etag property: The entity tag used for optimistic concurrency when modifying the resource.
+ *
+ * @return the etag value.
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+ /**
+ * Set the etag property: The entity tag used for optimistic concurrency when modifying the resource.
+ *
+ * @param etag the etag value to set.
+ * @return the RegistrationInner object itself.
+ */
+ public RegistrationInner withEtag(String etag) {
+ this.etag = etag;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RegistrationInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RegistrationInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (systemData() != null) {
+ systemData().validate();
+ }
+ }
+}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/package-info.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/package-info.java
new file mode 100644
index 0000000000000..2610f34d44a12
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/package-info.java
@@ -0,0 +1,6 @@
+// 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 AzureStackManagementClient. Azure Stack. */
+package com.azure.resourcemanager.azurestack.fluent.models;
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/package-info.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/package-info.java
new file mode 100644
index 0000000000000..20c1c48e3d87f
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/package-info.java
@@ -0,0 +1,6 @@
+// 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 AzureStackManagementClient. Azure Stack. */
+package com.azure.resourcemanager.azurestack.fluent;
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/ActivationKeyResultImpl.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/ActivationKeyResultImpl.java
new file mode 100644
index 0000000000000..939c4a220b0a1
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/ActivationKeyResultImpl.java
@@ -0,0 +1,32 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestack.implementation;
+
+import com.azure.resourcemanager.azurestack.AzureStackManager;
+import com.azure.resourcemanager.azurestack.fluent.models.ActivationKeyResultInner;
+import com.azure.resourcemanager.azurestack.models.ActivationKeyResult;
+
+public final class ActivationKeyResultImpl implements ActivationKeyResult {
+ private ActivationKeyResultInner innerObject;
+
+ private final AzureStackManager serviceManager;
+
+ ActivationKeyResultImpl(ActivationKeyResultInner innerObject, AzureStackManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String activationKey() {
+ return this.innerModel().activationKey();
+ }
+
+ public ActivationKeyResultInner innerModel() {
+ return this.innerObject;
+ }
+
+ private AzureStackManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/AzureStackManagementClientBuilder.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/AzureStackManagementClientBuilder.java
new file mode 100644
index 0000000000000..90ff22db5cc3d
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/AzureStackManagementClientBuilder.java
@@ -0,0 +1,149 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestack.implementation;
+
+import com.azure.core.annotation.ServiceClientBuilder;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.CookiePolicy;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerAdapter;
+import java.time.Duration;
+
+/** A builder for creating a new instance of the AzureStackManagementClientImpl type. */
+@ServiceClientBuilder(serviceClients = {AzureStackManagementClientImpl.class})
+public final class AzureStackManagementClientBuilder {
+ /*
+ * Subscription credentials that uniquely identify Microsoft Azure
+ * subscription. The subscription ID forms part of the URI for every
+ * service call.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets Subscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part
+ * of the URI for every service call.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the AzureStackManagementClientBuilder.
+ */
+ public AzureStackManagementClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the AzureStackManagementClientBuilder.
+ */
+ public AzureStackManagementClientBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * The environment to connect to
+ */
+ private AzureEnvironment environment;
+
+ /**
+ * Sets The environment to connect to.
+ *
+ * @param environment the environment value.
+ * @return the AzureStackManagementClientBuilder.
+ */
+ public AzureStackManagementClientBuilder environment(AzureEnvironment environment) {
+ this.environment = environment;
+ return this;
+ }
+
+ /*
+ * The default poll interval for long-running operation
+ */
+ private Duration defaultPollInterval;
+
+ /**
+ * Sets The default poll interval for long-running operation.
+ *
+ * @param defaultPollInterval the defaultPollInterval value.
+ * @return the AzureStackManagementClientBuilder.
+ */
+ public AzureStackManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
+ return this;
+ }
+
+ /*
+ * The HTTP pipeline to send requests through
+ */
+ private HttpPipeline pipeline;
+
+ /**
+ * Sets The HTTP pipeline to send requests through.
+ *
+ * @param pipeline the pipeline value.
+ * @return the AzureStackManagementClientBuilder.
+ */
+ public AzureStackManagementClientBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
+ return this;
+ }
+
+ /*
+ * The serializer to serialize an object into a string
+ */
+ private SerializerAdapter serializerAdapter;
+
+ /**
+ * Sets The serializer to serialize an object into a string.
+ *
+ * @param serializerAdapter the serializerAdapter value.
+ * @return the AzureStackManagementClientBuilder.
+ */
+ public AzureStackManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of AzureStackManagementClientImpl with the provided parameters.
+ *
+ * @return an instance of AzureStackManagementClientImpl.
+ */
+ public AzureStackManagementClientImpl buildClient() {
+ if (endpoint == null) {
+ this.endpoint = "https://management.azure.com";
+ }
+ if (environment == null) {
+ this.environment = AzureEnvironment.AZURE;
+ }
+ if (defaultPollInterval == null) {
+ this.defaultPollInterval = Duration.ofSeconds(30);
+ }
+ if (pipeline == null) {
+ this.pipeline =
+ new HttpPipelineBuilder()
+ .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy())
+ .build();
+ }
+ if (serializerAdapter == null) {
+ this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
+ }
+ AzureStackManagementClientImpl client =
+ new AzureStackManagementClientImpl(
+ pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ return client;
+ }
+}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/AzureStackManagementClientImpl.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/AzureStackManagementClientImpl.java
new file mode 100644
index 0000000000000..4515024cc27bb
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/AzureStackManagementClientImpl.java
@@ -0,0 +1,368 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestack.implementation;
+
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpHeaders;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpResponse;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.management.polling.PollerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.AsyncPollResponse;
+import com.azure.core.util.polling.LongRunningOperationStatus;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.serializer.SerializerAdapter;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.azurestack.fluent.AzureStackManagementClient;
+import com.azure.resourcemanager.azurestack.fluent.CloudManifestFilesClient;
+import com.azure.resourcemanager.azurestack.fluent.CustomerSubscriptionsClient;
+import com.azure.resourcemanager.azurestack.fluent.LinkedSubscriptionsClient;
+import com.azure.resourcemanager.azurestack.fluent.OperationsClient;
+import com.azure.resourcemanager.azurestack.fluent.ProductsClient;
+import com.azure.resourcemanager.azurestack.fluent.RegistrationsClient;
+import java.io.IOException;
+import java.lang.reflect.Type;
+import java.nio.ByteBuffer;
+import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
+import java.time.Duration;
+import java.util.Map;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** Initializes a new instance of the AzureStackManagementClientImpl type. */
+@ServiceClient(builder = AzureStackManagementClientBuilder.class)
+public final class AzureStackManagementClientImpl implements AzureStackManagementClient {
+ private final ClientLogger logger = new ClientLogger(AzureStackManagementClientImpl.class);
+
+ /**
+ * Subscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part of
+ * the URI for every service call.
+ */
+ private final String subscriptionId;
+
+ /**
+ * Gets Subscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part
+ * of the URI for every service call.
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /** server parameter. */
+ private final String endpoint;
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /** Api Version. */
+ private final String apiVersion;
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /** The HTTP pipeline to send requests through. */
+ private final HttpPipeline httpPipeline;
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ public HttpPipeline getHttpPipeline() {
+ return this.httpPipeline;
+ }
+
+ /** The serializer to serialize an object into a string. */
+ private final SerializerAdapter serializerAdapter;
+
+ /**
+ * Gets The serializer to serialize an object into a string.
+ *
+ * @return the serializerAdapter value.
+ */
+ SerializerAdapter getSerializerAdapter() {
+ return this.serializerAdapter;
+ }
+
+ /** The default poll interval for long-running operation. */
+ private final Duration defaultPollInterval;
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ public Duration getDefaultPollInterval() {
+ return this.defaultPollInterval;
+ }
+
+ /** The OperationsClient object to access its operations. */
+ private final OperationsClient operations;
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ public OperationsClient getOperations() {
+ return this.operations;
+ }
+
+ /** The CloudManifestFilesClient object to access its operations. */
+ private final CloudManifestFilesClient cloudManifestFiles;
+
+ /**
+ * Gets the CloudManifestFilesClient object to access its operations.
+ *
+ * @return the CloudManifestFilesClient object.
+ */
+ public CloudManifestFilesClient getCloudManifestFiles() {
+ return this.cloudManifestFiles;
+ }
+
+ /** The CustomerSubscriptionsClient object to access its operations. */
+ private final CustomerSubscriptionsClient customerSubscriptions;
+
+ /**
+ * Gets the CustomerSubscriptionsClient object to access its operations.
+ *
+ * @return the CustomerSubscriptionsClient object.
+ */
+ public CustomerSubscriptionsClient getCustomerSubscriptions() {
+ return this.customerSubscriptions;
+ }
+
+ /** The ProductsClient object to access its operations. */
+ private final ProductsClient products;
+
+ /**
+ * Gets the ProductsClient object to access its operations.
+ *
+ * @return the ProductsClient object.
+ */
+ public ProductsClient getProducts() {
+ return this.products;
+ }
+
+ /** The RegistrationsClient object to access its operations. */
+ private final RegistrationsClient registrations;
+
+ /**
+ * Gets the RegistrationsClient object to access its operations.
+ *
+ * @return the RegistrationsClient object.
+ */
+ public RegistrationsClient getRegistrations() {
+ return this.registrations;
+ }
+
+ /** The LinkedSubscriptionsClient object to access its operations. */
+ private final LinkedSubscriptionsClient linkedSubscriptions;
+
+ /**
+ * Gets the LinkedSubscriptionsClient object to access its operations.
+ *
+ * @return the LinkedSubscriptionsClient object.
+ */
+ public LinkedSubscriptionsClient getLinkedSubscriptions() {
+ return this.linkedSubscriptions;
+ }
+
+ /**
+ * Initializes an instance of AzureStackManagementClient client.
+ *
+ * @param httpPipeline The HTTP pipeline to send requests through.
+ * @param serializerAdapter The serializer to serialize an object into a string.
+ * @param defaultPollInterval The default poll interval for long-running operation.
+ * @param environment The Azure environment.
+ * @param subscriptionId Subscription credentials that uniquely identify Microsoft Azure subscription. The
+ * subscription ID forms part of the URI for every service call.
+ * @param endpoint server parameter.
+ */
+ AzureStackManagementClientImpl(
+ HttpPipeline httpPipeline,
+ SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval,
+ AzureEnvironment environment,
+ String subscriptionId,
+ String endpoint) {
+ this.httpPipeline = httpPipeline;
+ this.serializerAdapter = serializerAdapter;
+ this.defaultPollInterval = defaultPollInterval;
+ this.subscriptionId = subscriptionId;
+ this.endpoint = endpoint;
+ this.apiVersion = "2020-06-01-preview";
+ this.operations = new OperationsClientImpl(this);
+ this.cloudManifestFiles = new CloudManifestFilesClientImpl(this);
+ this.customerSubscriptions = new CustomerSubscriptionsClientImpl(this);
+ this.products = new ProductsClientImpl(this);
+ this.registrations = new RegistrationsClientImpl(this);
+ this.linkedSubscriptions = new LinkedSubscriptionsClientImpl(this);
+ }
+
+ /**
+ * Gets default client context.
+ *
+ * @return the default client context.
+ */
+ public Context getContext() {
+ return Context.NONE;
+ }
+
+ /**
+ * Merges default client context with provided context.
+ *
+ * @param context the context to be merged with default client context.
+ * @return the merged context.
+ */
+ public Context mergeContext(Context context) {
+ for (Map.Entry