diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/CHANGELOG.md b/sdk/azurestack/azure-resourcemanager-azurestack/CHANGELOG.md
index 241b9efc0783..394a95040c86 100644
--- a/sdk/azurestack/azure-resourcemanager-azurestack/CHANGELOG.md
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/CHANGELOG.md
@@ -1,7 +1,8 @@
# Release History
-## 1.0.0-beta.2 (Unreleased)
+## 1.0.0-beta.1 (2022-03-14)
+- Azure Resource Manager AzureStack client library for Java. This package contains Microsoft Azure SDK for AzureStack Management SDK. Azure Stack. Package tag package-preview-2020-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## 1.0.0-beta.1 (2021-04-12)
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/README.md b/sdk/azurestack/azure-resourcemanager-azurestack/README.md
index 81f598537795..96a61d228094 100644
--- a/sdk/azurestack/azure-resourcemanager-azurestack/README.md
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/README.md
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-azurestack
- 1.0.0-beta.1
+ 1.0.0-beta.2
```
[//]: # ({x-version-update-end})
@@ -74,6 +74,9 @@ See [API design][design] for general introduction on design and key concepts on
## Examples
+[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/azurestack/azure-resourcemanager-azurestack/SAMPLE.md)
+
+
## Troubleshooting
## Next steps
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/SAMPLE.md b/sdk/azurestack/azure-resourcemanager-azurestack/SAMPLE.md
new file mode 100644
index 000000000000..ad8b3234f6c2
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/SAMPLE.md
@@ -0,0 +1,696 @@
+# Code snippets and samples
+
+
+## CloudManifestFile
+
+- [Get](#cloudmanifestfile_get)
+- [List](#cloudmanifestfile_list)
+
+## CustomerSubscriptions
+
+- [Create](#customersubscriptions_create)
+- [Delete](#customersubscriptions_delete)
+- [Get](#customersubscriptions_get)
+- [List](#customersubscriptions_list)
+
+## LinkedSubscriptions
+
+- [CreateOrUpdate](#linkedsubscriptions_createorupdate)
+- [Delete](#linkedsubscriptions_delete)
+- [GetByResourceGroup](#linkedsubscriptions_getbyresourcegroup)
+- [List](#linkedsubscriptions_list)
+- [ListByResourceGroup](#linkedsubscriptions_listbyresourcegroup)
+- [Update](#linkedsubscriptions_update)
+
+## Operations
+
+- [List](#operations_list)
+
+## Products
+
+- [Get](#products_get)
+- [GetProduct](#products_getproduct)
+- [GetProducts](#products_getproducts)
+- [List](#products_list)
+- [ListDetails](#products_listdetails)
+- [UploadLog](#products_uploadlog)
+
+## Registrations
+
+- [CreateOrUpdate](#registrations_createorupdate)
+- [Delete](#registrations_delete)
+- [EnableRemoteManagement](#registrations_enableremotemanagement)
+- [GetActivationKey](#registrations_getactivationkey)
+- [GetByResourceGroup](#registrations_getbyresourcegroup)
+- [List](#registrations_list)
+- [ListByResourceGroup](#registrations_listbyresourcegroup)
+- [Update](#registrations_update)
+### CloudManifestFile_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for CloudManifestFile Get. */
+public final class CloudManifestFileGetSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CloudManifestFile/Get.json
+ */
+ /**
+ * Sample code: Returns the properties of a cloud specific manifest file.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void returnsThePropertiesOfACloudSpecificManifestFile(
+ com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager.cloudManifestFiles().getWithResponse("latest", null, Context.NONE);
+ }
+}
+```
+
+### CloudManifestFile_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for CloudManifestFile List. */
+public final class CloudManifestFileListSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CloudManifestFile/List.json
+ */
+ /**
+ * Sample code: Returns the properties of a cloud specific manifest file with latest version.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void returnsThePropertiesOfACloudSpecificManifestFileWithLatestVersion(
+ com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager.cloudManifestFiles().listWithResponse(Context.NONE);
+ }
+}
+```
+
+### CustomerSubscriptions_Create
+
+```java
+/** Samples for CustomerSubscriptions Create. */
+public final class CustomerSubscriptionsCreateSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CustomerSubscription/Put.json
+ */
+ /**
+ * Sample code: Creates a new customer subscription under a registration.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void createsANewCustomerSubscriptionUnderARegistration(
+ com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager
+ .customerSubscriptions()
+ .define("E09A4E93-29A7-4EBA-A6D4-76202383F07F")
+ .withExistingRegistration("azurestack", "testregistration")
+ .withTenantId("dbab3982-796f-4d03-9908-044c08aef8a2")
+ .create();
+ }
+}
+```
+
+### CustomerSubscriptions_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for CustomerSubscriptions Delete. */
+public final class CustomerSubscriptionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CustomerSubscription/Delete.json
+ */
+ /**
+ * Sample code: Deletes a customer subscription under a registration.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void deletesACustomerSubscriptionUnderARegistration(
+ com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager
+ .customerSubscriptions()
+ .deleteWithResponse("azurestack", "testregistration", "E09A4E93-29A7-4EBA-A6D4-76202383F07F", Context.NONE);
+ }
+}
+```
+
+### CustomerSubscriptions_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for CustomerSubscriptions Get. */
+public final class CustomerSubscriptionsGetSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CustomerSubscription/Get.json
+ */
+ /**
+ * Sample code: Returns the specified product.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void returnsTheSpecifiedProduct(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager
+ .customerSubscriptions()
+ .getWithResponse("azurestack", "testregistration", "E09A4E93-29A7-4EBA-A6D4-76202383F07F", Context.NONE);
+ }
+}
+```
+
+### CustomerSubscriptions_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for CustomerSubscriptions List. */
+public final class CustomerSubscriptionsListSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CustomerSubscription/List.json
+ */
+ /**
+ * Sample code: Returns a list of products.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void returnsAListOfProducts(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager.customerSubscriptions().list("azurestack", "testregistration", Context.NONE);
+ }
+}
+```
+
+### LinkedSubscriptions_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.azurestack.models.Location;
+
+/** Samples for LinkedSubscriptions CreateOrUpdate. */
+public final class LinkedSubscriptionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/Put.json
+ */
+ /**
+ * Sample code: Create or update a Linked Subscription.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void createOrUpdateALinkedSubscription(
+ com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager
+ .linkedSubscriptions()
+ .define("testLinkedSubscription")
+ .withLocation(Location.fromString("eastus"))
+ .withExistingResourceGroup("azurestack")
+ .withLinkedSubscriptionId("104fbb77-2b0e-476a-83de-65ad8acd1f0b")
+ .withRegistrationResourceId(
+ "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testRegistration")
+ .create();
+ }
+}
+```
+
+### LinkedSubscriptions_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for LinkedSubscriptions Delete. */
+public final class LinkedSubscriptionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/Delete.json
+ */
+ /**
+ * Sample code: Delete the requested Linked Subscription.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void deleteTheRequestedLinkedSubscription(
+ com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager.linkedSubscriptions().deleteWithResponse("azurestack", "testlinkedsubscription", Context.NONE);
+ }
+}
+```
+
+### LinkedSubscriptions_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for LinkedSubscriptions GetByResourceGroup. */
+public final class LinkedSubscriptionsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/Get.json
+ */
+ /**
+ * Sample code: Returns the properties of a Linked Subscription resource.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void returnsThePropertiesOfALinkedSubscriptionResource(
+ com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager
+ .linkedSubscriptions()
+ .getByResourceGroupWithResponse("azurestack", "testLinkedSubscription", Context.NONE);
+ }
+}
+```
+
+### LinkedSubscriptions_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for LinkedSubscriptions List. */
+public final class LinkedSubscriptionsListSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/ListBySubscription.json
+ */
+ /**
+ * Sample code: Returns a list of all linked subscriptions.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void returnsAListOfAllLinkedSubscriptions(
+ com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager.linkedSubscriptions().list(Context.NONE);
+ }
+}
+```
+
+### LinkedSubscriptions_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for LinkedSubscriptions ListByResourceGroup. */
+public final class LinkedSubscriptionsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/List.json
+ */
+ /**
+ * Sample code: Returns a list of all linked subscriptions.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void returnsAListOfAllLinkedSubscriptions(
+ com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager.linkedSubscriptions().listByResourceGroup("azurestack", Context.NONE);
+ }
+}
+```
+
+### LinkedSubscriptions_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.azurestack.models.LinkedSubscription;
+
+/** Samples for LinkedSubscriptions Update. */
+public final class LinkedSubscriptionsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/Patch.json
+ */
+ /**
+ * Sample code: Patch a Linked Subscription resource.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void patchALinkedSubscriptionResource(
+ com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ LinkedSubscription resource =
+ manager
+ .linkedSubscriptions()
+ .getByResourceGroupWithResponse("azurestack", "testLinkedSubscription", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withLinkedSubscriptionId("104fbb77-2b0e-476a-83de-65ad8acd1f0b")
+ .withRegistrationResourceId(
+ "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testRegistration")
+ .apply();
+ }
+}
+```
+
+### Operations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Operation/List.json
+ */
+ /**
+ * Sample code: Returns the list of supported REST operations.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void returnsTheListOfSupportedRESTOperations(
+ com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager.operations().list(Context.NONE);
+ }
+}
+```
+
+### Products_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Products Get. */
+public final class ProductsGetSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/Get.json
+ */
+ /**
+ * Sample code: Returns the specified product.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void returnsTheSpecifiedProduct(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager
+ .products()
+ .getWithResponse(
+ "azurestack", "testregistration", "Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1", Context.NONE);
+ }
+}
+```
+
+### Products_GetProduct
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Products GetProduct. */
+public final class ProductsGetProductSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/GetPost.json
+ */
+ /**
+ * Sample code: Returns the specified product.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void returnsTheSpecifiedProduct(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager
+ .products()
+ .getProductWithResponse(
+ "azurestack",
+ "testregistration",
+ "Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1",
+ null,
+ Context.NONE);
+ }
+}
+```
+
+### Products_GetProducts
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Products GetProducts. */
+public final class ProductsGetProductsSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/ListPost.json
+ */
+ /**
+ * Sample code: Returns a list of products.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void returnsAListOfProducts(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager.products().getProductsWithResponse("azurestack", "testregistration", "_all", null, Context.NONE);
+ }
+}
+```
+
+### Products_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Products List. */
+public final class ProductsListSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/List.json
+ */
+ /**
+ * Sample code: Returns a list of products.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void returnsAListOfProducts(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager.products().list("azurestack", "testregistration", Context.NONE);
+ }
+}
+```
+
+### Products_ListDetails
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Products ListDetails. */
+public final class ProductsListDetailsSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/Post.json
+ */
+ /**
+ * Sample code: Returns the extended properties of a product.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void returnsTheExtendedPropertiesOfAProduct(
+ com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager
+ .products()
+ .listDetailsWithResponse(
+ "azurestack", "testregistration", "Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1", Context.NONE);
+ }
+}
+```
+
+### Products_UploadLog
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Products UploadLog. */
+public final class ProductsUploadLogSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/UploadLog.json
+ */
+ /**
+ * Sample code: Returns the specified product.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void returnsTheSpecifiedProduct(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager
+ .products()
+ .uploadLogWithResponse(
+ "azurestack",
+ "testregistration",
+ "Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1",
+ null,
+ Context.NONE);
+ }
+}
+```
+
+### Registrations_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.azurestack.models.Location;
+
+/** Samples for Registrations CreateOrUpdate. */
+public final class RegistrationsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/Put.json
+ */
+ /**
+ * Sample code: Create or update an Azure Stack registration.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void createOrUpdateAnAzureStackRegistration(
+ com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager
+ .registrations()
+ .define("testregistration")
+ .withLocation(Location.GLOBAL)
+ .withExistingResourceGroup("azurestack")
+ .withRegistrationToken(
+ "EyjIAWXSAw5nTw9KZWWiOiJeZxZlbg9wBwvUdCiSIM9iaMVjdeLkijoinwIzyJa2Ytgtowm2yy00OdG4lTlLyJmtztHjZGfJZTC0NZK1iIWiY2XvdWRJzCi6iJy5nDy0oDk1LTNHmWeTnDUwyS05oDI0LTrINzYwoGq5mjAzziIsim1HCmtldHBsYwnLu3LuZGljYXrpB25FBmfIbgVkIJp0CNvLLCJOYXJkd2FYzuLUZM8iOlt7IM51bunvcMVZiJoYlCjcaw9ZiJPBIjNkzDJHmda3yte5ndqZMdq4YmZkZmi5oDM3OTY3ZwNMIL0SIM5PyYI6WyJLZTy0ztJJMwZKy2m0OWNLODDLMwm2zTm0ymzKyjmWySisiJA3njlHmtdlY2q4NjRjnwFIZtC1YZi5ZGyZodM3Y2vjIl0siMnwDsi6wyi2oDUZoTbiY2RhNDa0ymrKoWe4YtK5otblzWrJzGyzNCISIjmYnzC4M2vmnZdIoDRKM2i5ytfkmJlhnDc1zdhLzWm1il0sim5HBwuiOijIqzF1MTvhmDIXmIIsimrpc2SiolsioWNlZjVhnZM1otQ0nDu3NmjlN2M3zmfjzmyZMTJhZtiiLcjLZjLmmZJhmWVhytG0NTu0OTqZNWu1Mda0MZbIYtfjyijdLCj1DWlKijoinwM5Mwu3NjytMju5Os00oTIwlWi0OdmTnGzHotiWm2RjyTCxIIwiBWvTb3J5ijPbijAYZDA3M2fjNzu0YTRMZTfhodkxzDnkogY5ZtAWzdyXIiwINZcWzThLnDQ4otrJndAzZGI5MGzlYtY1ZJA5ZdfiNMQIXX1DlcJpC3n1zxiiOijZb21lB25LIIWIdmVyC2LVbiI6IJeuMcJ9")
+ .create();
+ }
+}
+```
+
+### Registrations_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Registrations Delete. */
+public final class RegistrationsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/Delete.json
+ */
+ /**
+ * Sample code: Delete the requested Azure Stack registration.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void deleteTheRequestedAzureStackRegistration(
+ com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager.registrations().deleteWithResponse("azurestack", "testregistration", Context.NONE);
+ }
+}
+```
+
+### Registrations_EnableRemoteManagement
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Registrations EnableRemoteManagement. */
+public final class RegistrationsEnableRemoteManagementSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/RemoteManagement/Post.json
+ */
+ /**
+ * Sample code: Returns empty response for successful action..
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void returnsEmptyResponseForSuccessfulAction(
+ com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager.registrations().enableRemoteManagementWithResponse("azurestack", "testregistration", Context.NONE);
+ }
+}
+```
+
+### Registrations_GetActivationKey
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Registrations GetActivationKey. */
+public final class RegistrationsGetActivationKeySamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/Post.json
+ */
+ /**
+ * Sample code: Returns Azure Stack Activation Key.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void returnsAzureStackActivationKey(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager.registrations().getActivationKeyWithResponse("azurestack", "testregistration", Context.NONE);
+ }
+}
+```
+
+### Registrations_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Registrations GetByResourceGroup. */
+public final class RegistrationsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/Get.json
+ */
+ /**
+ * Sample code: Returns the properties of an Azure Stack registration.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void returnsThePropertiesOfAnAzureStackRegistration(
+ com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager.registrations().getByResourceGroupWithResponse("azurestack", "testregistration", Context.NONE);
+ }
+}
+```
+
+### Registrations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Registrations List. */
+public final class RegistrationsListSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/ListBySubscription.json
+ */
+ /**
+ * Sample code: Returns a list of all registrations under current subscription.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void returnsAListOfAllRegistrationsUnderCurrentSubscription(
+ com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager.registrations().list(Context.NONE);
+ }
+}
+```
+
+### Registrations_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Registrations ListByResourceGroup. */
+public final class RegistrationsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/List.json
+ */
+ /**
+ * Sample code: Returns a list of all registrations.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void returnsAListOfAllRegistrations(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ manager.registrations().listByResourceGroup("azurestack", Context.NONE);
+ }
+}
+```
+
+### Registrations_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.azurestack.models.Registration;
+
+/** Samples for Registrations Update. */
+public final class RegistrationsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/Patch.json
+ */
+ /**
+ * Sample code: Patch an Azure Stack registration.
+ *
+ * @param manager Entry point to AzureStackManager.
+ */
+ public static void patchAnAzureStackRegistration(com.azure.resourcemanager.azurestack.AzureStackManager manager) {
+ Registration resource =
+ manager
+ .registrations()
+ .getByResourceGroupWithResponse("azurestack", "testregistration", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withRegistrationToken(
+ "EyjIAWXSAw5nTw9KZWWiOiJeZxZlbg9wBwvUdCiSIM9iaMVjdeLkijoinwIzyJa2Ytgtowm2yy00OdG4lTlLyJmtztHjZGfJZTC0NZK1iIWiY2XvdWRJzCi6iJy5nDy0oDk1LTNHmWeTnDUwyS05oDI0LTrINzYwoGq5mjAzziIsim1HCmtldHBsYwnLu3LuZGljYXrpB25FBmfIbgVkIJp0CNvLLCJOYXJkd2FYzuLUZM8iOlt7IM51bunvcMVZiJoYlCjcaw9ZiJPBIjNkzDJHmda3yte5ndqZMdq4YmZkZmi5oDM3OTY3ZwNMIL0SIM5PyYI6WyJLZTy0ztJJMwZKy2m0OWNLODDLMwm2zTm0ymzKyjmWySisiJA3njlHmtdlY2q4NjRjnwFIZtC1YZi5ZGyZodM3Y2vjIl0siMnwDsi6wyi2oDUZoTbiY2RhNDa0ymrKoWe4YtK5otblzWrJzGyzNCISIjmYnzC4M2vmnZdIoDRKM2i5ytfkmJlhnDc1zdhLzWm1il0sim5HBwuiOijIqzF1MTvhmDIXmIIsimrpc2SiolsioWNlZjVhnZM1otQ0nDu3NmjlN2M3zmfjzmyZMTJhZtiiLcjLZjLmmZJhmWVhytG0NTu0OTqZNWu1Mda0MZbIYtfjyijdLCj1DWlKijoinwM5Mwu3NjytMju5Os00oTIwlWi0OdmTnGzHotiWm2RjyTCxIIwiBWvTb3J5ijPbijAYZDA3M2fjNzu0YTRMZTfhodkxzDnkogY5ZtAWzdyXIiwINZcWzThLnDQ4otrJndAzZGI5MGzlYtY1ZJA5ZdfiNMQIXX1DlcJpC3n1zxiiOijZb21lB25LIIWIdmVyC2LVbiI6IJeuMcJ9")
+ .apply();
+ }
+}
+```
+
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/pom.xml b/sdk/azurestack/azure-resourcemanager-azurestack/pom.xml
index d8b0e1c25b72..f664dbff0435 100644
--- a/sdk/azurestack/azure-resourcemanager-azurestack/pom.xml
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/pom.xml
@@ -1,55 +1,55 @@
- 4.0.0
-
- com.azure
- azure-client-sdk-parent
- 1.7.0
- ../../parents/azure-client-sdk-parent
-
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
- com.azure.resourcemanager
- azure-resourcemanager-azurestack
- 1.0.0-beta.2
- jar
+ com.azure.resourcemanager
+ azure-resourcemanager-azurestack
+ 1.0.0-beta.2
+ jar
- Microsoft Azure SDK for AzureStack Management
- This package contains Microsoft Azure SDK for AzureStack Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Stack. Package tag package-preview-2020-06.
- https://github.com/Azure/azure-sdk-for-java
+ Microsoft Azure SDK for AzureStack Management
+ This package contains Microsoft Azure SDK for AzureStack Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Stack. Package tag package-preview-2020-06.
+ https://github.com/Azure/azure-sdk-for-java
-
-
- The MIT License (MIT)
- http://opensource.org/licenses/MIT
- repo
-
-
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
-
- https://github.com/Azure/azure-sdk-for-java
- scm:git:git@github.com:Azure/azure-sdk-for-java.git
- scm:git:git@github.com:Azure/azure-sdk-for-java.git
- HEAD
-
-
-
- microsoft
- Microsoft
-
-
-
- UTF-8
- true
-
-
-
- com.azure
- azure-core
- 1.26.0
-
-
- com.azure
- azure-core-management
- 1.5.3
-
-
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+ true
+
+
+
+ com.azure
+ azure-core
+ 1.26.0
+
+
+ com.azure
+ azure-core-management
+ 1.5.3
+
+
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/AzureStackManager.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/AzureStackManager.java
index 8b7b19d4825a..faf1b35edf41 100644
--- a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/AzureStackManager.java
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/AzureStackManager.java
@@ -8,8 +8,8 @@
import com.azure.core.http.HttpClient;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
-import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
@@ -17,6 +17,7 @@
import com.azure.core.http.policy.RequestIdPolicy;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
@@ -39,6 +40,7 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
+import java.util.stream.Collectors;
/** Entry point to AzureStackManager. Azure Stack. */
public final class AzureStackManager {
@@ -92,11 +94,12 @@ public static Configurable configure() {
/** The Configurable allowing configurations to be set. */
public static final class Configurable {
- private final ClientLogger logger = new ClientLogger(Configurable.class);
+ private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
private final List policies = new ArrayList<>();
+ private final List scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
private Duration defaultPollInterval;
@@ -136,6 +139,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.
*
@@ -154,9 +168,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 +208,33 @@ 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);
}
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies
- .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 =
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/LinkedSubscriptionsClient.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/LinkedSubscriptionsClient.java
index 4b39c0114f0f..2a735f4bfb18 100644
--- 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
@@ -21,7 +21,7 @@ public interface LinkedSubscriptionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return list of linked subscriptions with paging support as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroup);
@@ -34,7 +34,7 @@ public interface LinkedSubscriptionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return list of linked subscriptions with paging support as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroup, Context context);
@@ -44,7 +44,7 @@ public interface LinkedSubscriptionsClient {
*
* @throws com.azure.core.management.exception.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.
+ * @return list of linked subscriptions with paging support as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -56,7 +56,7 @@ public interface LinkedSubscriptionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return list of linked subscriptions with paging support as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -83,7 +83,7 @@ public interface LinkedSubscriptionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return linked Subscription information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
@@ -110,7 +110,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 linkedSubscriptionName, Context context);
@@ -140,7 +140,7 @@ LinkedSubscriptionInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return linked Subscription information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -171,7 +171,7 @@ LinkedSubscriptionInner update(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return linked Subscription information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
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..7cbef4ec886b 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(
@@ -130,7 +131,7 @@ 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.
+ * @return pageable list of products along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getProductsWithResponse(
@@ -165,7 +166,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 +201,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..6cb4735f0bc4 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,18 +5,18 @@
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);
+public final class CustomerSubscriptionInner extends ProxyResource {
+ /*
+ * Customer subscription properties.
+ */
+ @JsonProperty(value = "properties")
+ private CustomerSubscriptionProperties innerProperties;
/*
* Metadata pertaining to creation and last modification of the resource.
@@ -24,12 +24,6 @@ public class CustomerSubscriptionInner extends ProxyResource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /*
- * Tenant Id.
- */
- @JsonProperty(value = "properties.tenantId")
- private String tenantId;
-
/*
* The entity tag used for optimistic concurrency when modifying the
* resource.
@@ -37,6 +31,15 @@ public class CustomerSubscriptionInner extends ProxyResource {
@JsonProperty(value = "etag")
private String etag;
+ /**
+ * Get the innerProperties property: Customer subscription properties.
+ *
+ * @return the innerProperties value.
+ */
+ private CustomerSubscriptionProperties innerProperties() {
+ return this.innerProperties;
+ }
+
/**
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
@@ -47,42 +50,45 @@ public SystemData systemData() {
}
/**
- * 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 +98,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/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
index c7e7ee06b652..1527bec98a7a 100644
--- 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
@@ -5,83 +5,99 @@
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);
-
+public final class LinkedSubscriptionInner extends Resource {
/*
- * The identifier associated with the device subscription.
+ * Linked Subscription resource.
*/
- @JsonProperty(value = "properties.linkedSubscriptionId")
- private String linkedSubscriptionId;
+ @JsonProperty(value = "properties")
+ private LinkedSubscriptionProperties innerProperties;
/*
- * The identifier associated with the device registration.
+ * The kind of the resource.
*/
- @JsonProperty(value = "properties.registrationResourceId")
- private String registrationResourceId;
+ @JsonProperty(value = "kind", access = JsonProperty.Access.WRITE_ONLY)
+ private String kind;
/*
- * The identifier of the Azure Stack device for remote management.
+ * Metadata pertaining to creation and last modification of the resource.
*/
- @JsonProperty(value = "properties.deviceId", access = JsonProperty.Access.WRITE_ONLY)
- private String deviceId;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
/*
- * The object identifier associated with the Azure Stack device connecting
- * to Azure.
+ * The entity tag used for optimistic concurrency when modifying the
+ * resource.
*/
- @JsonProperty(value = "properties.deviceObjectId", access = JsonProperty.Access.WRITE_ONLY)
- private String deviceObjectId;
+ @JsonProperty(value = "etag")
+ private String etag;
- /*
- * The connection state of the Azure Stack device.
+ /**
+ * Get the innerProperties property: Linked Subscription resource.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.deviceLinkState", access = JsonProperty.Access.WRITE_ONLY)
- private String deviceLinkState;
+ private LinkedSubscriptionProperties innerProperties() {
+ return this.innerProperties;
+ }
- /*
- * The last remote management connection time for the Azure Stack device
- * connected to the linked subscription resource.
+ /**
+ * Get the kind property: The kind of the resource.
+ *
+ * @return the kind value.
*/
- @JsonProperty(value = "properties.lastConnectedTime", access = JsonProperty.Access.WRITE_ONLY)
- private String lastConnectedTime;
+ public String kind() {
+ return this.kind;
+ }
- /*
- * The status of the remote management connection of the Azure Stack
- * device.
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
*/
- @JsonProperty(value = "properties.deviceConnectionStatus", access = JsonProperty.Access.WRITE_ONLY)
- private String deviceConnectionStatus;
+ public SystemData systemData() {
+ return this.systemData;
+ }
- /*
- * 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 LinkedSubscriptionInner object itself.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
+ public LinkedSubscriptionInner 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 LinkedSubscriptionInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public LinkedSubscriptionInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
/**
* Get the linkedSubscriptionId property: The identifier associated with the device subscription.
@@ -89,7 +105,7 @@ public class LinkedSubscriptionInner extends Resource {
* @return the linkedSubscriptionId value.
*/
public String linkedSubscriptionId() {
- return this.linkedSubscriptionId;
+ return this.innerProperties() == null ? null : this.innerProperties().linkedSubscriptionId();
}
/**
@@ -99,7 +115,10 @@ public String linkedSubscriptionId() {
* @return the LinkedSubscriptionInner object itself.
*/
public LinkedSubscriptionInner withLinkedSubscriptionId(String linkedSubscriptionId) {
- this.linkedSubscriptionId = linkedSubscriptionId;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LinkedSubscriptionProperties();
+ }
+ this.innerProperties().withLinkedSubscriptionId(linkedSubscriptionId);
return this;
}
@@ -109,7 +128,7 @@ public LinkedSubscriptionInner withLinkedSubscriptionId(String linkedSubscriptio
* @return the registrationResourceId value.
*/
public String registrationResourceId() {
- return this.registrationResourceId;
+ return this.innerProperties() == null ? null : this.innerProperties().registrationResourceId();
}
/**
@@ -119,7 +138,10 @@ public String registrationResourceId() {
* @return the LinkedSubscriptionInner object itself.
*/
public LinkedSubscriptionInner withRegistrationResourceId(String registrationResourceId) {
- this.registrationResourceId = registrationResourceId;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LinkedSubscriptionProperties();
+ }
+ this.innerProperties().withRegistrationResourceId(registrationResourceId);
return this;
}
@@ -129,7 +151,7 @@ public LinkedSubscriptionInner withRegistrationResourceId(String registrationRes
* @return the deviceId value.
*/
public String deviceId() {
- return this.deviceId;
+ return this.innerProperties() == null ? null : this.innerProperties().deviceId();
}
/**
@@ -139,7 +161,7 @@ public String deviceId() {
* @return the deviceObjectId value.
*/
public String deviceObjectId() {
- return this.deviceObjectId;
+ return this.innerProperties() == null ? null : this.innerProperties().deviceObjectId();
}
/**
@@ -148,7 +170,7 @@ public String deviceObjectId() {
* @return the deviceLinkState value.
*/
public String deviceLinkState() {
- return this.deviceLinkState;
+ return this.innerProperties() == null ? null : this.innerProperties().deviceLinkState();
}
/**
@@ -158,7 +180,7 @@ public String deviceLinkState() {
* @return the lastConnectedTime value.
*/
public String lastConnectedTime() {
- return this.lastConnectedTime;
+ return this.innerProperties() == null ? null : this.innerProperties().lastConnectedTime();
}
/**
@@ -168,59 +190,7 @@ public String lastConnectedTime() {
* @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;
+ return this.innerProperties() == null ? null : this.innerProperties().deviceConnectionStatus();
}
/**
@@ -229,5 +199,8 @@ public LinkedSubscriptionInner 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/LinkedSubscriptionParameterProperties.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/LinkedSubscriptionParameterProperties.java
new file mode 100644
index 000000000000..3ac3429fac88
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/LinkedSubscriptionParameterProperties.java
@@ -0,0 +1,89 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestack.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties of the Linked Subscription resource. */
+@Fluent
+public final class LinkedSubscriptionParameterProperties {
+ /*
+ * The identifier associated with the device subscription.
+ */
+ @JsonProperty(value = "linkedSubscriptionId", required = true)
+ private String linkedSubscriptionId;
+
+ /*
+ * The identifier associated with the device registration.
+ */
+ @JsonProperty(value = "registrationResourceId", required = true)
+ private String registrationResourceId;
+
+ /**
+ * 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 LinkedSubscriptionParameterProperties object itself.
+ */
+ public LinkedSubscriptionParameterProperties 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 LinkedSubscriptionParameterProperties object itself.
+ */
+ public LinkedSubscriptionParameterProperties withRegistrationResourceId(String registrationResourceId) {
+ this.registrationResourceId = registrationResourceId;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (linkedSubscriptionId() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property linkedSubscriptionId in model"
+ + " LinkedSubscriptionParameterProperties"));
+ }
+ if (registrationResourceId() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property registrationResourceId in model"
+ + " LinkedSubscriptionParameterProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(LinkedSubscriptionParameterProperties.class);
+}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/LinkedSubscriptionProperties.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/LinkedSubscriptionProperties.java
new file mode 100644
index 000000000000..08ebd4489b68
--- /dev/null
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/fluent/models/LinkedSubscriptionProperties.java
@@ -0,0 +1,153 @@
+// 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 linked subscription resource. */
+@Fluent
+public final class LinkedSubscriptionProperties {
+ /*
+ * The identifier associated with the device subscription.
+ */
+ @JsonProperty(value = "linkedSubscriptionId")
+ private String linkedSubscriptionId;
+
+ /*
+ * The identifier associated with the device registration.
+ */
+ @JsonProperty(value = "registrationResourceId")
+ private String registrationResourceId;
+
+ /*
+ * The identifier of the Azure Stack device for remote management.
+ */
+ @JsonProperty(value = "deviceId", access = JsonProperty.Access.WRITE_ONLY)
+ private String deviceId;
+
+ /*
+ * The object identifier associated with the Azure Stack device connecting
+ * to Azure.
+ */
+ @JsonProperty(value = "deviceObjectId", access = JsonProperty.Access.WRITE_ONLY)
+ private String deviceObjectId;
+
+ /*
+ * The connection state of the Azure Stack device.
+ */
+ @JsonProperty(value = "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 = "lastConnectedTime", access = JsonProperty.Access.WRITE_ONLY)
+ private String lastConnectedTime;
+
+ /*
+ * The status of the remote management connection of the Azure Stack
+ * device.
+ */
+ @JsonProperty(value = "deviceConnectionStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private String deviceConnectionStatus;
+
+ /**
+ * 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 LinkedSubscriptionProperties object itself.
+ */
+ public LinkedSubscriptionProperties 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 LinkedSubscriptionProperties object itself.
+ */
+ public LinkedSubscriptionProperties 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;
+ }
+
+ /**
+ * 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..1077fe033e79 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,23 +5,23 @@
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);
+public final class ProductInner extends ProxyResource {
+ /*
+ * Properties of the product resource.
+ */
+ @JsonProperty(value = "properties")
+ private ProductNestedProperties innerProperties;
/*
* Metadata pertaining to creation and last modification of the resource.
@@ -29,114 +29,6 @@ public class ProductInner extends ProxyResource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /*
- * The display name of the product.
- */
- @JsonProperty(value = "properties.displayName")
- private String displayName;
-
- /*
- * The description of the product.
- */
- @JsonProperty(value = "properties.description")
- private String description;
-
- /*
- * The user-friendly name of the product publisher.
- */
- @JsonProperty(value = "properties.publisherDisplayName")
- private String publisherDisplayName;
-
- /*
- * Publisher identifier.
- */
- @JsonProperty(value = "properties.publisherIdentifier")
- private String publisherIdentifier;
-
- /*
- * The offer representing the product.
- */
- @JsonProperty(value = "properties.offer")
- private String offer;
-
- /*
- * The version of the product offer.
- */
- @JsonProperty(value = "properties.offerVersion")
- private String offerVersion;
-
- /*
- * The product SKU.
- */
- @JsonProperty(value = "properties.sku")
- private String sku;
-
- /*
- * The part number used for billing purposes.
- */
- @JsonProperty(value = "properties.billingPartNumber")
- private String billingPartNumber;
-
- /*
- * The type of the Virtual Machine Extension.
- */
- @JsonProperty(value = "properties.vmExtensionType")
- private String vmExtensionType;
-
- /*
- * The identifier of the gallery item corresponding to the product.
- */
- @JsonProperty(value = "properties.galleryItemIdentity")
- private String galleryItemIdentity;
-
- /*
- * Additional links available for this product.
- */
- @JsonProperty(value = "properties.iconUris")
- private IconUris iconUris;
-
- /*
- * Additional links available for this product.
- */
- @JsonProperty(value = "properties.links")
- private List links;
-
- /*
- * The legal terms.
- */
- @JsonProperty(value = "properties.legalTerms")
- private String legalTerms;
-
- /*
- * The privacy policy.
- */
- @JsonProperty(value = "properties.privacyPolicy")
- private String privacyPolicy;
-
- /*
- * The length of product content.
- */
- @JsonProperty(value = "properties.payloadLength")
- private Long payloadLength;
-
- /*
- * The kind of the product (virtualMachine or virtualMachineExtension)
- */
- @JsonProperty(value = "properties.productKind")
- private String productKind;
-
- /*
- * Additional properties for the product.
- */
- @JsonProperty(value = "properties.productProperties")
- private ProductProperties productProperties;
-
- /*
- * Product compatibility with current device.
- */
- @JsonProperty(value = "properties.compatibility")
- private Compatibility compatibility;
-
/*
* The entity tag used for optimistic concurrency when modifying the
* resource.
@@ -144,6 +36,15 @@ public class ProductInner extends ProxyResource {
@JsonProperty(value = "etag")
private String etag;
+ /**
+ * Get the innerProperties property: Properties of the product resource.
+ *
+ * @return the innerProperties value.
+ */
+ private ProductNestedProperties innerProperties() {
+ return this.innerProperties;
+ }
+
/**
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
@@ -153,13 +54,33 @@ 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 ProductInner object itself.
+ */
+ public ProductInner withEtag(String etag) {
+ this.etag = etag;
+ return this;
+ }
+
/**
* Get the displayName property: The display name of the product.
*
* @return the displayName value.
*/
public String displayName() {
- return this.displayName;
+ return this.innerProperties() == null ? null : this.innerProperties().displayName();
}
/**
@@ -169,7 +90,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 +103,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 +113,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 +126,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 +136,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 +149,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 +159,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 +172,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 +182,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 +195,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 +205,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 +218,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 +228,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 +241,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 +251,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 +264,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 +274,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 +287,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 +297,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 +310,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 +320,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 +333,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 +343,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 +356,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 +366,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 +379,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 +389,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 +402,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 +412,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 +425,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 +435,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 +448,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 +458,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 +471,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 +481,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 +494,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..9d38adfec994 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,38 +5,19 @@
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);
-
- /*
- * The object identifier associated with the Azure Stack connecting to
- * Azure.
- */
- @JsonProperty(value = "properties.objectId")
- private String objectId;
-
- /*
- * The identifier of the registered Azure Stack.
- */
- @JsonProperty(value = "properties.cloudId")
- private String cloudId;
-
+public final class RegistrationInner extends Resource {
/*
- * Specifies the billing mode for the Azure Stack registration.
+ * Registration resource.
*/
- @JsonProperty(value = "properties.billingModel")
- private String billingModel;
+ @JsonProperty(value = "properties")
+ private RegistrationProperties innerProperties;
/*
* The kind of the resource.
@@ -58,63 +39,12 @@ public class RegistrationInner extends Resource {
private String etag;
/**
- * Get the objectId property: The object identifier associated with the Azure Stack connecting to Azure.
- *
- * @return the objectId value.
- */
- public String objectId() {
- return this.objectId;
- }
-
- /**
- * Set the objectId property: The object identifier associated with the Azure Stack connecting to Azure.
- *
- * @param objectId the objectId value to set.
- * @return the RegistrationInner object itself.
- */
- public RegistrationInner withObjectId(String objectId) {
- this.objectId = objectId;
- return this;
- }
-
- /**
- * Get the cloudId property: The identifier of the registered Azure Stack.
+ * Get the innerProperties property: Registration resource.
*
- * @return the cloudId value.
+ * @return the innerProperties value.
*/
- public String cloudId() {
- return this.cloudId;
- }
-
- /**
- * Set the cloudId property: The identifier of the registered Azure Stack.
- *
- * @param cloudId the cloudId value to set.
- * @return the RegistrationInner object itself.
- */
- public RegistrationInner withCloudId(String cloudId) {
- this.cloudId = cloudId;
- return this;
- }
-
- /**
- * Get the billingModel property: Specifies the billing mode for the Azure Stack registration.
- *
- * @return the billingModel value.
- */
- public String billingModel() {
- return this.billingModel;
- }
-
- /**
- * Set the billingModel property: Specifies the billing mode for the Azure Stack registration.
- *
- * @param billingModel the billingModel value to set.
- * @return the RegistrationInner object itself.
- */
- public RegistrationInner withBillingModel(String billingModel) {
- this.billingModel = billingModel;
- return this;
+ private RegistrationProperties innerProperties() {
+ return this.innerProperties;
}
/**
@@ -169,11 +99,83 @@ public RegistrationInner withTags(Map tags) {
return this;
}
+ /**
+ * Get the objectId property: The object identifier associated with the Azure Stack connecting to Azure.
+ *
+ * @return the objectId value.
+ */
+ public String objectId() {
+ return this.innerProperties() == null ? null : this.innerProperties().objectId();
+ }
+
+ /**
+ * Set the objectId property: The object identifier associated with the Azure Stack connecting to Azure.
+ *
+ * @param objectId the objectId value to set.
+ * @return the RegistrationInner object itself.
+ */
+ public RegistrationInner withObjectId(String objectId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegistrationProperties();
+ }
+ this.innerProperties().withObjectId(objectId);
+ return this;
+ }
+
+ /**
+ * Get the cloudId property: The identifier of the registered Azure Stack.
+ *
+ * @return the cloudId value.
+ */
+ public String cloudId() {
+ return this.innerProperties() == null ? null : this.innerProperties().cloudId();
+ }
+
+ /**
+ * Set the cloudId property: The identifier of the registered Azure Stack.
+ *
+ * @param cloudId the cloudId value to set.
+ * @return the RegistrationInner object itself.
+ */
+ public RegistrationInner withCloudId(String cloudId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegistrationProperties();
+ }
+ this.innerProperties().withCloudId(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.innerProperties() == null ? null : this.innerProperties().billingModel();
+ }
+
+ /**
+ * Set the billingModel property: Specifies the billing mode for the Azure Stack registration.
+ *
+ * @param billingModel the billingModel value to set.
+ * @return the RegistrationInner object itself.
+ */
+ public RegistrationInner withBillingModel(String billingModel) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegistrationProperties();
+ }
+ this.innerProperties().withBillingModel(billingModel);
+ return this;
+ }
+
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/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/AzureStackManagementClientImpl.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/AzureStackManagementClientImpl.java
index 86920b3c6f49..889cd70f16a8 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
@@ -41,8 +41,6 @@
/** 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.
@@ -306,7 +304,7 @@ public Mono getLroFinalResultOrError(AsyncPollResponse,
managementError = null;
}
} catch (IOException | RuntimeException ioe) {
- logger.logThrowableAsWarning(ioe);
+ LOGGER.logThrowableAsWarning(ioe);
}
}
} else {
@@ -365,4 +363,6 @@ public Mono getBodyAsString(Charset charset) {
return Mono.just(new String(responseBody, charset));
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(AzureStackManagementClientImpl.class);
}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/CloudManifestFilesClientImpl.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/CloudManifestFilesClientImpl.java
index 7168ef38c2b7..3e33bd0170d6 100644
--- a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/CloudManifestFilesClientImpl.java
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/CloudManifestFilesClientImpl.java
@@ -21,15 +21,12 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.azurestack.fluent.CloudManifestFilesClient;
import com.azure.resourcemanager.azurestack.fluent.models.CloudManifestFileResponseInner;
import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in CloudManifestFilesClient. */
public final class CloudManifestFilesClientImpl implements CloudManifestFilesClient {
- private final ClientLogger logger = new ClientLogger(CloudManifestFilesClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final CloudManifestFilesService service;
@@ -82,7 +79,8 @@ Mono> get(
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cloud specific manifest GET response.
+ * @return cloud specific manifest GET response along with {@link Response} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listWithResponseAsync() {
@@ -106,7 +104,8 @@ private Mono> listWithResponseAsync() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cloud specific manifest GET response.
+ * @return cloud specific manifest GET response along with {@link Response} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listWithResponseAsync(Context context) {
@@ -126,7 +125,7 @@ private Mono> listWithResponseAsync(Con
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cloud specific manifest GET response.
+ * @return cloud specific manifest GET response on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono listAsync() {
@@ -160,7 +159,7 @@ public CloudManifestFileResponseInner list() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cloud specific manifest GET response.
+ * @return cloud specific manifest GET response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response listWithResponse(Context context) {
@@ -175,7 +174,8 @@ public Response listWithResponse(Context context
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cloud specific manifest GET response.
+ * @return cloud specific manifest GET response along with {@link Response} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -214,7 +214,8 @@ private Mono> getWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cloud specific manifest GET response.
+ * @return cloud specific manifest GET response along with {@link Response} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -249,7 +250,7 @@ private Mono> getWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cloud specific manifest GET response.
+ * @return cloud specific manifest GET response on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(String verificationVersion, String versionCreationDate) {
@@ -271,7 +272,7 @@ private Mono getAsync(String verificationVersion
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cloud specific manifest GET response.
+ * @return cloud specific manifest GET response on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(String verificationVersion) {
@@ -311,7 +312,7 @@ public CloudManifestFileResponseInner get(String verificationVersion) {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cloud specific manifest GET response.
+ * @return cloud specific manifest GET response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getWithResponse(
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/CloudManifestFilesImpl.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/CloudManifestFilesImpl.java
index ef57d5072e04..1dc5a3540a3a 100644
--- a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/CloudManifestFilesImpl.java
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/CloudManifestFilesImpl.java
@@ -12,10 +12,9 @@
import com.azure.resourcemanager.azurestack.fluent.models.CloudManifestFileResponseInner;
import com.azure.resourcemanager.azurestack.models.CloudManifestFileResponse;
import com.azure.resourcemanager.azurestack.models.CloudManifestFiles;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class CloudManifestFilesImpl implements CloudManifestFiles {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(CloudManifestFilesImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(CloudManifestFilesImpl.class);
private final CloudManifestFilesClient innerClient;
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/CustomerSubscriptionImpl.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/CustomerSubscriptionImpl.java
index 825cd7cd7b98..aaaa27b92af9 100644
--- a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/CustomerSubscriptionImpl.java
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/CustomerSubscriptionImpl.java
@@ -36,14 +36,14 @@ public SystemData systemData() {
return this.innerModel().systemData();
}
- public String tenantId() {
- return this.innerModel().tenantId();
- }
-
public String etag() {
return this.innerModel().etag();
}
+ public String tenantId() {
+ return this.innerModel().tenantId();
+ }
+
public CustomerSubscriptionInner innerModel() {
return this.innerObject;
}
@@ -112,13 +112,13 @@ public CustomerSubscription refresh(Context context) {
return this;
}
- public CustomerSubscriptionImpl withTenantId(String tenantId) {
- this.innerModel().withTenantId(tenantId);
+ public CustomerSubscriptionImpl withEtag(String etag) {
+ this.innerModel().withEtag(etag);
return this;
}
- public CustomerSubscriptionImpl withEtag(String etag) {
- this.innerModel().withEtag(etag);
+ public CustomerSubscriptionImpl withTenantId(String tenantId) {
+ this.innerModel().withTenantId(tenantId);
return this;
}
}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/CustomerSubscriptionsClientImpl.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/CustomerSubscriptionsClientImpl.java
index c10166ec199a..a81716e58e8a 100644
--- a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/CustomerSubscriptionsClientImpl.java
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/CustomerSubscriptionsClientImpl.java
@@ -28,7 +28,6 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.azurestack.fluent.CustomerSubscriptionsClient;
import com.azure.resourcemanager.azurestack.fluent.models.CustomerSubscriptionInner;
import com.azure.resourcemanager.azurestack.models.CustomerSubscriptionList;
@@ -36,8 +35,6 @@
/** An instance of this class provides access to all the operations defined in CustomerSubscriptionsClient. */
public final class CustomerSubscriptionsClientImpl implements CustomerSubscriptionsClient {
- private final ClientLogger logger = new ClientLogger(CustomerSubscriptionsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final CustomerSubscriptionsService service;
@@ -146,7 +143,8 @@ Mono> listNext(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of customer subscriptions.
+ * @return pageable list of customer subscriptions along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
@@ -204,7 +202,8 @@ private Mono> listSinglePageAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of customer subscriptions.
+ * @return pageable list of customer subscriptions along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
@@ -258,7 +257,7 @@ private Mono> listSinglePageAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of customer subscriptions.
+ * @return pageable list of customer subscriptions as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String resourceGroup, String registrationName) {
@@ -275,7 +274,7 @@ private PagedFlux listAsync(String resourceGroup, Str
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of customer subscriptions.
+ * @return pageable list of customer subscriptions as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
@@ -293,7 +292,7 @@ private PagedFlux listAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of customer subscriptions.
+ * @return pageable list of customer subscriptions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String resourceGroup, String registrationName) {
@@ -309,7 +308,7 @@ public PagedIterable list(String resourceGroup, Strin
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of customer subscriptions.
+ * @return pageable list of customer subscriptions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(
@@ -326,7 +325,7 @@ public PagedIterable list(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return customer subscription.
+ * @return customer subscription along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -382,7 +381,7 @@ private Mono> getWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return customer subscription.
+ * @return customer subscription along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -434,7 +433,7 @@ private Mono> getWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return customer subscription.
+ * @return customer subscription on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(
@@ -477,7 +476,7 @@ public CustomerSubscriptionInner get(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return customer subscription.
+ * @return customer subscription along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getWithResponse(
@@ -494,7 +493,7 @@ public Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> deleteWithResponseAsync(
@@ -550,7 +549,7 @@ private Mono> deleteWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> deleteWithResponseAsync(
@@ -602,7 +601,7 @@ private Mono> deleteWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(String resourceGroup, String registrationName, String customerSubscriptionName) {
@@ -635,7 +634,7 @@ public void delete(String resourceGroup, String registrationName, String custome
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response deleteWithResponse(
@@ -653,7 +652,7 @@ public Response deleteWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return customer subscription.
+ * @return customer subscription along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createWithResponseAsync(
@@ -722,7 +721,7 @@ private Mono> createWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return customer subscription.
+ * @return customer subscription along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createWithResponseAsync(
@@ -788,7 +787,7 @@ private Mono> createWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return customer subscription.
+ * @return customer subscription on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createAsync(
@@ -841,7 +840,7 @@ public CustomerSubscriptionInner create(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return customer subscription.
+ * @return customer subscription along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response createWithResponse(
@@ -862,7 +861,8 @@ public Response createWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of customer subscriptions.
+ * @return pageable list of customer subscriptions along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
@@ -898,7 +898,8 @@ private Mono> listNextSinglePageAsync(S
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of customer subscriptions.
+ * @return pageable list of customer subscriptions along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink, Context context) {
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/CustomerSubscriptionsImpl.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/CustomerSubscriptionsImpl.java
index 5aedb8764760..0a4c03c2808e 100644
--- a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/CustomerSubscriptionsImpl.java
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/CustomerSubscriptionsImpl.java
@@ -13,10 +13,9 @@
import com.azure.resourcemanager.azurestack.fluent.models.CustomerSubscriptionInner;
import com.azure.resourcemanager.azurestack.models.CustomerSubscription;
import com.azure.resourcemanager.azurestack.models.CustomerSubscriptions;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class CustomerSubscriptionsImpl implements CustomerSubscriptions {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(CustomerSubscriptionsImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(CustomerSubscriptionsImpl.class);
private final CustomerSubscriptionsClient innerClient;
@@ -79,7 +78,7 @@ public Response deleteWithResponse(
public CustomerSubscription getById(String id) {
String resourceGroup = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroup == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -87,14 +86,14 @@ public CustomerSubscription getById(String id) {
}
String registrationName = Utils.getValueFromIdByName(id, "registrations");
if (registrationName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'registrations'.", id)));
}
String customerSubscriptionName = Utils.getValueFromIdByName(id, "customerSubscriptions");
if (customerSubscriptionName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -108,7 +107,7 @@ public CustomerSubscription getById(String id) {
public Response getByIdWithResponse(String id, Context context) {
String resourceGroup = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroup == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -116,14 +115,14 @@ public Response getByIdWithResponse(String id, Context con
}
String registrationName = Utils.getValueFromIdByName(id, "registrations");
if (registrationName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'registrations'.", id)));
}
String customerSubscriptionName = Utils.getValueFromIdByName(id, "customerSubscriptions");
if (customerSubscriptionName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -137,7 +136,7 @@ public Response getByIdWithResponse(String id, Context con
public void deleteById(String id) {
String resourceGroup = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroup == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -145,14 +144,14 @@ public void deleteById(String id) {
}
String registrationName = Utils.getValueFromIdByName(id, "registrations");
if (registrationName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'registrations'.", id)));
}
String customerSubscriptionName = Utils.getValueFromIdByName(id, "customerSubscriptions");
if (customerSubscriptionName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -160,13 +159,13 @@ public void deleteById(String id) {
"The resource ID '%s' is not valid. Missing path segment 'customerSubscriptions'.",
id)));
}
- this.deleteWithResponse(resourceGroup, registrationName, customerSubscriptionName, Context.NONE).getValue();
+ this.deleteWithResponse(resourceGroup, registrationName, customerSubscriptionName, Context.NONE);
}
public Response deleteByIdWithResponse(String id, Context context) {
String resourceGroup = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroup == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -174,14 +173,14 @@ public Response deleteByIdWithResponse(String id, Context context) {
}
String registrationName = Utils.getValueFromIdByName(id, "registrations");
if (registrationName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'registrations'.", id)));
}
String customerSubscriptionName = Utils.getValueFromIdByName(id, "customerSubscriptions");
if (customerSubscriptionName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/ExtendedProductImpl.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/ExtendedProductImpl.java
index 0074c24c6c61..a23ab906ff1e 100644
--- a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/ExtendedProductImpl.java
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/ExtendedProductImpl.java
@@ -32,49 +32,45 @@ public String productKind() {
return this.innerModel().productKind();
}
- public ComputeRole computeRole() {
- return this.innerModel().computeRole();
- }
-
- public Boolean isSystemExtension() {
- return this.innerModel().isSystemExtension();
+ public String version() {
+ return this.innerModel().version();
}
- public Boolean supportMultipleExtensions() {
- return this.innerModel().supportMultipleExtensions();
+ public OsDiskImage osDiskImage() {
+ return this.innerModel().osDiskImage();
}
- public String versionPropertiesVersion() {
- return this.innerModel().versionPropertiesVersion();
+ public List dataDiskImages() {
+ List inner = this.innerModel().dataDiskImages();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
}
- public OperatingSystem vmOsType() {
- return this.innerModel().vmOsType();
+ public ComputeRole computeRole() {
+ return this.innerModel().computeRole();
}
- public Boolean vmScaleSetEnabled() {
- return this.innerModel().vmScaleSetEnabled();
+ public Boolean isSystemExtension() {
+ return this.innerModel().isSystemExtension();
}
public String uri() {
return this.innerModel().uri();
}
- public String version() {
- return this.innerModel().version();
+ public Boolean supportMultipleExtensions() {
+ return this.innerModel().supportMultipleExtensions();
}
- public OsDiskImage osDiskImage() {
- return this.innerModel().osDiskImage();
+ public OperatingSystem vmOsType() {
+ return this.innerModel().vmOsType();
}
- public List dataDiskImages() {
- List inner = this.innerModel().dataDiskImages();
- if (inner != null) {
- return Collections.unmodifiableList(inner);
- } else {
- return Collections.emptyList();
- }
+ public Boolean vmScaleSetEnabled() {
+ return this.innerModel().vmScaleSetEnabled();
}
public ExtendedProductInner innerModel() {
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/LinkedSubscriptionImpl.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/LinkedSubscriptionImpl.java
index fa447abcc952..dcd25b8208d6 100644
--- a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/LinkedSubscriptionImpl.java
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/LinkedSubscriptionImpl.java
@@ -45,6 +45,18 @@ public Map tags() {
}
}
+ public String kind() {
+ return this.innerModel().kind();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public String etag() {
+ return this.innerModel().etag();
+ }
+
public String linkedSubscriptionId() {
return this.innerModel().linkedSubscriptionId();
}
@@ -73,18 +85,6 @@ public String deviceConnectionStatus() {
return this.innerModel().deviceConnectionStatus();
}
- public String kind() {
- return this.innerModel().kind();
- }
-
- public SystemData systemData() {
- return this.innerModel().systemData();
- }
-
- public String etag() {
- return this.innerModel().etag();
- }
-
public Region region() {
return Region.fromName(this.regionName());
}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/LinkedSubscriptionsClientImpl.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/LinkedSubscriptionsClientImpl.java
index 2e25338001a4..7a8e81db3665 100644
--- a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/LinkedSubscriptionsClientImpl.java
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/LinkedSubscriptionsClientImpl.java
@@ -29,7 +29,6 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.azurestack.fluent.LinkedSubscriptionsClient;
import com.azure.resourcemanager.azurestack.fluent.models.LinkedSubscriptionInner;
import com.azure.resourcemanager.azurestack.models.LinkedSubscriptionParameter;
@@ -38,8 +37,6 @@
/** An instance of this class provides access to all the operations defined in LinkedSubscriptionsClient. */
public final class LinkedSubscriptionsClientImpl implements LinkedSubscriptionsClient {
- private final ClientLogger logger = new ClientLogger(LinkedSubscriptionsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final LinkedSubscriptionsService service;
@@ -179,7 +176,8 @@ Mono> listBySubscriptionNext(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of linked subscriptions with paging support.
+ * @return list of linked subscriptions with paging support along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(String resourceGroup) {
@@ -230,7 +228,8 @@ private Mono> listByResourceGroupSinglePa
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of linked subscriptions with paging support.
+ * @return list of linked subscriptions with paging support along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(
@@ -278,7 +277,7 @@ private Mono> listByResourceGroupSinglePa
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of linked subscriptions with paging support.
+ * @return list of linked subscriptions with paging support as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroup) {
@@ -295,7 +294,7 @@ private PagedFlux listByResourceGroupAsync(String resou
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of linked subscriptions with paging support.
+ * @return list of linked subscriptions with paging support as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroup, Context context) {
@@ -311,7 +310,7 @@ private PagedFlux listByResourceGroupAsync(String resou
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of linked subscriptions with paging support.
+ * @return list of linked subscriptions with paging support as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroup) {
@@ -326,7 +325,7 @@ public PagedIterable listByResourceGroup(String resourc
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of linked subscriptions with paging support.
+ * @return list of linked subscriptions with paging support as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroup, Context context) {
@@ -338,7 +337,8 @@ public PagedIterable listByResourceGroup(String resourc
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of linked subscriptions with paging support.
+ * @return list of linked subscriptions with paging support along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync() {
@@ -384,7 +384,8 @@ private Mono> listSinglePageAsync() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of linked subscriptions with paging support.
+ * @return list of linked subscriptions with paging support along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(Context context) {
@@ -425,7 +426,7 @@ private Mono> listSinglePageAsync(Context
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of linked subscriptions with paging support.
+ * @return list of linked subscriptions with paging support as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
@@ -440,7 +441,7 @@ private PagedFlux listAsync() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of linked subscriptions with paging support.
+ * @return list of linked subscriptions with paging support as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(Context context) {
@@ -453,7 +454,7 @@ private PagedFlux listAsync(Context context) {
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of linked subscriptions with paging support.
+ * @return list of linked subscriptions with paging support as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list() {
@@ -467,7 +468,7 @@ public PagedIterable list() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of linked subscriptions with paging support.
+ * @return list of linked subscriptions with paging support as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(Context context) {
@@ -482,7 +483,7 @@ public PagedIterable list(Context context) {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return linked Subscription information.
+ * @return linked Subscription information along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(
@@ -532,7 +533,7 @@ private Mono> getByResourceGroupWithResponseAs
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return linked Subscription information.
+ * @return linked Subscription information along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(
@@ -578,7 +579,7 @@ private Mono> getByResourceGroupWithResponseAs
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return linked Subscription information.
+ * @return linked Subscription information on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getByResourceGroupAsync(String resourceGroup, String linkedSubscriptionName) {
@@ -617,7 +618,7 @@ public LinkedSubscriptionInner getByResourceGroup(String resourceGroup, String l
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return linked Subscription information.
+ * @return linked Subscription information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getByResourceGroupWithResponse(
@@ -633,7 +634,7 @@ public Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> deleteWithResponseAsync(String resourceGroup, String linkedSubscriptionName) {
@@ -682,7 +683,7 @@ private Mono> deleteWithResponseAsync(String resourceGroup, Strin
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> deleteWithResponseAsync(
@@ -728,7 +729,7 @@ private Mono> deleteWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(String resourceGroup, String linkedSubscriptionName) {
@@ -759,7 +760,7 @@ public void delete(String resourceGroup, String linkedSubscriptionName) {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response deleteWithResponse(String resourceGroup, String linkedSubscriptionName, Context context) {
@@ -775,7 +776,7 @@ public Response deleteWithResponse(String resourceGroup, String linkedSubs
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return linked Subscription information.
+ * @return linked Subscription information along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createOrUpdateWithResponseAsync(
@@ -832,7 +833,7 @@ private Mono> createOrUpdateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return linked Subscription information.
+ * @return linked Subscription information along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createOrUpdateWithResponseAsync(
@@ -885,7 +886,7 @@ private Mono> createOrUpdateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return linked Subscription information.
+ * @return linked Subscription information on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
@@ -928,7 +929,7 @@ public LinkedSubscriptionInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return linked Subscription information.
+ * @return linked Subscription information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response createOrUpdateWithResponse(
@@ -945,7 +946,7 @@ public Response createOrUpdateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return linked Subscription information.
+ * @return linked Subscription information along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateWithResponseAsync(
@@ -1002,7 +1003,7 @@ private Mono> updateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return linked Subscription information.
+ * @return linked Subscription information along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateWithResponseAsync(
@@ -1055,7 +1056,7 @@ private Mono> updateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return linked Subscription information.
+ * @return linked Subscription information on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(
@@ -1098,7 +1099,7 @@ public LinkedSubscriptionInner update(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return linked Subscription information.
+ * @return linked Subscription information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response updateWithResponse(
@@ -1113,7 +1114,8 @@ public Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of linked subscriptions with paging support.
+ * @return list of linked subscriptions with paging support along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) {
@@ -1150,7 +1152,8 @@ private Mono> listByResourceGroupNextSing
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of linked subscriptions with paging support.
+ * @return list of linked subscriptions with paging support along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupNextSinglePageAsync(
@@ -1186,7 +1189,8 @@ private Mono> listByResourceGroupNextSing
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of linked subscriptions with paging support.
+ * @return list of linked subscriptions with paging support along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) {
@@ -1223,7 +1227,8 @@ private Mono> listBySubscriptionNextSingl
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of linked subscriptions with paging support.
+ * @return list of linked subscriptions with paging support along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listBySubscriptionNextSinglePageAsync(
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/LinkedSubscriptionsImpl.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/LinkedSubscriptionsImpl.java
index 3ac3cd0bbeae..5dd8fde628c5 100644
--- a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/LinkedSubscriptionsImpl.java
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/LinkedSubscriptionsImpl.java
@@ -13,10 +13,9 @@
import com.azure.resourcemanager.azurestack.fluent.models.LinkedSubscriptionInner;
import com.azure.resourcemanager.azurestack.models.LinkedSubscription;
import com.azure.resourcemanager.azurestack.models.LinkedSubscriptions;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class LinkedSubscriptionsImpl implements LinkedSubscriptions {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(LinkedSubscriptionsImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(LinkedSubscriptionsImpl.class);
private final LinkedSubscriptionsClient innerClient;
@@ -83,7 +82,7 @@ public Response deleteWithResponse(String resourceGroup, String linkedSubs
public LinkedSubscription getById(String id) {
String resourceGroup = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroup == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -91,7 +90,7 @@ public LinkedSubscription getById(String id) {
}
String linkedSubscriptionName = Utils.getValueFromIdByName(id, "linkedSubscriptions");
if (linkedSubscriptionName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -104,7 +103,7 @@ public LinkedSubscription getById(String id) {
public Response getByIdWithResponse(String id, Context context) {
String resourceGroup = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroup == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -112,7 +111,7 @@ public Response getByIdWithResponse(String id, Context conte
}
String linkedSubscriptionName = Utils.getValueFromIdByName(id, "linkedSubscriptions");
if (linkedSubscriptionName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -125,7 +124,7 @@ public Response getByIdWithResponse(String id, Context conte
public void deleteById(String id) {
String resourceGroup = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroup == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -133,20 +132,20 @@ public void deleteById(String id) {
}
String linkedSubscriptionName = Utils.getValueFromIdByName(id, "linkedSubscriptions");
if (linkedSubscriptionName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
.format(
"The resource ID '%s' is not valid. Missing path segment 'linkedSubscriptions'.", id)));
}
- this.deleteWithResponse(resourceGroup, linkedSubscriptionName, Context.NONE).getValue();
+ this.deleteWithResponse(resourceGroup, linkedSubscriptionName, Context.NONE);
}
public Response deleteByIdWithResponse(String id, Context context) {
String resourceGroup = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroup == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -154,7 +153,7 @@ public Response deleteByIdWithResponse(String id, Context context) {
}
String linkedSubscriptionName = Utils.getValueFromIdByName(id, "linkedSubscriptions");
if (linkedSubscriptionName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/OperationsClientImpl.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/OperationsClientImpl.java
index 6bd965ed58da..c0bfcd4b1952 100644
--- a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/OperationsClientImpl.java
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/OperationsClientImpl.java
@@ -25,7 +25,6 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.azurestack.fluent.OperationsClient;
import com.azure.resourcemanager.azurestack.fluent.models.OperationInner;
import com.azure.resourcemanager.azurestack.models.OperationList;
@@ -33,8 +32,6 @@
/** An instance of this class provides access to all the operations defined in OperationsClient. */
public final class OperationsClientImpl implements OperationsClient {
- private final ClientLogger logger = new ClientLogger(OperationsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final OperationsService service;
@@ -85,7 +82,7 @@ Mono> listNext(
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Operations.
+ * @return list of Operations along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync() {
@@ -118,7 +115,7 @@ private Mono> listSinglePageAsync() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Operations.
+ * @return list of Operations along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(Context context) {
@@ -148,7 +145,7 @@ private Mono> listSinglePageAsync(Context context)
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Operations.
+ * @return list of Operations as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
@@ -162,7 +159,7 @@ private PagedFlux listAsync() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Operations.
+ * @return list of Operations as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(Context context) {
@@ -175,7 +172,7 @@ private PagedFlux listAsync(Context context) {
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Operations.
+ * @return list of Operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list() {
@@ -189,7 +186,7 @@ public PagedIterable list() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Operations.
+ * @return list of Operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(Context context) {
@@ -203,7 +200,7 @@ public PagedIterable list(Context context) {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Operations.
+ * @return list of Operations along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
@@ -239,7 +236,7 @@ private Mono> listNextSinglePageAsync(String nextL
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Operations.
+ * @return list of Operations along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink, Context context) {
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/OperationsImpl.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/OperationsImpl.java
index 6142e113527b..9c1e8814138a 100644
--- a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/OperationsImpl.java
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/OperationsImpl.java
@@ -11,10 +11,9 @@
import com.azure.resourcemanager.azurestack.fluent.models.OperationInner;
import com.azure.resourcemanager.azurestack.models.Operation;
import com.azure.resourcemanager.azurestack.models.Operations;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class OperationsImpl implements Operations {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationsImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(OperationsImpl.class);
private final OperationsClient innerClient;
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/ProductImpl.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/ProductImpl.java
index fc117af7a79b..1db11c7180b9 100644
--- a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/ProductImpl.java
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/ProductImpl.java
@@ -40,6 +40,10 @@ public SystemData systemData() {
return this.innerModel().systemData();
}
+ public String etag() {
+ return this.innerModel().etag();
+ }
+
public String displayName() {
return this.innerModel().displayName();
}
@@ -117,10 +121,6 @@ public Compatibility compatibility() {
return this.innerModel().compatibility();
}
- public String etag() {
- return this.innerModel().etag();
- }
-
public ProductInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/ProductsClientImpl.java b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/ProductsClientImpl.java
index d152eaffa0f3..307fb6bab37e 100644
--- a/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/ProductsClientImpl.java
+++ b/sdk/azurestack/azure-resourcemanager-azurestack/src/main/java/com/azure/resourcemanager/azurestack/implementation/ProductsClientImpl.java
@@ -27,7 +27,6 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.azurestack.fluent.ProductsClient;
import com.azure.resourcemanager.azurestack.fluent.models.ExtendedProductInner;
import com.azure.resourcemanager.azurestack.fluent.models.ProductInner;
@@ -39,8 +38,6 @@
/** An instance of this class provides access to all the operations defined in ProductsClient. */
public final class ProductsClientImpl implements ProductsClient {
- private final ClientLogger logger = new ClientLogger(ProductsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final ProductsService service;
@@ -181,7 +178,7 @@ Mono> listNext(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of products.
+ * @return pageable list of products along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(String resourceGroup, String registrationName) {
@@ -238,7 +235,7 @@ private Mono> listSinglePageAsync(String resourceGro
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of products.
+ * @return pageable list of products along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
@@ -292,7 +289,7 @@ private Mono> listSinglePageAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of products.
+ * @return pageable list of products as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String resourceGroup, String registrationName) {
@@ -309,7 +306,7 @@ private PagedFlux listAsync(String resourceGroup, String registrat
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of products.
+ * @return pageable list of products as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String resourceGroup, String registrationName, Context context) {
@@ -326,7 +323,7 @@ private PagedFlux listAsync(String resourceGroup, String registrat
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of products.
+ * @return pageable list of products as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String resourceGroup, String registrationName) {
@@ -342,7 +339,7 @@ public PagedIterable list(String resourceGroup, String registratio
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of products.
+ * @return pageable list of products as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String resourceGroup, String registrationName, Context context) {
@@ -358,7 +355,7 @@ public PagedIterable list(String resourceGroup, String registratio
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return product information.
+ * @return product information along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -412,7 +409,7 @@ private Mono> getWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return product information.
+ * @return product information along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -462,7 +459,7 @@ private Mono> getWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return product information.
+ * @return product information on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(String resourceGroup, String registrationName, String productName) {
@@ -503,7 +500,7 @@ public ProductInner get(String resourceGroup, String registrationName, String pr
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return product information.
+ * @return product information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getWithResponse(
@@ -520,7 +517,8 @@ public Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return 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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listDetailsWithResponseAsync(
@@ -574,7 +572,8 @@ private Mono> listDetailsWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return 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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listDetailsWithResponseAsync(
@@ -624,7 +623,8 @@ private Mono> listDetailsWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return 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 on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono listDetailsAsync(
@@ -666,7 +666,8 @@ public ExtendedProductInner listDetails(String resourceGroup, String registratio
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return 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)
public Response listDetailsWithResponse(
@@ -684,7 +685,7 @@ public Response listDetailsWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of products.
+ * @return pageable list of products along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getProductsWithResponseAsync(
@@ -743,7 +744,7 @@ private Mono> getProductsWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of products.
+ * @return pageable list of products along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getProductsWithResponseAsync(
@@ -802,7 +803,7 @@ private Mono> getProductsWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of products.
+ * @return pageable list of products on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getProductsAsync(
@@ -827,7 +828,7 @@ private Mono getProductsAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of products.
+ * @return pageable list of products on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getProductsAsync(String resourceGroup, String registrationName, String productName) {
@@ -871,7 +872,7 @@ public ProductListInner getProducts(String resourceGroup, String registrationNam
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of products.
+ * @return pageable list of products along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getProductsWithResponse(
@@ -894,7 +895,7 @@ public Response getProductsWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return product information.
+ * @return product information along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getProductWithResponseAsync(
@@ -953,7 +954,7 @@ private Mono> getProductWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return product information.
+ * @return product information along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getProductWithResponseAsync(
@@ -1012,7 +1013,7 @@ private Mono> getProductWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return product information.
+ * @return product information on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono