scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
private Duration defaultPollInterval;
private Configurable() {
@@ -136,6 +155,17 @@ public Configurable withPolicy(HttpPipelinePolicy policy) {
return this;
}
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
/**
* Sets the retry policy to the HTTP pipeline.
*
@@ -147,6 +177,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
return this;
}
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
/**
* Sets the default poll interval, used when service does not provide "Retry-After" header.
*
@@ -154,9 +197,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
- throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
@@ -192,20 +237,38 @@ public AzureStackManager authenticate(TokenCredential credential, AzureProfile p
userAgentBuilder.append(" (auto-generated)");
}
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
if (retryPolicy == null) {
- retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
}
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies
- .add(
- new BearerTokenAuthenticationPolicy(
- credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
- policies.addAll(this.policies);
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
@@ -217,7 +280,11 @@ public AzureStackManager authenticate(TokenCredential credential, AzureProfile p
}
}
- /** @return Resource collection API of Operations. */
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
@@ -225,7 +292,11 @@ public Operations operations() {
return operations;
}
- /** @return Resource collection API of CloudManifestFiles. */
+ /**
+ * Gets the resource collection API of CloudManifestFiles.
+ *
+ * @return Resource collection API of CloudManifestFiles.
+ */
public CloudManifestFiles cloudManifestFiles() {
if (this.cloudManifestFiles == null) {
this.cloudManifestFiles = new CloudManifestFilesImpl(clientObject.getCloudManifestFiles(), this);
@@ -233,7 +304,23 @@ public CloudManifestFiles cloudManifestFiles() {
return cloudManifestFiles;
}
- /** @return Resource collection API of CustomerSubscriptions. */
+ /**
+ * Gets the resource collection API of DeploymentLicenses.
+ *
+ * @return Resource collection API of DeploymentLicenses.
+ */
+ public DeploymentLicenses deploymentLicenses() {
+ if (this.deploymentLicenses == null) {
+ this.deploymentLicenses = new DeploymentLicensesImpl(clientObject.getDeploymentLicenses(), this);
+ }
+ return deploymentLicenses;
+ }
+
+ /**
+ * Gets the resource collection API of CustomerSubscriptions. It manages CustomerSubscription.
+ *
+ * @return Resource collection API of CustomerSubscriptions.
+ */
public CustomerSubscriptions customerSubscriptions() {
if (this.customerSubscriptions == null) {
this.customerSubscriptions = new CustomerSubscriptionsImpl(clientObject.getCustomerSubscriptions(), this);
@@ -241,7 +328,11 @@ public CustomerSubscriptions customerSubscriptions() {
return customerSubscriptions;
}
- /** @return Resource collection API of Products. */
+ /**
+ * Gets the resource collection API of Products.
+ *
+ * @return Resource collection API of Products.
+ */
public Products products() {
if (this.products == null) {
this.products = new ProductsImpl(clientObject.getProducts(), this);
@@ -249,7 +340,11 @@ public Products products() {
return products;
}
- /** @return Resource collection API of Registrations. */
+ /**
+ * Gets the resource collection API of Registrations. It manages Registration.
+ *
+ * @return Resource collection API of Registrations.
+ */
public Registrations registrations() {
if (this.registrations == null) {
this.registrations = new RegistrationsImpl(clientObject.getRegistrations(), this);
@@ -257,14 +352,6 @@ public Registrations registrations() {
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.
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
index 551173793bb0..25fac675971b 100644
--- 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
@@ -59,6 +59,13 @@ public interface AzureStackManagementClient {
*/
CloudManifestFilesClient getCloudManifestFiles();
+ /**
+ * Gets the DeploymentLicensesClient object to access its operations.
+ *
+ * @return the DeploymentLicensesClient object.
+ */
+ DeploymentLicensesClient getDeploymentLicenses();
+
/**
* Gets the CustomerSubscriptionsClient object to access its operations.
*
@@ -79,11 +86,4 @@ public interface AzureStackManagementClient {
* @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
index f1834421d572..ba8a821dd2a5 100644
--- 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
@@ -29,7 +29,7 @@ public interface CloudManifestFilesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return cloud specific manifest GET response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listWithResponse(Context context);
@@ -55,7 +55,7 @@ public interface CloudManifestFilesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return cloud specific manifest GET response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
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
index 696d572bb26f..3e47e21ea5bd 100644
--- 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
@@ -21,7 +21,7 @@ public interface CustomerSubscriptionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return pageable list of customer subscriptions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroup, String registrationName);
@@ -35,7 +35,7 @@ public interface CustomerSubscriptionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return pageable list of customer subscriptions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroup, String registrationName, Context context);
@@ -64,7 +64,7 @@ public interface CustomerSubscriptionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return customer subscription along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -93,7 +93,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
@@ -129,7 +129,7 @@ CustomerSubscriptionInner create(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return customer subscription.
+ * @return customer subscription along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createWithResponse(
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/DeploymentLicensesClient.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/DeploymentLicensesClient.java
new file mode 100644
index 000000000000..f5ca71fc3a83
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/DeploymentLicensesClient.java
@@ -0,0 +1,41 @@
+// 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.DeploymentLicenseResponseInner;
+import com.azure.resourcemanager.azurestack.models.DeploymentLicenseRequest;
+
+/** An instance of this class provides access to all the operations defined in DeploymentLicensesClient. */
+public interface DeploymentLicensesClient {
+ /**
+ * Creates a license that can be used to deploy an Azure Stack device.
+ *
+ * @param deploymentLicenseRequest Request body for creating a deployment license.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a license that can be used to deploy an Azure Stack device.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentLicenseResponseInner create(DeploymentLicenseRequest deploymentLicenseRequest);
+
+ /**
+ * Creates a license that can be used to deploy an Azure Stack device.
+ *
+ * @param deploymentLicenseRequest Request body for creating a deployment license.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a license that can be used to deploy an Azure Stack device along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createWithResponse(
+ DeploymentLicenseRequest deploymentLicenseRequest, 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
deleted file mode 100644
index 4b39c0114f0f..000000000000
--- a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/LinkedSubscriptionsClient.java
+++ /dev/null
@@ -1,179 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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
index f294306434eb..90b43878d76b 100644
--- 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
@@ -17,7 +17,7 @@ public interface OperationsClient {
*
* @throws com.azure.core.management.exception.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.
+ * @return list of Operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -29,7 +29,7 @@ public interface OperationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return list of Operations as paginated response with {@link PagedIterable}.
*/
@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
index a8456312d9a4..e7f225192a07 100644
--- 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
@@ -26,7 +26,7 @@ public interface ProductsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return pageable list of products as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroup, String registrationName);
@@ -40,7 +40,7 @@ public interface ProductsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return pageable list of products as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroup, String registrationName, Context context);
@@ -69,7 +69,7 @@ public interface ProductsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return product information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -99,7 +99,8 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return extended description about the product required for installing it into Azure Stack.
+ * @return extended description about the product required for installing it into Azure Stack along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listDetailsWithResponse(
@@ -117,7 +118,7 @@ Response listDetailsWithResponse(
* @return pageable list of products.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ProductListInner getProducts(String resourceGroup, String registrationName, String productName);
+ ProductListInner listProducts(String resourceGroup, String registrationName, String productName);
/**
* Returns a list of products.
@@ -130,9 +131,44 @@ Response listDetailsWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listProductsWithResponse(
+ String resourceGroup,
+ String registrationName,
+ String productName,
+ DeviceConfiguration deviceConfiguration,
+ 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 along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
Response getProductsWithResponse(
String resourceGroup,
String registrationName,
@@ -165,7 +201,7 @@ Response getProductsWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return product information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getProductWithResponse(
@@ -200,7 +236,7 @@ Response getProductWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return product action log along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response uploadLogWithResponse(
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
index 062a41d3d102..e13870a8978e 100644
--- 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
@@ -22,7 +22,7 @@ public interface RegistrationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return pageable list of registrations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroup);
@@ -35,11 +35,33 @@ public interface RegistrationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return pageable list of registrations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroup, Context context);
+ /**
+ * Returns a list of all registrations 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 pageable list of registrations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Returns a list of all registrations 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 pageable list of registrations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
/**
* Returns the properties of an Azure Stack registration.
*
@@ -62,7 +84,7 @@ public interface RegistrationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return registration information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
@@ -89,7 +111,7 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroup, String registrationName, Context context);
@@ -118,7 +140,7 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return registration information.
+ * @return registration information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -148,7 +170,7 @@ Response createOrUpdateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return registration information.
+ * @return registration information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
@@ -176,7 +198,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the resource containing the Azure Stack activation key.
+ * @return the resource containing the Azure Stack activation key along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getActivationKeyWithResponse(
@@ -203,7 +225,7 @@ Response getActivationKeyWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response 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
index 808c1126580b..6ba8a66931ad 100644
--- 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
@@ -5,15 +5,11 @@
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.
*/
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/CloudManifestFileEnvironmentEndpoints.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/CloudManifestFileEnvironmentEndpoints.java
new file mode 100644
index 000000000000..7feb4cb4b579
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/CloudManifestFileEnvironmentEndpoints.java
@@ -0,0 +1,72 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestack.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Cloud specific environment endpoints for AzureStack deployment. */
+@Fluent
+public final class CloudManifestFileEnvironmentEndpoints {
+ /*
+ * ARM endpoint.
+ */
+ @JsonProperty(value = "customCloudArmEndpoint")
+ private String customCloudArmEndpoint;
+
+ /*
+ * Dsms endpoint.
+ */
+ @JsonProperty(value = "externalDsmsEndpoint")
+ private String externalDsmsEndpoint;
+
+ /**
+ * Get the customCloudArmEndpoint property: ARM endpoint.
+ *
+ * @return the customCloudArmEndpoint value.
+ */
+ public String customCloudArmEndpoint() {
+ return this.customCloudArmEndpoint;
+ }
+
+ /**
+ * Set the customCloudArmEndpoint property: ARM endpoint.
+ *
+ * @param customCloudArmEndpoint the customCloudArmEndpoint value to set.
+ * @return the CloudManifestFileEnvironmentEndpoints object itself.
+ */
+ public CloudManifestFileEnvironmentEndpoints withCustomCloudArmEndpoint(String customCloudArmEndpoint) {
+ this.customCloudArmEndpoint = customCloudArmEndpoint;
+ return this;
+ }
+
+ /**
+ * Get the externalDsmsEndpoint property: Dsms endpoint.
+ *
+ * @return the externalDsmsEndpoint value.
+ */
+ public String externalDsmsEndpoint() {
+ return this.externalDsmsEndpoint;
+ }
+
+ /**
+ * Set the externalDsmsEndpoint property: Dsms endpoint.
+ *
+ * @param externalDsmsEndpoint the externalDsmsEndpoint value to set.
+ * @return the CloudManifestFileEnvironmentEndpoints object itself.
+ */
+ public CloudManifestFileEnvironmentEndpoints withExternalDsmsEndpoint(String externalDsmsEndpoint) {
+ this.externalDsmsEndpoint = externalDsmsEndpoint;
+ 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
index 3ffed19f56ab..ec37aaa640e5 100644
--- 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
@@ -6,16 +6,12 @@
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.
*/
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
index 22838f76b411..edab38e5e4e5 100644
--- 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
@@ -5,30 +5,17 @@
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.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
-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;
-
+public final class CustomerSubscriptionInner extends ProxyResource {
/*
- * Tenant Id.
+ * Customer subscription properties.
*/
- @JsonProperty(value = "properties.tenantId")
- private String tenantId;
+ @JsonProperty(value = "properties")
+ private CustomerSubscriptionProperties innerProperties;
/*
* The entity tag used for optimistic concurrency when modifying the
@@ -38,51 +25,54 @@ public class CustomerSubscriptionInner extends ProxyResource {
private String etag;
/**
- * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ * Get the innerProperties property: Customer subscription properties.
*
- * @return the systemData value.
+ * @return the innerProperties value.
*/
- public SystemData systemData() {
- return this.systemData;
+ private CustomerSubscriptionProperties innerProperties() {
+ return this.innerProperties;
}
/**
- * Get the tenantId property: Tenant Id.
+ * Get the etag property: The entity tag used for optimistic concurrency when modifying the resource.
*
- * @return the tenantId value.
+ * @return the etag value.
*/
- public String tenantId() {
- return this.tenantId;
+ public String etag() {
+ return this.etag;
}
/**
- * Set the tenantId property: Tenant Id.
+ * Set the etag property: The entity tag used for optimistic concurrency when modifying the resource.
*
- * @param tenantId the tenantId value to set.
+ * @param etag the etag value to set.
* @return the CustomerSubscriptionInner object itself.
*/
- public CustomerSubscriptionInner withTenantId(String tenantId) {
- this.tenantId = tenantId;
+ public CustomerSubscriptionInner withEtag(String etag) {
+ this.etag = etag;
return this;
}
/**
- * Get the etag property: The entity tag used for optimistic concurrency when modifying the resource.
+ * Get the tenantId property: Tenant Id.
*
- * @return the etag value.
+ * @return the tenantId value.
*/
- public String etag() {
- return this.etag;
+ public String tenantId() {
+ return this.innerProperties() == null ? null : this.innerProperties().tenantId();
}
/**
- * Set the etag property: The entity tag used for optimistic concurrency when modifying the resource.
+ * Set the tenantId property: Tenant Id.
*
- * @param etag the etag value to set.
+ * @param tenantId the tenantId value to set.
* @return the CustomerSubscriptionInner object itself.
*/
- public CustomerSubscriptionInner withEtag(String etag) {
- this.etag = etag;
+ public CustomerSubscriptionInner withTenantId(String tenantId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CustomerSubscriptionProperties();
+ }
+ this.innerProperties().withTenantId(tenantId);
return this;
}
@@ -92,5 +82,8 @@ public CustomerSubscriptionInner withEtag(String etag) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/CustomerSubscriptionProperties.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/CustomerSubscriptionProperties.java
new file mode 100644
index 000000000000..250dcb4c198b
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/CustomerSubscriptionProperties.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestack.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Customer subscription properties. */
+@Fluent
+public final class CustomerSubscriptionProperties {
+ /*
+ * Tenant Id.
+ */
+ @JsonProperty(value = "tenantId")
+ private String tenantId;
+
+ /**
+ * 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 CustomerSubscriptionProperties object itself.
+ */
+ public CustomerSubscriptionProperties withTenantId(String tenantId) {
+ this.tenantId = tenantId;
+ 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/DeploymentLicenseResponseInner.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/DeploymentLicenseResponseInner.java
new file mode 100644
index 000000000000..eca0b7adcb5e
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/DeploymentLicenseResponseInner.java
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestack.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** A license that can be used to deploy an Azure Stack device. */
+@Fluent
+public final class DeploymentLicenseResponseInner {
+ /*
+ * A license chain that can be used to temporarily activate an Azure Stack
+ * device.
+ */
+ @JsonProperty(value = "temporaryLicenseChain")
+ private List temporaryLicenseChain;
+
+ /*
+ * Signature of the license chain.
+ */
+ @JsonProperty(value = "signature")
+ private String signature;
+
+ /**
+ * Get the temporaryLicenseChain property: A license chain that can be used to temporarily activate an Azure Stack
+ * device.
+ *
+ * @return the temporaryLicenseChain value.
+ */
+ public List temporaryLicenseChain() {
+ return this.temporaryLicenseChain;
+ }
+
+ /**
+ * Set the temporaryLicenseChain property: A license chain that can be used to temporarily activate an Azure Stack
+ * device.
+ *
+ * @param temporaryLicenseChain the temporaryLicenseChain value to set.
+ * @return the DeploymentLicenseResponseInner object itself.
+ */
+ public DeploymentLicenseResponseInner withTemporaryLicenseChain(List temporaryLicenseChain) {
+ this.temporaryLicenseChain = temporaryLicenseChain;
+ return this;
+ }
+
+ /**
+ * Get the signature property: Signature of the license chain.
+ *
+ * @return the signature value.
+ */
+ public String signature() {
+ return this.signature;
+ }
+
+ /**
+ * Set the signature property: Signature of the license chain.
+ *
+ * @param signature the signature value to set.
+ * @return the DeploymentLicenseResponseInner object itself.
+ */
+ public DeploymentLicenseResponseInner withSignature(String signature) {
+ this.signature = signature;
+ 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/ExtendedProductInner.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/ExtendedProductInner.java
index c6b72a8bd392..1d6fb2ab39aa 100644
--- 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
@@ -5,22 +5,16 @@
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);
-
+public final class ExtendedProductInner {
/*
* The URI to the .azpkg file that provides information required for
* showing product in the gallery.
@@ -36,65 +30,10 @@ public class ExtendedProductInner {
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.
+ * Specifies additional properties describing the product.
*/
- @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;
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ private ExtendedProductProperties innerProperties;
/**
* Get the galleryPackageBlobSasUri property: The URI to the .azpkg file that provides information required for
@@ -116,57 +55,57 @@ public String productKind() {
}
/**
- * Get the computeRole property: Specifies kind of compute role included in the package.
+ * Get the innerProperties property: Specifies additional properties describing the product.
*
- * @return the computeRole value.
+ * @return the innerProperties value.
*/
- public ComputeRole computeRole() {
- return this.computeRole;
+ private ExtendedProductProperties innerProperties() {
+ return this.innerProperties;
}
/**
- * Get the isSystemExtension property: Specifies if product is a Virtual Machine Extension.
+ * Get the version property: Specifies product version.
*
- * @return the isSystemExtension value.
+ * @return the version value.
*/
- public Boolean isSystemExtension() {
- return this.isSystemExtension;
+ public String version() {
+ return this.innerProperties() == null ? null : this.innerProperties().version();
}
/**
- * Get the supportMultipleExtensions property: Indicates if specified product supports multiple extensions.
+ * Get the osDiskImage property: OS disk image used by product.
*
- * @return the supportMultipleExtensions value.
+ * @return the osDiskImage value.
*/
- public Boolean supportMultipleExtensions() {
- return this.supportMultipleExtensions;
+ public OsDiskImage osDiskImage() {
+ return this.innerProperties() == null ? null : this.innerProperties().osDiskImage();
}
/**
- * Get the versionPropertiesVersion property: Specifies product version.
+ * Get the dataDiskImages property: List of attached data disks.
*
- * @return the versionPropertiesVersion value.
+ * @return the dataDiskImages value.
*/
- public String versionPropertiesVersion() {
- return this.versionPropertiesVersion;
+ public List dataDiskImages() {
+ return this.innerProperties() == null ? null : this.innerProperties().dataDiskImages();
}
/**
- * Get the vmOsType property: Specifies operating system used by the product.
+ * Get the computeRole property: Specifies kind of compute role included in the package.
*
- * @return the vmOsType value.
+ * @return the computeRole value.
*/
- public OperatingSystem vmOsType() {
- return this.vmOsType;
+ public ComputeRole computeRole() {
+ return this.innerProperties() == null ? null : this.innerProperties().computeRole();
}
/**
- * Get the vmScaleSetEnabled property: Indicates if virtual machine Scale Set is enabled in the specified product.
+ * Get the isSystemExtension property: Specifies if product is a Virtual Machine Extension.
*
- * @return the vmScaleSetEnabled value.
+ * @return the isSystemExtension value.
*/
- public Boolean vmScaleSetEnabled() {
- return this.vmScaleSetEnabled;
+ public Boolean isSystemExtension() {
+ return this.innerProperties() == null ? null : this.innerProperties().isSystemExtension();
}
/**
@@ -175,34 +114,34 @@ public Boolean vmScaleSetEnabled() {
* @return the uri value.
*/
public String uri() {
- return this.uri;
+ return this.innerProperties() == null ? null : this.innerProperties().uri();
}
/**
- * Get the version property: Specifies product version.
+ * Get the supportMultipleExtensions property: Indicates if specified product supports multiple extensions.
*
- * @return the version value.
+ * @return the supportMultipleExtensions value.
*/
- public String version() {
- return this.version;
+ public Boolean supportMultipleExtensions() {
+ return this.innerProperties() == null ? null : this.innerProperties().supportMultipleExtensions();
}
/**
- * Get the osDiskImage property: OS disk image used by product.
+ * Get the vmOsType property: Specifies operating system used by the product.
*
- * @return the osDiskImage value.
+ * @return the vmOsType value.
*/
- public OsDiskImage osDiskImage() {
- return this.osDiskImage;
+ public OperatingSystem vmOsType() {
+ return this.innerProperties() == null ? null : this.innerProperties().vmOsType();
}
/**
- * Get the dataDiskImages property: List of attached data disks.
+ * Get the vmScaleSetEnabled property: Indicates if virtual machine Scale Set is enabled in the specified product.
*
- * @return the dataDiskImages value.
+ * @return the vmScaleSetEnabled value.
*/
- public List dataDiskImages() {
- return this.dataDiskImages;
+ public Boolean vmScaleSetEnabled() {
+ return this.innerProperties() == null ? null : this.innerProperties().vmScaleSetEnabled();
}
/**
@@ -211,11 +150,8 @@ public List dataDiskImages() {
* @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());
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/models/ExtendedProductProperties.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/ExtendedProductProperties.java
similarity index 87%
rename from sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/models/ExtendedProductProperties.java
rename to sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/ExtendedProductProperties.java
index 06febb9f9672..b74ada96e06f 100644
--- a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/models/ExtendedProductProperties.java
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/ExtendedProductProperties.java
@@ -2,19 +2,18 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.azurestack.models;
+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.azure.resourcemanager.azurestack.models.DataDiskImage;
+import com.azure.resourcemanager.azurestack.models.OsDiskImage;
+import com.azure.resourcemanager.azurestack.models.VirtualMachineExtensionProductProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Product information. */
@Immutable
public final class ExtendedProductProperties extends VirtualMachineExtensionProductProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ExtendedProductProperties.class);
-
/*
* Specifies product version.
*/
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
deleted file mode 100644
index c7e7ee06b652..000000000000
--- a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/LinkedSubscriptionInner.java
+++ /dev/null
@@ -1,233 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
-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() {
- }
-}
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
index 8fecbd12675d..61ec6dbde52b 100644
--- 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
@@ -5,16 +5,12 @@
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.
*/
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
index 69af83ff6b5e..4971fa1c154f 100644
--- 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
@@ -5,137 +5,22 @@
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.management.SystemData;
-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.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;
-
+public final class ProductInner extends ProxyResource {
/*
- * Additional links available for this product.
+ * Properties of the product resource.
*/
- @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;
+ @JsonProperty(value = "properties")
+ private ProductNestedProperties innerProperties;
/*
* The entity tag used for optimistic concurrency when modifying the
@@ -145,12 +30,32 @@ public class ProductInner extends ProxyResource {
private String etag;
/**
- * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ * Get the innerProperties property: Properties of the product resource.
+ *
+ * @return the innerProperties value.
+ */
+ private ProductNestedProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the etag property: The entity tag used for optimistic concurrency when modifying the resource.
*
- * @return the systemData value.
+ * @return the etag value.
*/
- public SystemData systemData() {
- return this.systemData;
+ 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;
}
/**
@@ -159,7 +64,7 @@ public SystemData systemData() {
* @return the displayName value.
*/
public String displayName() {
- return this.displayName;
+ return this.innerProperties() == null ? null : this.innerProperties().displayName();
}
/**
@@ -169,7 +74,10 @@ public String displayName() {
* @return the ProductInner object itself.
*/
public ProductInner withDisplayName(String displayName) {
- this.displayName = displayName;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ProductNestedProperties();
+ }
+ this.innerProperties().withDisplayName(displayName);
return this;
}
@@ -179,7 +87,7 @@ public ProductInner withDisplayName(String displayName) {
* @return the description value.
*/
public String description() {
- return this.description;
+ return this.innerProperties() == null ? null : this.innerProperties().description();
}
/**
@@ -189,7 +97,10 @@ public String description() {
* @return the ProductInner object itself.
*/
public ProductInner withDescription(String description) {
- this.description = description;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ProductNestedProperties();
+ }
+ this.innerProperties().withDescription(description);
return this;
}
@@ -199,7 +110,7 @@ public ProductInner withDescription(String description) {
* @return the publisherDisplayName value.
*/
public String publisherDisplayName() {
- return this.publisherDisplayName;
+ return this.innerProperties() == null ? null : this.innerProperties().publisherDisplayName();
}
/**
@@ -209,7 +120,10 @@ public String publisherDisplayName() {
* @return the ProductInner object itself.
*/
public ProductInner withPublisherDisplayName(String publisherDisplayName) {
- this.publisherDisplayName = publisherDisplayName;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ProductNestedProperties();
+ }
+ this.innerProperties().withPublisherDisplayName(publisherDisplayName);
return this;
}
@@ -219,7 +133,7 @@ public ProductInner withPublisherDisplayName(String publisherDisplayName) {
* @return the publisherIdentifier value.
*/
public String publisherIdentifier() {
- return this.publisherIdentifier;
+ return this.innerProperties() == null ? null : this.innerProperties().publisherIdentifier();
}
/**
@@ -229,7 +143,10 @@ public String publisherIdentifier() {
* @return the ProductInner object itself.
*/
public ProductInner withPublisherIdentifier(String publisherIdentifier) {
- this.publisherIdentifier = publisherIdentifier;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ProductNestedProperties();
+ }
+ this.innerProperties().withPublisherIdentifier(publisherIdentifier);
return this;
}
@@ -239,7 +156,7 @@ public ProductInner withPublisherIdentifier(String publisherIdentifier) {
* @return the offer value.
*/
public String offer() {
- return this.offer;
+ return this.innerProperties() == null ? null : this.innerProperties().offer();
}
/**
@@ -249,7 +166,10 @@ public String offer() {
* @return the ProductInner object itself.
*/
public ProductInner withOffer(String offer) {
- this.offer = offer;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ProductNestedProperties();
+ }
+ this.innerProperties().withOffer(offer);
return this;
}
@@ -259,7 +179,7 @@ public ProductInner withOffer(String offer) {
* @return the offerVersion value.
*/
public String offerVersion() {
- return this.offerVersion;
+ return this.innerProperties() == null ? null : this.innerProperties().offerVersion();
}
/**
@@ -269,7 +189,10 @@ public String offerVersion() {
* @return the ProductInner object itself.
*/
public ProductInner withOfferVersion(String offerVersion) {
- this.offerVersion = offerVersion;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ProductNestedProperties();
+ }
+ this.innerProperties().withOfferVersion(offerVersion);
return this;
}
@@ -279,7 +202,7 @@ public ProductInner withOfferVersion(String offerVersion) {
* @return the sku value.
*/
public String sku() {
- return this.sku;
+ return this.innerProperties() == null ? null : this.innerProperties().sku();
}
/**
@@ -289,7 +212,10 @@ public String sku() {
* @return the ProductInner object itself.
*/
public ProductInner withSku(String sku) {
- this.sku = sku;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ProductNestedProperties();
+ }
+ this.innerProperties().withSku(sku);
return this;
}
@@ -299,7 +225,7 @@ public ProductInner withSku(String sku) {
* @return the billingPartNumber value.
*/
public String billingPartNumber() {
- return this.billingPartNumber;
+ return this.innerProperties() == null ? null : this.innerProperties().billingPartNumber();
}
/**
@@ -309,7 +235,10 @@ public String billingPartNumber() {
* @return the ProductInner object itself.
*/
public ProductInner withBillingPartNumber(String billingPartNumber) {
- this.billingPartNumber = billingPartNumber;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ProductNestedProperties();
+ }
+ this.innerProperties().withBillingPartNumber(billingPartNumber);
return this;
}
@@ -319,7 +248,7 @@ public ProductInner withBillingPartNumber(String billingPartNumber) {
* @return the vmExtensionType value.
*/
public String vmExtensionType() {
- return this.vmExtensionType;
+ return this.innerProperties() == null ? null : this.innerProperties().vmExtensionType();
}
/**
@@ -329,7 +258,10 @@ public String vmExtensionType() {
* @return the ProductInner object itself.
*/
public ProductInner withVmExtensionType(String vmExtensionType) {
- this.vmExtensionType = vmExtensionType;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ProductNestedProperties();
+ }
+ this.innerProperties().withVmExtensionType(vmExtensionType);
return this;
}
@@ -339,7 +271,7 @@ public ProductInner withVmExtensionType(String vmExtensionType) {
* @return the galleryItemIdentity value.
*/
public String galleryItemIdentity() {
- return this.galleryItemIdentity;
+ return this.innerProperties() == null ? null : this.innerProperties().galleryItemIdentity();
}
/**
@@ -349,7 +281,10 @@ public String galleryItemIdentity() {
* @return the ProductInner object itself.
*/
public ProductInner withGalleryItemIdentity(String galleryItemIdentity) {
- this.galleryItemIdentity = galleryItemIdentity;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ProductNestedProperties();
+ }
+ this.innerProperties().withGalleryItemIdentity(galleryItemIdentity);
return this;
}
@@ -359,7 +294,7 @@ public ProductInner withGalleryItemIdentity(String galleryItemIdentity) {
* @return the iconUris value.
*/
public IconUris iconUris() {
- return this.iconUris;
+ return this.innerProperties() == null ? null : this.innerProperties().iconUris();
}
/**
@@ -369,7 +304,10 @@ public IconUris iconUris() {
* @return the ProductInner object itself.
*/
public ProductInner withIconUris(IconUris iconUris) {
- this.iconUris = iconUris;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ProductNestedProperties();
+ }
+ this.innerProperties().withIconUris(iconUris);
return this;
}
@@ -379,7 +317,7 @@ public ProductInner withIconUris(IconUris iconUris) {
* @return the links value.
*/
public List links() {
- return this.links;
+ return this.innerProperties() == null ? null : this.innerProperties().links();
}
/**
@@ -389,7 +327,10 @@ public List links() {
* @return the ProductInner object itself.
*/
public ProductInner withLinks(List links) {
- this.links = links;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ProductNestedProperties();
+ }
+ this.innerProperties().withLinks(links);
return this;
}
@@ -399,7 +340,7 @@ public ProductInner withLinks(List links) {
* @return the legalTerms value.
*/
public String legalTerms() {
- return this.legalTerms;
+ return this.innerProperties() == null ? null : this.innerProperties().legalTerms();
}
/**
@@ -409,7 +350,10 @@ public String legalTerms() {
* @return the ProductInner object itself.
*/
public ProductInner withLegalTerms(String legalTerms) {
- this.legalTerms = legalTerms;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ProductNestedProperties();
+ }
+ this.innerProperties().withLegalTerms(legalTerms);
return this;
}
@@ -419,7 +363,7 @@ public ProductInner withLegalTerms(String legalTerms) {
* @return the privacyPolicy value.
*/
public String privacyPolicy() {
- return this.privacyPolicy;
+ return this.innerProperties() == null ? null : this.innerProperties().privacyPolicy();
}
/**
@@ -429,7 +373,10 @@ public String privacyPolicy() {
* @return the ProductInner object itself.
*/
public ProductInner withPrivacyPolicy(String privacyPolicy) {
- this.privacyPolicy = privacyPolicy;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ProductNestedProperties();
+ }
+ this.innerProperties().withPrivacyPolicy(privacyPolicy);
return this;
}
@@ -439,7 +386,7 @@ public ProductInner withPrivacyPolicy(String privacyPolicy) {
* @return the payloadLength value.
*/
public Long payloadLength() {
- return this.payloadLength;
+ return this.innerProperties() == null ? null : this.innerProperties().payloadLength();
}
/**
@@ -449,7 +396,10 @@ public Long payloadLength() {
* @return the ProductInner object itself.
*/
public ProductInner withPayloadLength(Long payloadLength) {
- this.payloadLength = payloadLength;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ProductNestedProperties();
+ }
+ this.innerProperties().withPayloadLength(payloadLength);
return this;
}
@@ -459,7 +409,7 @@ public ProductInner withPayloadLength(Long payloadLength) {
* @return the productKind value.
*/
public String productKind() {
- return this.productKind;
+ return this.innerProperties() == null ? null : this.innerProperties().productKind();
}
/**
@@ -469,7 +419,10 @@ public String productKind() {
* @return the ProductInner object itself.
*/
public ProductInner withProductKind(String productKind) {
- this.productKind = productKind;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ProductNestedProperties();
+ }
+ this.innerProperties().withProductKind(productKind);
return this;
}
@@ -479,7 +432,7 @@ public ProductInner withProductKind(String productKind) {
* @return the productProperties value.
*/
public ProductProperties productProperties() {
- return this.productProperties;
+ return this.innerProperties() == null ? null : this.innerProperties().productProperties();
}
/**
@@ -489,7 +442,10 @@ public ProductProperties productProperties() {
* @return the ProductInner object itself.
*/
public ProductInner withProductProperties(ProductProperties productProperties) {
- this.productProperties = productProperties;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ProductNestedProperties();
+ }
+ this.innerProperties().withProductProperties(productProperties);
return this;
}
@@ -499,7 +455,7 @@ public ProductInner withProductProperties(ProductProperties productProperties) {
* @return the compatibility value.
*/
public Compatibility compatibility() {
- return this.compatibility;
+ return this.innerProperties() == null ? null : this.innerProperties().compatibility();
}
/**
@@ -509,27 +465,10 @@ public Compatibility compatibility() {
* @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;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ProductNestedProperties();
+ }
+ this.innerProperties().withCompatibility(compatibility);
return this;
}
@@ -539,17 +478,8 @@ public ProductInner withEtag(String etag) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (iconUris() != null) {
- iconUris().validate();
- }
- if (links() != null) {
- links().forEach(e -> e.validate());
- }
- if (productProperties() != null) {
- productProperties().validate();
- }
- if (compatibility() != null) {
- compatibility().validate();
+ if (innerProperties() != null) {
+ innerProperties().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
index f5e2a50ca346..101375d99a83 100644
--- 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
@@ -5,16 +5,12 @@
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.
*/
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
index b6d75a701f23..2648e1268ea1 100644
--- 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
@@ -5,15 +5,11 @@
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.
*/
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/ProductNestedProperties.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/ProductNestedProperties.java
new file mode 100644
index 000000000000..71ee077b069b
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/ProductNestedProperties.java
@@ -0,0 +1,505 @@
+// 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.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.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Properties portion of the product resource. */
+@Fluent
+public final class ProductNestedProperties {
+ /*
+ * The display name of the product.
+ */
+ @JsonProperty(value = "displayName")
+ private String displayName;
+
+ /*
+ * The description of the product.
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /*
+ * The user-friendly name of the product publisher.
+ */
+ @JsonProperty(value = "publisherDisplayName")
+ private String publisherDisplayName;
+
+ /*
+ * Publisher identifier.
+ */
+ @JsonProperty(value = "publisherIdentifier")
+ private String publisherIdentifier;
+
+ /*
+ * The offer representing the product.
+ */
+ @JsonProperty(value = "offer")
+ private String offer;
+
+ /*
+ * The version of the product offer.
+ */
+ @JsonProperty(value = "offerVersion")
+ private String offerVersion;
+
+ /*
+ * The product SKU.
+ */
+ @JsonProperty(value = "sku")
+ private String sku;
+
+ /*
+ * The part number used for billing purposes.
+ */
+ @JsonProperty(value = "billingPartNumber")
+ private String billingPartNumber;
+
+ /*
+ * The type of the Virtual Machine Extension.
+ */
+ @JsonProperty(value = "vmExtensionType")
+ private String vmExtensionType;
+
+ /*
+ * The identifier of the gallery item corresponding to the product.
+ */
+ @JsonProperty(value = "galleryItemIdentity")
+ private String galleryItemIdentity;
+
+ /*
+ * Additional links available for this product.
+ */
+ @JsonProperty(value = "iconUris")
+ private IconUris iconUris;
+
+ /*
+ * Additional links available for this product.
+ */
+ @JsonProperty(value = "links")
+ private List links;
+
+ /*
+ * The legal terms.
+ */
+ @JsonProperty(value = "legalTerms")
+ private String legalTerms;
+
+ /*
+ * The privacy policy.
+ */
+ @JsonProperty(value = "privacyPolicy")
+ private String privacyPolicy;
+
+ /*
+ * The length of product content.
+ */
+ @JsonProperty(value = "payloadLength")
+ private Long payloadLength;
+
+ /*
+ * The kind of the product (virtualMachine or virtualMachineExtension)
+ */
+ @JsonProperty(value = "productKind")
+ private String productKind;
+
+ /*
+ * Additional properties for the product.
+ */
+ @JsonProperty(value = "productProperties")
+ private ProductProperties productProperties;
+
+ /*
+ * Product compatibility with current device.
+ */
+ @JsonProperty(value = "compatibility")
+ private Compatibility compatibility;
+
+ /**
+ * 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 ProductNestedProperties object itself.
+ */
+ public ProductNestedProperties 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 ProductNestedProperties object itself.
+ */
+ public ProductNestedProperties 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 ProductNestedProperties object itself.
+ */
+ public ProductNestedProperties 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 ProductNestedProperties object itself.
+ */
+ public ProductNestedProperties 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 ProductNestedProperties object itself.
+ */
+ public ProductNestedProperties 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 ProductNestedProperties object itself.
+ */
+ public ProductNestedProperties 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 ProductNestedProperties object itself.
+ */
+ public ProductNestedProperties 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 ProductNestedProperties object itself.
+ */
+ public ProductNestedProperties 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 ProductNestedProperties object itself.
+ */
+ public ProductNestedProperties 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 ProductNestedProperties object itself.
+ */
+ public ProductNestedProperties 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 ProductNestedProperties object itself.
+ */
+ public ProductNestedProperties 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 ProductNestedProperties object itself.
+ */
+ public ProductNestedProperties 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 ProductNestedProperties object itself.
+ */
+ public ProductNestedProperties 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 ProductNestedProperties object itself.
+ */
+ public ProductNestedProperties 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 ProductNestedProperties object itself.
+ */
+ public ProductNestedProperties 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 ProductNestedProperties object itself.
+ */
+ public ProductNestedProperties 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 ProductNestedProperties object itself.
+ */
+ public ProductNestedProperties 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 ProductNestedProperties object itself.
+ */
+ public ProductNestedProperties withCompatibility(Compatibility compatibility) {
+ this.compatibility = compatibility;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void 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/RegistrationInner.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/RegistrationInner.java
index 6de84a740ca8..938bb79bb932 100644
--- 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
@@ -5,57 +5,68 @@
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.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
-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);
-
+public final class RegistrationInner extends Resource {
/*
- * The object identifier associated with the Azure Stack connecting to
- * Azure.
+ * Registration resource.
*/
- @JsonProperty(value = "properties.objectId")
- private String objectId;
+ @JsonProperty(value = "properties")
+ private RegistrationProperties innerProperties;
/*
- * The identifier of the registered Azure Stack.
+ * The entity tag used for optimistic concurrency when modifying the
+ * resource.
*/
- @JsonProperty(value = "properties.cloudId")
- private String cloudId;
+ @JsonProperty(value = "etag")
+ private String etag;
- /*
- * Specifies the billing mode for the Azure Stack registration.
+ /**
+ * Get the innerProperties property: Registration resource.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.billingModel")
- private String billingModel;
+ private RegistrationProperties innerProperties() {
+ return this.innerProperties;
+ }
- /*
- * The kind of the resource.
+ /**
+ * Get the etag property: The entity tag used for optimistic concurrency when modifying the resource.
+ *
+ * @return the etag value.
*/
- @JsonProperty(value = "kind", access = JsonProperty.Access.WRITE_ONLY)
- private String kind;
+ public String etag() {
+ return this.etag;
+ }
- /*
- * Metadata pertaining to creation and last modification of the resource.
+ /**
+ * 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.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
+ public RegistrationInner withEtag(String etag) {
+ this.etag = etag;
+ return this;
+ }
- /*
- * The entity tag used for optimistic concurrency when modifying the
- * resource.
- */
- @JsonProperty(value = "etag")
- private String etag;
+ /** {@inheritDoc} */
+ @Override
+ public RegistrationInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RegistrationInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
/**
* Get the objectId property: The object identifier associated with the Azure Stack connecting to Azure.
@@ -63,7 +74,7 @@ public class RegistrationInner extends Resource {
* @return the objectId value.
*/
public String objectId() {
- return this.objectId;
+ return this.innerProperties() == null ? null : this.innerProperties().objectId();
}
/**
@@ -73,7 +84,10 @@ public String objectId() {
* @return the RegistrationInner object itself.
*/
public RegistrationInner withObjectId(String objectId) {
- this.objectId = objectId;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegistrationProperties();
+ }
+ this.innerProperties().withObjectId(objectId);
return this;
}
@@ -83,7 +97,7 @@ public RegistrationInner withObjectId(String objectId) {
* @return the cloudId value.
*/
public String cloudId() {
- return this.cloudId;
+ return this.innerProperties() == null ? null : this.innerProperties().cloudId();
}
/**
@@ -93,7 +107,10 @@ public String cloudId() {
* @return the RegistrationInner object itself.
*/
public RegistrationInner withCloudId(String cloudId) {
- this.cloudId = cloudId;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegistrationProperties();
+ }
+ this.innerProperties().withCloudId(cloudId);
return this;
}
@@ -103,7 +120,7 @@ public RegistrationInner withCloudId(String cloudId) {
* @return the billingModel value.
*/
public String billingModel() {
- return this.billingModel;
+ return this.innerProperties() == null ? null : this.innerProperties().billingModel();
}
/**
@@ -113,59 +130,10 @@ public String billingModel() {
* @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);
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegistrationProperties();
+ }
+ this.innerProperties().withBillingModel(billingModel);
return this;
}
@@ -175,5 +143,8 @@ public RegistrationInner withTags(Map tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/RegistrationParameterProperties.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/RegistrationParameterProperties.java
new file mode 100644
index 000000000000..8a028dce7f85
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/RegistrationParameterProperties.java
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestack.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties of the Azure Stack registration resource. */
+@Fluent
+public final class RegistrationParameterProperties {
+ /*
+ * The token identifying registered Azure Stack
+ */
+ @JsonProperty(value = "registrationToken", required = true)
+ private String registrationToken;
+
+ /**
+ * Get the registrationToken property: The token identifying registered Azure Stack.
+ *
+ * @return the registrationToken value.
+ */
+ public String registrationToken() {
+ return this.registrationToken;
+ }
+
+ /**
+ * Set the registrationToken property: The token identifying registered Azure Stack.
+ *
+ * @param registrationToken the registrationToken value to set.
+ * @return the RegistrationParameterProperties object itself.
+ */
+ public RegistrationParameterProperties withRegistrationToken(String registrationToken) {
+ this.registrationToken = registrationToken;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (registrationToken() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property registrationToken in model RegistrationParameterProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(RegistrationParameterProperties.class);
+}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/RegistrationProperties.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/RegistrationProperties.java
new file mode 100644
index 000000000000..87c7be97a972
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/RegistrationProperties.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.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties portion of the registration resource. */
+@Fluent
+public final class RegistrationProperties {
+ /*
+ * The object identifier associated with the Azure Stack connecting to
+ * Azure.
+ */
+ @JsonProperty(value = "objectId")
+ private String objectId;
+
+ /*
+ * The identifier of the registered Azure Stack.
+ */
+ @JsonProperty(value = "cloudId")
+ private String cloudId;
+
+ /*
+ * Specifies the billing mode for the Azure Stack registration.
+ */
+ @JsonProperty(value = "billingModel")
+ private String billingModel;
+
+ /**
+ * 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 RegistrationProperties object itself.
+ */
+ public RegistrationProperties 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 RegistrationProperties object itself.
+ */
+ public RegistrationProperties 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 RegistrationProperties object itself.
+ */
+ public RegistrationProperties withBillingModel(String billingModel) {
+ this.billingModel = billingModel;
+ 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/Uri.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/Uri.java
new file mode 100644
index 000000000000..b34baee7bf3c
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/Uri.java
@@ -0,0 +1,35 @@
+// 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.fasterxml.jackson.annotation.JsonProperty;
+
+/** The URI. */
+@Immutable
+public final class Uri {
+ /*
+ * The URI.
+ */
+ @JsonProperty(value = "uri", access = JsonProperty.Access.WRITE_ONLY)
+ private String uri;
+
+ /**
+ * Get the uri property: The URI.
+ *
+ * @return the uri value.
+ */
+ public String uri() {
+ return this.uri;
+ }
+
+ /**
+ * 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/implementation/AzureStackManagementClientBuilder.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/AzureStackManagementClientBuilder.java
index 90ff22db5cc3..6f69c68f2a25 100644
--- 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
@@ -7,7 +7,6 @@
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;
@@ -70,34 +69,34 @@ public AzureStackManagementClientBuilder environment(AzureEnvironment environmen
}
/*
- * The default poll interval for long-running operation
+ * The HTTP pipeline to send requests through
*/
- private Duration defaultPollInterval;
+ private HttpPipeline pipeline;
/**
- * Sets The default poll interval for long-running operation.
+ * Sets The HTTP pipeline to send requests through.
*
- * @param defaultPollInterval the defaultPollInterval value.
+ * @param pipeline the pipeline value.
* @return the AzureStackManagementClientBuilder.
*/
- public AzureStackManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = defaultPollInterval;
+ public AzureStackManagementClientBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
return this;
}
/*
- * The HTTP pipeline to send requests through
+ * The default poll interval for long-running operation
*/
- private HttpPipeline pipeline;
+ private Duration defaultPollInterval;
/**
- * Sets The HTTP pipeline to send requests through.
+ * Sets The default poll interval for long-running operation.
*
- * @param pipeline the pipeline value.
+ * @param defaultPollInterval the defaultPollInterval value.
* @return the AzureStackManagementClientBuilder.
*/
- public AzureStackManagementClientBuilder pipeline(HttpPipeline pipeline) {
- this.pipeline = pipeline;
+ public AzureStackManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
return this;
}
@@ -129,15 +128,12 @@ public AzureStackManagementClientImpl buildClient() {
if (environment == null) {
this.environment = AzureEnvironment.AZURE;
}
+ if (pipeline == null) {
+ this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ }
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();
}
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
index 86920b3c6f49..c2d6f0c833e7 100644
--- 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
@@ -15,6 +15,7 @@
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.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.AsyncPollResponse;
import com.azure.core.util.polling.LongRunningOperationStatus;
@@ -24,7 +25,7 @@
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.DeploymentLicensesClient;
import com.azure.resourcemanager.azurestack.fluent.OperationsClient;
import com.azure.resourcemanager.azurestack.fluent.ProductsClient;
import com.azure.resourcemanager.azurestack.fluent.RegistrationsClient;
@@ -34,15 +35,12 @@
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.
@@ -143,6 +141,18 @@ public CloudManifestFilesClient getCloudManifestFiles() {
return this.cloudManifestFiles;
}
+ /** The DeploymentLicensesClient object to access its operations. */
+ private final DeploymentLicensesClient deploymentLicenses;
+
+ /**
+ * Gets the DeploymentLicensesClient object to access its operations.
+ *
+ * @return the DeploymentLicensesClient object.
+ */
+ public DeploymentLicensesClient getDeploymentLicenses() {
+ return this.deploymentLicenses;
+ }
+
/** The CustomerSubscriptionsClient object to access its operations. */
private final CustomerSubscriptionsClient customerSubscriptions;
@@ -179,18 +189,6 @@ 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.
*
@@ -214,13 +212,13 @@ public LinkedSubscriptionsClient getLinkedSubscriptions() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2020-06-01-preview";
+ this.apiVersion = "2022-06-01";
this.operations = new OperationsClientImpl(this);
this.cloudManifestFiles = new CloudManifestFilesClientImpl(this);
+ this.deploymentLicenses = new DeploymentLicensesClientImpl(this);
this.customerSubscriptions = new CustomerSubscriptionsClientImpl(this);
this.products = new ProductsClientImpl(this);
this.registrations = new RegistrationsClientImpl(this);
- this.linkedSubscriptions = new LinkedSubscriptionsClientImpl(this);
}
/**
@@ -239,10 +237,7 @@ public Context getContext() {
* @return the merged context.
*/
public Context mergeContext(Context context) {
- for (Map.Entry