diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 9a7e5862267f2..a5e831d3d8d55 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -333,6 +333,7 @@ com.azure.resourcemanager:azure-resourcemanager-dnsresolver;1.0.0-beta.1;1.0.0-b
com.azure.resourcemanager:azure-resourcemanager-mobilenetwork;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-azureadexternalidentities;1.0.0-beta.1;1.0.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-dashboard;1.0.0-beta.1;1.0.0-beta.2
+com.azure.resourcemanager:azure-resourcemanager-elasticsan;1.0.0-beta.1;1.0.0-beta.1
com.azure.tools:azure-sdk-archetype;1.0.0;1.0.0
com.azure.tools:azure-sdk-build-tool;1.0.0-beta.1;1.0.0-beta.2
diff --git a/pom.xml b/pom.xml
index ba604d611551c..91bb8c9ff643e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -894,6 +894,7 @@
sdk/dnsresolversdk/edgeordersdk/elastic
+ sdk/elasticsansdk/eventgridsdk/eventhubssdk/extendedlocation
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/CHANGELOG.md b/sdk/elasticsan/azure-resourcemanager-elasticsan/CHANGELOG.md
new file mode 100644
index 0000000000000..6042eab1b6c52
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2022-04-12)
+
+- Azure Resource Manager ElasticSan client library for Java. This package contains Microsoft Azure SDK for ElasticSan Management SDK. Package tag package-2021-11-20-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/README.md b/sdk/elasticsan/azure-resourcemanager-elasticsan/README.md
new file mode 100644
index 0000000000000..8b25c14b4fc77
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/README.md
@@ -0,0 +1,102 @@
+# Azure Resource Manager ElasticSan client library for Java
+
+Azure Resource Manager ElasticSan client library for Java.
+
+This package contains Microsoft Azure SDK for ElasticSan Management SDK. Package tag package-2021-11-20-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+
+## We'd love to hear your feedback
+
+We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.
+
+If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.
+
+Thank you in advance for your collaboration. We really appreciate your time!
+
+## Documentation
+
+Various documentation is available to help you get started
+
+- [API reference documentation][docs]
+
+## Getting started
+
+### Prerequisites
+
+- [Java Development Kit (JDK)][jdk] with version 8 or above
+- [Azure Subscription][azure_subscription]
+
+### Adding the package to your product
+
+[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-elasticsan;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-elasticsan
+ 1.0.0-beta.1
+
+```
+[//]: # ({x-version-update-end})
+
+### Include the recommended packages
+
+Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
+
+[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.
+
+### Authentication
+
+By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
+
+- `AZURE_CLIENT_ID` for Azure client ID.
+- `AZURE_TENANT_ID` for Azure tenant ID.
+- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
+
+In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
+
+With above configuration, `azure` client can be authenticated by following code:
+
+```java
+AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+TokenCredential credential = new DefaultAzureCredentialBuilder()
+ .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
+ .build();
+ElasticSanManager manager = ElasticSanManager
+ .authenticate(credential, profile);
+```
+
+The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+
+See [Authentication][authenticate] for more options.
+
+## Key concepts
+
+See [API design][design] for general introduction on design and key concepts on Azure Management Libraries.
+
+## Examples
+
+[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/elasticsan/azure-resourcemanager-elasticsan/SAMPLE.md)
+
+
+## Troubleshooting
+
+## Next steps
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md).
+
+1. Fork it
+1. Create your feature branch (`git checkout -b my-new-feature`)
+1. Commit your changes (`git commit -am 'Add some feature'`)
+1. Push to the branch (`git push origin my-new-feature`)
+1. Create new Pull Request
+
+
+[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
+[docs]: https://azure.github.io/azure-sdk-for-java/
+[jdk]: https://docs.microsoft.com/java/azure/jdk/
+[azure_subscription]: https://azure.microsoft.com/free/
+[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
+[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
+[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
+[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/SAMPLE.md b/sdk/elasticsan/azure-resourcemanager-elasticsan/SAMPLE.md
new file mode 100644
index 0000000000000..c8b5ea22536d0
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/SAMPLE.md
@@ -0,0 +1,766 @@
+# Code snippets and samples
+
+
+## ElasticSans
+
+- [Create](#elasticsans_create)
+- [Delete](#elasticsans_delete)
+- [GetByResourceGroup](#elasticsans_getbyresourcegroup)
+- [List](#elasticsans_list)
+- [ListByResourceGroup](#elasticsans_listbyresourcegroup)
+- [Update](#elasticsans_update)
+
+## Operations
+
+- [List](#operations_list)
+
+## Skus
+
+- [List](#skus_list)
+
+## VolumeGroups
+
+- [Create](#volumegroups_create)
+- [Delete](#volumegroups_delete)
+- [Get](#volumegroups_get)
+- [ListByElasticSan](#volumegroups_listbyelasticsan)
+- [Update](#volumegroups_update)
+
+## Volumes
+
+- [Create](#volumes_create)
+- [Delete](#volumes_delete)
+- [Get](#volumes_get)
+- [ListByVolumeGroup](#volumes_listbyvolumegroup)
+- [Update](#volumes_update)
+### ElasticSans_Create
+
+```java
+import com.azure.resourcemanager.elasticsan.models.Name;
+import com.azure.resourcemanager.elasticsan.models.Sku;
+import com.azure.resourcemanager.elasticsan.models.Tier;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ElasticSans Create. */
+public final class ElasticSansCreateSamples {
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_Create_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: ElasticSans_Create_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void elasticSansCreateMaximumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager
+ .elasticSans()
+ .define("33zg-7s_4_7L2_65o")
+ .withRegion("aaaaaaaaaaaaaaaaaaaaaaaaa")
+ .withExistingResourceGroup("rgelasticsan")
+ .withTags(mapOf("key3875", "aaaaaaaaa"))
+ .withSku(new Sku().withName(Name.STANDARD_LRS).withTier(Tier.fromString("Standard")))
+ .withAvailabilityZones(Arrays.asList("aaaaaaaaaaaaaaaaaaaaaaaaa"))
+ .withBaseSizeTiB(26L)
+ .withExtendedCapacitySizeTiB(4L)
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ElasticSans_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ElasticSans Delete. */
+public final class ElasticSansDeleteSamples {
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_Delete_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: ElasticSans_Delete_MinimumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void elasticSansDeleteMinimumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager.elasticSans().delete("rgelasticsan", "33zg-7s_4_7L2_65o", null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_Delete_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: ElasticSans_Delete_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void elasticSansDeleteMaximumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager.elasticSans().delete("rgelasticsan", "33zg-7s_4_7L2_65o", true, Context.NONE);
+ }
+}
+```
+
+### ElasticSans_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ElasticSans GetByResourceGroup. */
+public final class ElasticSansGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_Get_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: ElasticSans_Get_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void elasticSansGetMaximumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager.elasticSans().getByResourceGroupWithResponse("rgelasticsan", "33zg-7s_4_7L2_65o", Context.NONE);
+ }
+}
+```
+
+### ElasticSans_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ElasticSans List. */
+public final class ElasticSansListSamples {
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_ListBySubscription_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: ElasticSans_ListBySubscription_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void elasticSansListBySubscriptionMaximumSetGen(
+ com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager.elasticSans().list(Context.NONE);
+ }
+}
+```
+
+### ElasticSans_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ElasticSans ListByResourceGroup. */
+public final class ElasticSansListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_ListByResourceGroup_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: ElasticSans_ListByResourceGroup_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void elasticSansListByResourceGroupMaximumSetGen(
+ com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager.elasticSans().listByResourceGroup("rgelasticsan", Context.NONE);
+ }
+}
+```
+
+### ElasticSans_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.elasticsan.models.ElasticSan;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ElasticSans Update. */
+public final class ElasticSansUpdateSamples {
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/ElasticSans_Update_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: ElasticSans_Update_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void elasticSansUpdateMaximumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ ElasticSan resource =
+ manager
+ .elasticSans()
+ .getByResourceGroupWithResponse("rgelasticsan", "33zg-7s_4_7L2_65o", Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key337", "aaaa")).apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Operations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Operations_List_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: Operations_List_MinimumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void operationsListMinimumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager.operations().list(Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Operations_List_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: Operations_List_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void operationsListMaximumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager.operations().list(Context.NONE);
+ }
+}
+```
+
+### Skus_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Skus List. */
+public final class SkusListSamples {
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Skus_List_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: Skus_List_MinimumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void skusListMinimumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager.skus().list(null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Skus_List_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: Skus_List_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void skusListMaximumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager.skus().list("aaaaaaaaaaaa", Context.NONE);
+ }
+}
+```
+
+### VolumeGroups_Create
+
+```java
+import com.azure.resourcemanager.elasticsan.models.Action;
+import com.azure.resourcemanager.elasticsan.models.EncryptionType;
+import com.azure.resourcemanager.elasticsan.models.NetworkRuleSet;
+import com.azure.resourcemanager.elasticsan.models.StorageTargetType;
+import com.azure.resourcemanager.elasticsan.models.VirtualNetworkRule;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for VolumeGroups Create. */
+public final class VolumeGroupsCreateSamples {
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Create_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: VolumeGroups_Create_MinimumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void volumeGroupsCreateMinimumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager
+ .volumeGroups()
+ .define("9_67U25-1f2gR3-b6L-4T5")
+ .withRegion((String) null)
+ .withExistingElasticSan("rgelasticsan", "33zg-7s_4_7L2_65o")
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Create_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: VolumeGroups_Create_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void volumeGroupsCreateMaximumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager
+ .volumeGroups()
+ .define("9_67U25-1f2gR3-b6L-4T5")
+ .withRegion("aaaaaaaaaaaaaaaaaaaaaa")
+ .withExistingElasticSan("rgelasticsan", "33zg-7s_4_7L2_65o")
+ .withTags(mapOf("key3582", "a"))
+ .withProtocolType(StorageTargetType.ISCSI)
+ .withEncryption(EncryptionType.ENCRYPTION_AT_REST_WITH_PLATFORM_KEY)
+ .withNetworkAcls(
+ new NetworkRuleSet()
+ .withVirtualNetworkRules(
+ Arrays
+ .asList(
+ new VirtualNetworkRule().withVirtualNetworkResourceId("aa").withAction(Action.ALLOW))))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### VolumeGroups_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for VolumeGroups Delete. */
+public final class VolumeGroupsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Delete_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: VolumeGroups_Delete_MinimumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void volumeGroupsDeleteMinimumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager
+ .volumeGroups()
+ .delete("rgelasticsan", "33zg-7s_4_7L2_65o", "9_67U25-1f2gR3-b6L-4T5", null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Delete_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: VolumeGroups_Delete_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void volumeGroupsDeleteMaximumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager
+ .volumeGroups()
+ .delete("rgelasticsan", "33zg-7s_4_7L2_65o", "9_67U25-1f2gR3-b6L-4T5", true, Context.NONE);
+ }
+}
+```
+
+### VolumeGroups_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for VolumeGroups Get. */
+public final class VolumeGroupsGetSamples {
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Get_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: VolumeGroups_Get_MinimumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void volumeGroupsGetMinimumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager
+ .volumeGroups()
+ .getWithResponse("rgelasticsan", "33zg-7s_4_7L2_65o", "9_67U25-1f2gR3-b6L-4T5", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Get_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: VolumeGroups_Get_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void volumeGroupsGetMaximumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager
+ .volumeGroups()
+ .getWithResponse("rgelasticsan", "33zg-7s_4_7L2_65o", "9_67U25-1f2gR3-b6L-4T5", Context.NONE);
+ }
+}
+```
+
+### VolumeGroups_ListByElasticSan
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for VolumeGroups ListByElasticSan. */
+public final class VolumeGroupsListByElasticSanSamples {
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_ListByElasticSan_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: VolumeGroups_ListByElasticSan_MinimumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void volumeGroupsListByElasticSanMinimumSetGen(
+ com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager.volumeGroups().listByElasticSan("rgelasticsan", "33zg-7s_4_7L2_65o", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_ListByElasticSan_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: VolumeGroups_ListByElasticSan_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void volumeGroupsListByElasticSanMaximumSetGen(
+ com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager.volumeGroups().listByElasticSan("rgelasticsan", "33zg-7s_4_7L2_65o", Context.NONE);
+ }
+}
+```
+
+### VolumeGroups_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.elasticsan.models.EncryptionType;
+import com.azure.resourcemanager.elasticsan.models.StorageTargetType;
+import com.azure.resourcemanager.elasticsan.models.VolumeGroup;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for VolumeGroups Update. */
+public final class VolumeGroupsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Update_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: VolumeGroups_Update_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void volumeGroupsUpdateMaximumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ VolumeGroup resource =
+ manager
+ .volumeGroups()
+ .getWithResponse("rgelasticsan", "33zg-7s_4_7L2_65o", "9_67U25-1f2gR3-b6L-4T5", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf("key7736", "aa"))
+ .withProtocolType(StorageTargetType.ISCSI)
+ .withEncryption(EncryptionType.ENCRYPTION_AT_REST_WITH_PLATFORM_KEY)
+ .apply();
+ }
+
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Update_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: VolumeGroups_Update_MinimumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void volumeGroupsUpdateMinimumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ VolumeGroup resource =
+ manager
+ .volumeGroups()
+ .getWithResponse("rgelasticsan", "33zg-7s_4_7L2_65o", "9_67U25-1f2gR3-b6L-4T5", Context.NONE)
+ .getValue();
+ resource.update().apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Volumes_Create
+
+```java
+import com.azure.resourcemanager.elasticsan.models.SourceCreationData;
+import com.azure.resourcemanager.elasticsan.models.VolumeCreateOption;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Volumes Create. */
+public final class VolumesCreateSamples {
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Create_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: Volumes_Create_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void volumesCreateMaximumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager
+ .volumes()
+ .define("vt-h45-18D68-j3sg8")
+ .withRegion("aaaaaaaaaaa")
+ .withExistingVolumegroup("rgelasticsan", "33zg-7s_4_7L2_65o", "9_67U25-1f2gR3-b6L-4T5")
+ .withTags(mapOf("key9122", "aaaaaaaaaaaaaaaaaaaaaaaaaa"))
+ .withCreationData(
+ new SourceCreationData()
+ .withCreateSource(VolumeCreateOption.NONE)
+ .withSourceUri("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"))
+ .withSizeGiB(30L)
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Create_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: Volumes_Create_MinimumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void volumesCreateMinimumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager
+ .volumes()
+ .define("vt-h45-18D68-j3sg8")
+ .withRegion((String) null)
+ .withExistingVolumegroup("rgelasticsan", "33zg-7s_4_7L2_65o", "9_67U25-1f2gR3-b6L-4T5")
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Volumes_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Volumes Delete. */
+public final class VolumesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Delete_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: Volumes_Delete_MinimumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void volumesDeleteMinimumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager
+ .volumes()
+ .delete("rgelasticsan", "33zg-7s_4_7L2_65o", "9_67U25-1f2gR3-b6L-4T5", "vt-h45-18D68-j3sg8", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Delete_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: Volumes_Delete_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void volumesDeleteMaximumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager
+ .volumes()
+ .delete("rgelasticsan", "33zg-7s_4_7L2_65o", "9_67U25-1f2gR3-b6L-4T5", "vt-h45-18D68-j3sg8", Context.NONE);
+ }
+}
+```
+
+### Volumes_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Volumes Get. */
+public final class VolumesGetSamples {
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Get_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: Volumes_Get_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void volumesGetMaximumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager
+ .volumes()
+ .getWithResponse(
+ "rgelasticsan", "33zg-7s_4_7L2_65o", "9_67U25-1f2gR3-b6L-4T5", "vt-h45-18D68-j3sg8", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Get_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: Volumes_Get_MinimumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void volumesGetMinimumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager
+ .volumes()
+ .getWithResponse(
+ "rgelasticsan", "33zg-7s_4_7L2_65o", "9_67U25-1f2gR3-b6L-4T5", "vt-h45-18D68-j3sg8", Context.NONE);
+ }
+}
+```
+
+### Volumes_ListByVolumeGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Volumes ListByVolumeGroup. */
+public final class VolumesListByVolumeGroupSamples {
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_ListByVolumeGroup_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: Volumes_ListByVolumeGroup_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void volumesListByVolumeGroupMaximumSetGen(
+ com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager
+ .volumes()
+ .listByVolumeGroup("rgelasticsan", "33zg-7s_4_7L2_65o", "9_67U25-1f2gR3-b6L-4T5", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_ListByVolumeGroup_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: Volumes_ListByVolumeGroup_MinimumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void volumesListByVolumeGroupMinimumSetGen(
+ com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ manager
+ .volumes()
+ .listByVolumeGroup("rgelasticsan", "33zg-7s_4_7L2_65o", "9_67U25-1f2gR3-b6L-4T5", Context.NONE);
+ }
+}
+```
+
+### Volumes_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.elasticsan.models.Volume;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Volumes Update. */
+public final class VolumesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Update_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: Volumes_Update_MinimumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void volumesUpdateMinimumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ Volume resource =
+ manager
+ .volumes()
+ .getWithResponse(
+ "rgelasticsan", "33zg-7s_4_7L2_65o", "9_67U25-1f2gR3-b6L-4T5", "vt-h45-18D68-j3sg8", Context.NONE)
+ .getValue();
+ resource.update().apply();
+ }
+
+ /*
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Update_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: Volumes_Update_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ElasticSanManager.
+ */
+ public static void volumesUpdateMaximumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
+ Volume resource =
+ manager
+ .volumes()
+ .getWithResponse(
+ "rgelasticsan", "33zg-7s_4_7L2_65o", "9_67U25-1f2gR3-b6L-4T5", "vt-h45-18D68-j3sg8", Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key4653", "aaaaaaaaa")).withSizeGiB(23L).apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/pom.xml b/sdk/elasticsan/azure-resourcemanager-elasticsan/pom.xml
new file mode 100644
index 0000000000000..0bbcf37fc49ac
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/pom.xml
@@ -0,0 +1,55 @@
+
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-elasticsan
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for ElasticSan Management
+ This package contains Microsoft Azure SDK for ElasticSan Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2021-11-20-preview.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+ true
+
+
+
+ com.azure
+ azure-core
+ 1.27.0
+
+
+ com.azure
+ azure-core-management
+ 1.5.4
+
+
+
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/ElasticSanManager.java b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/ElasticSanManager.java
new file mode 100644
index 0000000000000..412809546d426
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/ElasticSanManager.java
@@ -0,0 +1,326 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elasticsan;
+
+import com.azure.core.credential.TokenCredential;
+import com.azure.core.http.HttpClient;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.HttpPipelinePosition;
+import com.azure.core.http.policy.AddDatePolicy;
+import com.azure.core.http.policy.AddHeadersFromContextPolicy;
+import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.HttpPipelinePolicy;
+import com.azure.core.http.policy.HttpPolicyProviders;
+import com.azure.core.http.policy.RequestIdPolicy;
+import com.azure.core.http.policy.RetryOptions;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
+import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.util.Configuration;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.elasticsan.fluent.ElasticSanManagement;
+import com.azure.resourcemanager.elasticsan.implementation.ElasticSanManagementBuilder;
+import com.azure.resourcemanager.elasticsan.implementation.ElasticSansImpl;
+import com.azure.resourcemanager.elasticsan.implementation.OperationsImpl;
+import com.azure.resourcemanager.elasticsan.implementation.SkusImpl;
+import com.azure.resourcemanager.elasticsan.implementation.VolumeGroupsImpl;
+import com.azure.resourcemanager.elasticsan.implementation.VolumesImpl;
+import com.azure.resourcemanager.elasticsan.models.ElasticSans;
+import com.azure.resourcemanager.elasticsan.models.Operations;
+import com.azure.resourcemanager.elasticsan.models.Skus;
+import com.azure.resourcemanager.elasticsan.models.VolumeGroups;
+import com.azure.resourcemanager.elasticsan.models.Volumes;
+import java.time.Duration;
+import java.time.temporal.ChronoUnit;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+import java.util.stream.Collectors;
+
+/** Entry point to ElasticSanManager. */
+public final class ElasticSanManager {
+ private Operations operations;
+
+ private Skus skus;
+
+ private ElasticSans elasticSans;
+
+ private VolumeGroups volumeGroups;
+
+ private Volumes volumes;
+
+ private final ElasticSanManagement clientObject;
+
+ private ElasticSanManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject =
+ new ElasticSanManagementBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * Creates an instance of ElasticSan service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the ElasticSan service API instance.
+ */
+ public static ElasticSanManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ return configure().authenticate(credential, profile);
+ }
+
+ /**
+ * Creates an instance of ElasticSan service API entry point.
+ *
+ * @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
+ * @param profile the Azure profile for client.
+ * @return the ElasticSan service API instance.
+ */
+ public static ElasticSanManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ return new ElasticSanManager(httpPipeline, profile, null);
+ }
+
+ /**
+ * Gets a Configurable instance that can be used to create ElasticSanManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new ElasticSanManager.Configurable();
+ }
+
+ /** The Configurable allowing configurations to be set. */
+ public static final class Configurable {
+ 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 RetryOptions retryOptions;
+ private Duration defaultPollInterval;
+
+ private Configurable() {
+ }
+
+ /**
+ * Sets the http client.
+ *
+ * @param httpClient the HTTP client.
+ * @return the configurable object itself.
+ */
+ public Configurable withHttpClient(HttpClient httpClient) {
+ this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the logging options to the HTTP pipeline.
+ *
+ * @param httpLogOptions the HTTP log options.
+ * @return the configurable object itself.
+ */
+ public Configurable withLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Adds the pipeline policy to the HTTP pipeline.
+ *
+ * @param policy the HTTP pipeline policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withPolicy(HttpPipelinePolicy policy) {
+ this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Sets the retry policy to the HTTP pipeline.
+ *
+ * @param retryPolicy the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ *
This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the default poll interval, used when service does not provide "Retry-After" header.
+ *
+ * @param defaultPollInterval the default poll interval.
+ * @return the configurable object itself.
+ */
+ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of ElasticSan service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the ElasticSan service API instance.
+ */
+ public ElasticSanManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder
+ .append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.elasticsan")
+ .append("/")
+ .append("1.0.0-beta.1");
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder
+ .append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
+ if (retryPolicy == null) {
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
+ policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline =
+ new HttpPipelineBuilder()
+ .httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new ElasticSanManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /** @return Resource collection API of Operations. */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /** @return Resource collection API of Skus. */
+ public Skus skus() {
+ if (this.skus == null) {
+ this.skus = new SkusImpl(clientObject.getSkus(), this);
+ }
+ return skus;
+ }
+
+ /** @return Resource collection API of ElasticSans. */
+ public ElasticSans elasticSans() {
+ if (this.elasticSans == null) {
+ this.elasticSans = new ElasticSansImpl(clientObject.getElasticSans(), this);
+ }
+ return elasticSans;
+ }
+
+ /** @return Resource collection API of VolumeGroups. */
+ public VolumeGroups volumeGroups() {
+ if (this.volumeGroups == null) {
+ this.volumeGroups = new VolumeGroupsImpl(clientObject.getVolumeGroups(), this);
+ }
+ return volumeGroups;
+ }
+
+ /** @return Resource collection API of Volumes. */
+ public Volumes volumes() {
+ if (this.volumes == null) {
+ this.volumes = new VolumesImpl(clientObject.getVolumes(), this);
+ }
+ return volumes;
+ }
+
+ /**
+ * @return Wrapped service client ElasticSanManagement providing direct access to the underlying auto-generated API
+ * implementation, based on Azure REST API.
+ */
+ public ElasticSanManagement serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/ElasticSanManagement.java b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/ElasticSanManagement.java
new file mode 100644
index 0000000000000..2d251f2bd9129
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/ElasticSanManagement.java
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elasticsan.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for ElasticSanManagement class. */
+public interface ElasticSanManagement {
+ /**
+ * Gets The ID of the target subscription.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the SkusClient object to access its operations.
+ *
+ * @return the SkusClient object.
+ */
+ SkusClient getSkus();
+
+ /**
+ * Gets the ElasticSansClient object to access its operations.
+ *
+ * @return the ElasticSansClient object.
+ */
+ ElasticSansClient getElasticSans();
+
+ /**
+ * Gets the VolumeGroupsClient object to access its operations.
+ *
+ * @return the VolumeGroupsClient object.
+ */
+ VolumeGroupsClient getVolumeGroups();
+
+ /**
+ * Gets the VolumesClient object to access its operations.
+ *
+ * @return the VolumesClient object.
+ */
+ VolumesClient getVolumes();
+}
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/ElasticSansClient.java b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/ElasticSansClient.java
new file mode 100644
index 0000000000000..e1c6e169af05a
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/ElasticSansClient.java
@@ -0,0 +1,285 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elasticsan.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.elasticsan.fluent.models.ElasticSanInner;
+import com.azure.resourcemanager.elasticsan.models.ElasticSanUpdate;
+
+/** An instance of this class provides access to all the operations defined in ElasticSansClient. */
+public interface ElasticSansClient {
+ /**
+ * Gets a list of ElasticSans in a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of ElasticSans in a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Gets a list of ElasticSans in a 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 a list of ElasticSans in a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Gets a list of ElasticSan in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of ElasticSan in a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Gets a list of ElasticSan in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of ElasticSan in a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Create ElasticSan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param parameters Elastic San object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response for ElasticSan request.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticSanInner> beginCreate(
+ String resourceGroupName, String elasticSanName, ElasticSanInner parameters);
+
+ /**
+ * Create ElasticSan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param parameters Elastic San object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response for ElasticSan request.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticSanInner> beginCreate(
+ String resourceGroupName, String elasticSanName, ElasticSanInner parameters, Context context);
+
+ /**
+ * Create ElasticSan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param parameters Elastic San object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response for ElasticSan request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticSanInner create(String resourceGroupName, String elasticSanName, ElasticSanInner parameters);
+
+ /**
+ * Create ElasticSan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param parameters Elastic San object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response for ElasticSan request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticSanInner create(
+ String resourceGroupName, String elasticSanName, ElasticSanInner parameters, Context context);
+
+ /**
+ * Update a Elastic San.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param parameters Elastic San object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response for ElasticSan request.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticSanInner> beginUpdate(
+ String resourceGroupName, String elasticSanName, ElasticSanUpdate parameters);
+
+ /**
+ * Update a Elastic San.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param parameters Elastic San object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response for ElasticSan request.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticSanInner> beginUpdate(
+ String resourceGroupName, String elasticSanName, ElasticSanUpdate parameters, Context context);
+
+ /**
+ * Update a Elastic San.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param parameters Elastic San object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response for ElasticSan request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticSanInner update(String resourceGroupName, String elasticSanName, ElasticSanUpdate parameters);
+
+ /**
+ * Update a Elastic San.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param parameters Elastic San object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response for ElasticSan request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticSanInner update(
+ String resourceGroupName, String elasticSanName, ElasticSanUpdate parameters, Context context);
+
+ /**
+ * Delete a Elastic San.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param forceDeleteVolumeGroups Required if the San has associated Volume Groups.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String elasticSanName, Boolean forceDeleteVolumeGroups);
+
+ /**
+ * Delete a Elastic San.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param forceDeleteVolumeGroups Required if the San has associated Volume Groups.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String elasticSanName, Boolean forceDeleteVolumeGroups, Context context);
+
+ /**
+ * Delete a Elastic San.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param forceDeleteVolumeGroups Required if the San has associated Volume Groups.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String elasticSanName, Boolean forceDeleteVolumeGroups);
+
+ /**
+ * Delete a Elastic San.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String elasticSanName);
+
+ /**
+ * Delete a Elastic San.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param forceDeleteVolumeGroups Required if the San has associated Volume Groups.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String elasticSanName, Boolean forceDeleteVolumeGroups, Context context);
+
+ /**
+ * Get a ElasticSan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a ElasticSan.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticSanInner getByResourceGroup(String resourceGroupName, String elasticSanName);
+
+ /**
+ * Get a ElasticSan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a ElasticSan along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String elasticSanName, Context context);
+}
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/OperationsClient.java b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/OperationsClient.java
new file mode 100644
index 0000000000000..d58c5fd9796fe
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/OperationsClient.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elasticsan.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.elasticsan.fluent.models.ElasticSanRPOperationInner;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public interface OperationsClient {
+ /**
+ * Gets a list of ElasticSan operations.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of ElasticSan operations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Gets a list of ElasticSan operations.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of ElasticSan operations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/SkusClient.java b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/SkusClient.java
new file mode 100644
index 0000000000000..fd4fe1bed370f
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/SkusClient.java
@@ -0,0 +1,37 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elasticsan.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.elasticsan.fluent.models.ResourceTypeSkuInner;
+
+/** An instance of this class provides access to all the operations defined in SkusClient. */
+public interface SkusClient {
+ /**
+ * List all the available Skus in the region and information related to them.
+ *
+ * @throws com.azure.core.management.exception.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 SKU Information objects as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List all the available Skus in the region and information related to them.
+ *
+ * @param filter Specify $filter='location eq <location>' to filter on location.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 SKU Information objects as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String filter, Context context);
+}
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/VolumeGroupsClient.java b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/VolumeGroupsClient.java
new file mode 100644
index 0000000000000..bb3b677c1827d
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/VolumeGroupsClient.java
@@ -0,0 +1,307 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elasticsan.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.elasticsan.fluent.models.VolumeGroupInner;
+import com.azure.resourcemanager.elasticsan.models.VolumeGroupUpdate;
+
+/** An instance of this class provides access to all the operations defined in VolumeGroupsClient. */
+public interface VolumeGroupsClient {
+ /**
+ * List VolumeGroups.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 Volume Groups as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByElasticSan(String resourceGroupName, String elasticSanName);
+
+ /**
+ * List VolumeGroups.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 Volume Groups as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByElasticSan(String resourceGroupName, String elasticSanName, Context context);
+
+ /**
+ * Create a Volume Group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param parameters Volume Group object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response for Volume Group request.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VolumeGroupInner> beginCreate(
+ String resourceGroupName, String elasticSanName, String volumeGroupName, VolumeGroupInner parameters);
+
+ /**
+ * Create a Volume Group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param parameters Volume Group object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response for Volume Group request.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VolumeGroupInner> beginCreate(
+ String resourceGroupName,
+ String elasticSanName,
+ String volumeGroupName,
+ VolumeGroupInner parameters,
+ Context context);
+
+ /**
+ * Create a Volume Group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param parameters Volume Group object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response for Volume Group request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VolumeGroupInner create(
+ String resourceGroupName, String elasticSanName, String volumeGroupName, VolumeGroupInner parameters);
+
+ /**
+ * Create a Volume Group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param parameters Volume Group object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response for Volume Group request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VolumeGroupInner create(
+ String resourceGroupName,
+ String elasticSanName,
+ String volumeGroupName,
+ VolumeGroupInner parameters,
+ Context context);
+
+ /**
+ * Update an VolumeGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param parameters Volume Group object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response for Volume Group request.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VolumeGroupInner> beginUpdate(
+ String resourceGroupName, String elasticSanName, String volumeGroupName, VolumeGroupUpdate parameters);
+
+ /**
+ * Update an VolumeGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param parameters Volume Group object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response for Volume Group request.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VolumeGroupInner> beginUpdate(
+ String resourceGroupName,
+ String elasticSanName,
+ String volumeGroupName,
+ VolumeGroupUpdate parameters,
+ Context context);
+
+ /**
+ * Update an VolumeGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param parameters Volume Group object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response for Volume Group request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VolumeGroupInner update(
+ String resourceGroupName, String elasticSanName, String volumeGroupName, VolumeGroupUpdate parameters);
+
+ /**
+ * Update an VolumeGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param parameters Volume Group object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response for Volume Group request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VolumeGroupInner update(
+ String resourceGroupName,
+ String elasticSanName,
+ String volumeGroupName,
+ VolumeGroupUpdate parameters,
+ Context context);
+
+ /**
+ * Delete an VolumeGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param forceDeleteVolumes Required if the Volume Group has associated volumes.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String elasticSanName, String volumeGroupName, Boolean forceDeleteVolumes);
+
+ /**
+ * Delete an VolumeGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param forceDeleteVolumes Required if the Volume Group has associated volumes.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName,
+ String elasticSanName,
+ String volumeGroupName,
+ Boolean forceDeleteVolumes,
+ Context context);
+
+ /**
+ * Delete an VolumeGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param forceDeleteVolumes Required if the Volume Group has associated volumes.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String elasticSanName, String volumeGroupName, Boolean forceDeleteVolumes);
+
+ /**
+ * Delete an VolumeGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String elasticSanName, String volumeGroupName);
+
+ /**
+ * Delete an VolumeGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param forceDeleteVolumes Required if the Volume Group has associated volumes.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(
+ String resourceGroupName,
+ String elasticSanName,
+ String volumeGroupName,
+ Boolean forceDeleteVolumes,
+ Context context);
+
+ /**
+ * Get an VolumeGroups.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an VolumeGroups.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VolumeGroupInner get(String resourceGroupName, String elasticSanName, String volumeGroupName);
+
+ /**
+ * Get an VolumeGroups.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an VolumeGroups along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String elasticSanName, String volumeGroupName, Context context);
+}
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/VolumesClient.java b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/VolumesClient.java
new file mode 100644
index 0000000000000..32fb71b55b122
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/VolumesClient.java
@@ -0,0 +1,320 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elasticsan.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.elasticsan.fluent.models.VolumeInner;
+import com.azure.resourcemanager.elasticsan.models.VolumeUpdate;
+
+/** An instance of this class provides access to all the operations defined in VolumesClient. */
+public interface VolumesClient {
+ /**
+ * Create a Volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param volumeName The name of the Volume.
+ * @param parameters Volume object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response for Volume request.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VolumeInner> beginCreate(
+ String resourceGroupName,
+ String elasticSanName,
+ String volumeGroupName,
+ String volumeName,
+ VolumeInner parameters);
+
+ /**
+ * Create a Volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param volumeName The name of the Volume.
+ * @param parameters Volume object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response for Volume request.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VolumeInner> beginCreate(
+ String resourceGroupName,
+ String elasticSanName,
+ String volumeGroupName,
+ String volumeName,
+ VolumeInner parameters,
+ Context context);
+
+ /**
+ * Create a Volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param volumeName The name of the Volume.
+ * @param parameters Volume object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response for Volume request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VolumeInner create(
+ String resourceGroupName,
+ String elasticSanName,
+ String volumeGroupName,
+ String volumeName,
+ VolumeInner parameters);
+
+ /**
+ * Create a Volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param volumeName The name of the Volume.
+ * @param parameters Volume object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response for Volume request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VolumeInner create(
+ String resourceGroupName,
+ String elasticSanName,
+ String volumeGroupName,
+ String volumeName,
+ VolumeInner parameters,
+ Context context);
+
+ /**
+ * Update an Volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param volumeName The name of the Volume.
+ * @param parameters Volume object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response for Volume request.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VolumeInner> beginUpdate(
+ String resourceGroupName,
+ String elasticSanName,
+ String volumeGroupName,
+ String volumeName,
+ VolumeUpdate parameters);
+
+ /**
+ * Update an Volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param volumeName The name of the Volume.
+ * @param parameters Volume object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response for Volume request.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VolumeInner> beginUpdate(
+ String resourceGroupName,
+ String elasticSanName,
+ String volumeGroupName,
+ String volumeName,
+ VolumeUpdate parameters,
+ Context context);
+
+ /**
+ * Update an Volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param volumeName The name of the Volume.
+ * @param parameters Volume object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response for Volume request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VolumeInner update(
+ String resourceGroupName,
+ String elasticSanName,
+ String volumeGroupName,
+ String volumeName,
+ VolumeUpdate parameters);
+
+ /**
+ * Update an Volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param volumeName The name of the Volume.
+ * @param parameters Volume object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response for Volume request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VolumeInner update(
+ String resourceGroupName,
+ String elasticSanName,
+ String volumeGroupName,
+ String volumeName,
+ VolumeUpdate parameters,
+ Context context);
+
+ /**
+ * Delete an Volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param volumeName The name of the Volume.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String elasticSanName, String volumeGroupName, String volumeName);
+
+ /**
+ * Delete an Volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param volumeName The name of the Volume.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String elasticSanName, String volumeGroupName, String volumeName, Context context);
+
+ /**
+ * Delete an Volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param volumeName The name of the Volume.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String elasticSanName, String volumeGroupName, String volumeName);
+
+ /**
+ * Delete an Volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param volumeName The name of the Volume.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(
+ String resourceGroupName, String elasticSanName, String volumeGroupName, String volumeName, Context context);
+
+ /**
+ * Get an Volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param volumeName The name of the Volume.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Volume.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VolumeInner get(String resourceGroupName, String elasticSanName, String volumeGroupName, String volumeName);
+
+ /**
+ * Get an Volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param volumeName The name of the Volume.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Volume along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String elasticSanName, String volumeGroupName, String volumeName, Context context);
+
+ /**
+ * List Volumes in a VolumeGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 Volumes as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByVolumeGroup(
+ String resourceGroupName, String elasticSanName, String volumeGroupName);
+
+ /**
+ * List Volumes in a VolumeGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param elasticSanName The name of the ElasticSan.
+ * @param volumeGroupName The name of the VolumeGroup.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 Volumes as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByVolumeGroup(
+ String resourceGroupName, String elasticSanName, String volumeGroupName, Context context);
+}
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/ElasticSanInner.java b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/ElasticSanInner.java
new file mode 100644
index 0000000000000..28ec0a121ce6c
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/ElasticSanInner.java
@@ -0,0 +1,219 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elasticsan.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.elasticsan.models.ProvisioningStates;
+import com.azure.resourcemanager.elasticsan.models.Sku;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** Response for ElasticSan request. */
+@Fluent
+public final class ElasticSanInner extends Resource {
+ /*
+ * Properties of ElasticSan.
+ */
+ @JsonProperty(value = "properties")
+ private ElasticSanProperties innerProperties;
+
+ /*
+ * Resource metadata required by ARM RPC
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the innerProperties property: Properties of ElasticSan.
+ *
+ * @return the innerProperties value.
+ */
+ private ElasticSanProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Resource metadata required by ARM RPC.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ElasticSanInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ElasticSanInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the sku property: resource sku.
+ *
+ * @return the sku value.
+ */
+ public Sku sku() {
+ return this.innerProperties() == null ? null : this.innerProperties().sku();
+ }
+
+ /**
+ * Set the sku property: resource sku.
+ *
+ * @param sku the sku value to set.
+ * @return the ElasticSanInner object itself.
+ */
+ public ElasticSanInner withSku(Sku sku) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ElasticSanProperties();
+ }
+ this.innerProperties().withSku(sku);
+ return this;
+ }
+
+ /**
+ * Get the availabilityZones property: Logical zone for Elastic San resource; example: ["1"].
+ *
+ * @return the availabilityZones value.
+ */
+ public List availabilityZones() {
+ return this.innerProperties() == null ? null : this.innerProperties().availabilityZones();
+ }
+
+ /**
+ * Set the availabilityZones property: Logical zone for Elastic San resource; example: ["1"].
+ *
+ * @param availabilityZones the availabilityZones value to set.
+ * @return the ElasticSanInner object itself.
+ */
+ public ElasticSanInner withAvailabilityZones(List availabilityZones) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ElasticSanProperties();
+ }
+ this.innerProperties().withAvailabilityZones(availabilityZones);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: State of the operation on the resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStates provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the baseSizeTiB property: Base size of the Elastic San appliance in TiB.
+ *
+ * @return the baseSizeTiB value.
+ */
+ public Long baseSizeTiB() {
+ return this.innerProperties() == null ? null : this.innerProperties().baseSizeTiB();
+ }
+
+ /**
+ * Set the baseSizeTiB property: Base size of the Elastic San appliance in TiB.
+ *
+ * @param baseSizeTiB the baseSizeTiB value to set.
+ * @return the ElasticSanInner object itself.
+ */
+ public ElasticSanInner withBaseSizeTiB(Long baseSizeTiB) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ElasticSanProperties();
+ }
+ this.innerProperties().withBaseSizeTiB(baseSizeTiB);
+ return this;
+ }
+
+ /**
+ * Get the extendedCapacitySizeTiB property: Extended size of the Elastic San appliance in TiB.
+ *
+ * @return the extendedCapacitySizeTiB value.
+ */
+ public Long extendedCapacitySizeTiB() {
+ return this.innerProperties() == null ? null : this.innerProperties().extendedCapacitySizeTiB();
+ }
+
+ /**
+ * Set the extendedCapacitySizeTiB property: Extended size of the Elastic San appliance in TiB.
+ *
+ * @param extendedCapacitySizeTiB the extendedCapacitySizeTiB value to set.
+ * @return the ElasticSanInner object itself.
+ */
+ public ElasticSanInner withExtendedCapacitySizeTiB(Long extendedCapacitySizeTiB) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ElasticSanProperties();
+ }
+ this.innerProperties().withExtendedCapacitySizeTiB(extendedCapacitySizeTiB);
+ return this;
+ }
+
+ /**
+ * Get the totalVolumeSizeGiB property: Total size of the provisioned Volumes in GiB.
+ *
+ * @return the totalVolumeSizeGiB value.
+ */
+ public Long totalVolumeSizeGiB() {
+ return this.innerProperties() == null ? null : this.innerProperties().totalVolumeSizeGiB();
+ }
+
+ /**
+ * Get the volumeGroupCount property: Total number of volume groups in this Elastic San appliance.
+ *
+ * @return the volumeGroupCount value.
+ */
+ public Long volumeGroupCount() {
+ return this.innerProperties() == null ? null : this.innerProperties().volumeGroupCount();
+ }
+
+ /**
+ * Get the totalIops property: Total Provisioned IOPS of the Elastic San appliance.
+ *
+ * @return the totalIops value.
+ */
+ public Long totalIops() {
+ return this.innerProperties() == null ? null : this.innerProperties().totalIops();
+ }
+
+ /**
+ * Get the totalMBps property: Total Provisioned MBps Elastic San appliance.
+ *
+ * @return the totalMBps value.
+ */
+ public Long totalMBps() {
+ return this.innerProperties() == null ? null : this.innerProperties().totalMBps();
+ }
+
+ /**
+ * Get the provisionedMBps property: Provisioned MBps Elastic San appliance.
+ *
+ * @return the provisionedMBps value.
+ */
+ public Long provisionedMBps() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisionedMBps();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/ElasticSanProperties.java b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/ElasticSanProperties.java
new file mode 100644
index 0000000000000..2a567aa0cb247
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/ElasticSanProperties.java
@@ -0,0 +1,229 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elasticsan.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.elasticsan.models.ProvisioningStates;
+import com.azure.resourcemanager.elasticsan.models.Sku;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Elastic San response properties. */
+@Fluent
+public final class ElasticSanProperties {
+ /*
+ * resource sku
+ */
+ @JsonProperty(value = "sku")
+ private Sku sku;
+
+ /*
+ * Logical zone for Elastic San resource; example: ["1"].
+ */
+ @JsonProperty(value = "availabilityZones", required = true)
+ private List availabilityZones;
+
+ /*
+ * State of the operation on the resource.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningStates provisioningState;
+
+ /*
+ * Base size of the Elastic San appliance in TiB.
+ */
+ @JsonProperty(value = "baseSizeTiB", required = true)
+ private long baseSizeTiB;
+
+ /*
+ * Extended size of the Elastic San appliance in TiB.
+ */
+ @JsonProperty(value = "extendedCapacitySizeTiB", required = true)
+ private long extendedCapacitySizeTiB;
+
+ /*
+ * Total size of the provisioned Volumes in GiB.
+ */
+ @JsonProperty(value = "totalVolumeSizeGiB", access = JsonProperty.Access.WRITE_ONLY)
+ private Long totalVolumeSizeGiB;
+
+ /*
+ * Total number of volume groups in this Elastic San appliance.
+ */
+ @JsonProperty(value = "volumeGroupCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Long volumeGroupCount;
+
+ /*
+ * Total Provisioned IOPS of the Elastic San appliance.
+ */
+ @JsonProperty(value = "totalIops", access = JsonProperty.Access.WRITE_ONLY)
+ private Long totalIops;
+
+ /*
+ * Total Provisioned MBps Elastic San appliance.
+ */
+ @JsonProperty(value = "totalMBps", access = JsonProperty.Access.WRITE_ONLY)
+ private Long totalMBps;
+
+ /*
+ * Provisioned MBps Elastic San appliance.
+ */
+ @JsonProperty(value = "provisionedMBps", access = JsonProperty.Access.WRITE_ONLY)
+ private Long provisionedMBps;
+
+ /**
+ * Get the sku property: resource sku.
+ *
+ * @return the sku value.
+ */
+ public Sku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: resource sku.
+ *
+ * @param sku the sku value to set.
+ * @return the ElasticSanProperties object itself.
+ */
+ public ElasticSanProperties withSku(Sku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the availabilityZones property: Logical zone for Elastic San resource; example: ["1"].
+ *
+ * @return the availabilityZones value.
+ */
+ public List availabilityZones() {
+ return this.availabilityZones;
+ }
+
+ /**
+ * Set the availabilityZones property: Logical zone for Elastic San resource; example: ["1"].
+ *
+ * @param availabilityZones the availabilityZones value to set.
+ * @return the ElasticSanProperties object itself.
+ */
+ public ElasticSanProperties withAvailabilityZones(List availabilityZones) {
+ this.availabilityZones = availabilityZones;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: State of the operation on the resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStates provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the baseSizeTiB property: Base size of the Elastic San appliance in TiB.
+ *
+ * @return the baseSizeTiB value.
+ */
+ public long baseSizeTiB() {
+ return this.baseSizeTiB;
+ }
+
+ /**
+ * Set the baseSizeTiB property: Base size of the Elastic San appliance in TiB.
+ *
+ * @param baseSizeTiB the baseSizeTiB value to set.
+ * @return the ElasticSanProperties object itself.
+ */
+ public ElasticSanProperties withBaseSizeTiB(long baseSizeTiB) {
+ this.baseSizeTiB = baseSizeTiB;
+ return this;
+ }
+
+ /**
+ * Get the extendedCapacitySizeTiB property: Extended size of the Elastic San appliance in TiB.
+ *
+ * @return the extendedCapacitySizeTiB value.
+ */
+ public long extendedCapacitySizeTiB() {
+ return this.extendedCapacitySizeTiB;
+ }
+
+ /**
+ * Set the extendedCapacitySizeTiB property: Extended size of the Elastic San appliance in TiB.
+ *
+ * @param extendedCapacitySizeTiB the extendedCapacitySizeTiB value to set.
+ * @return the ElasticSanProperties object itself.
+ */
+ public ElasticSanProperties withExtendedCapacitySizeTiB(long extendedCapacitySizeTiB) {
+ this.extendedCapacitySizeTiB = extendedCapacitySizeTiB;
+ return this;
+ }
+
+ /**
+ * Get the totalVolumeSizeGiB property: Total size of the provisioned Volumes in GiB.
+ *
+ * @return the totalVolumeSizeGiB value.
+ */
+ public Long totalVolumeSizeGiB() {
+ return this.totalVolumeSizeGiB;
+ }
+
+ /**
+ * Get the volumeGroupCount property: Total number of volume groups in this Elastic San appliance.
+ *
+ * @return the volumeGroupCount value.
+ */
+ public Long volumeGroupCount() {
+ return this.volumeGroupCount;
+ }
+
+ /**
+ * Get the totalIops property: Total Provisioned IOPS of the Elastic San appliance.
+ *
+ * @return the totalIops value.
+ */
+ public Long totalIops() {
+ return this.totalIops;
+ }
+
+ /**
+ * Get the totalMBps property: Total Provisioned MBps Elastic San appliance.
+ *
+ * @return the totalMBps value.
+ */
+ public Long totalMBps() {
+ return this.totalMBps;
+ }
+
+ /**
+ * Get the provisionedMBps property: Provisioned MBps Elastic San appliance.
+ *
+ * @return the provisionedMBps value.
+ */
+ public Long provisionedMBps() {
+ return this.provisionedMBps;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (sku() != null) {
+ sku().validate();
+ }
+ if (availabilityZones() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property availabilityZones in model ElasticSanProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ElasticSanProperties.class);
+}
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/ElasticSanRPOperationInner.java b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/ElasticSanRPOperationInner.java
new file mode 100644
index 0000000000000..7c19c72ab8012
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/ElasticSanRPOperationInner.java
@@ -0,0 +1,88 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elasticsan.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.elasticsan.models.ElasticSanOperationDisplay;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Description of a ElasticSan RP Operation. */
+@Fluent
+public final class ElasticSanRPOperationInner {
+ /*
+ * The name of the operation being performed on this particular object
+ */
+ @JsonProperty(value = "name", required = true)
+ private String name;
+
+ /*
+ * Indicates whether the operation applies to data-plane.
+ */
+ @JsonProperty(value = "isDataAction", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean isDataAction;
+
+ /*
+ * Additional metadata about RP operation.
+ */
+ @JsonProperty(value = "display", access = JsonProperty.Access.WRITE_ONLY)
+ private ElasticSanOperationDisplay display;
+
+ /**
+ * Get the name property: The name of the operation being performed on this particular object.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: The name of the operation being performed on this particular object.
+ *
+ * @param name the name value to set.
+ * @return the ElasticSanRPOperationInner object itself.
+ */
+ public ElasticSanRPOperationInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the isDataAction property: Indicates whether the operation applies to data-plane.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Get the display property: Additional metadata about RP operation.
+ *
+ * @return the display value.
+ */
+ public ElasticSanOperationDisplay display() {
+ return this.display;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (name() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property name in model ElasticSanRPOperationInner"));
+ }
+ if (display() != null) {
+ display().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ElasticSanRPOperationInner.class);
+}
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/ElasticSanUpdateProperties.java b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/ElasticSanUpdateProperties.java
new file mode 100644
index 0000000000000..1cc1ff38c3887
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/ElasticSanUpdateProperties.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.elasticsan.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Elastic San update properties. */
+@Fluent
+public final class ElasticSanUpdateProperties {
+ /*
+ * Base size of the Elastic San appliance in TiB.
+ */
+ @JsonProperty(value = "baseSizeTiB", required = true)
+ private long baseSizeTiB;
+
+ /*
+ * Extended size of the Elastic San appliance in TiB.
+ */
+ @JsonProperty(value = "extendedCapacitySizeTiB", required = true)
+ private long extendedCapacitySizeTiB;
+
+ /**
+ * Get the baseSizeTiB property: Base size of the Elastic San appliance in TiB.
+ *
+ * @return the baseSizeTiB value.
+ */
+ public long baseSizeTiB() {
+ return this.baseSizeTiB;
+ }
+
+ /**
+ * Set the baseSizeTiB property: Base size of the Elastic San appliance in TiB.
+ *
+ * @param baseSizeTiB the baseSizeTiB value to set.
+ * @return the ElasticSanUpdateProperties object itself.
+ */
+ public ElasticSanUpdateProperties withBaseSizeTiB(long baseSizeTiB) {
+ this.baseSizeTiB = baseSizeTiB;
+ return this;
+ }
+
+ /**
+ * Get the extendedCapacitySizeTiB property: Extended size of the Elastic San appliance in TiB.
+ *
+ * @return the extendedCapacitySizeTiB value.
+ */
+ public long extendedCapacitySizeTiB() {
+ return this.extendedCapacitySizeTiB;
+ }
+
+ /**
+ * Set the extendedCapacitySizeTiB property: Extended size of the Elastic San appliance in TiB.
+ *
+ * @param extendedCapacitySizeTiB the extendedCapacitySizeTiB value to set.
+ * @return the ElasticSanUpdateProperties object itself.
+ */
+ public ElasticSanUpdateProperties withExtendedCapacitySizeTiB(long extendedCapacitySizeTiB) {
+ this.extendedCapacitySizeTiB = extendedCapacitySizeTiB;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/ResourceTypeSkuInner.java b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/ResourceTypeSkuInner.java
new file mode 100644
index 0000000000000..fd6b8c4a44ae0
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/ResourceTypeSkuInner.java
@@ -0,0 +1,160 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elasticsan.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.elasticsan.models.SanTierInfo;
+import com.azure.resourcemanager.elasticsan.models.Sku;
+import com.azure.resourcemanager.elasticsan.models.SkuLocationInfo;
+import com.azure.resourcemanager.elasticsan.models.VolumeGroupTierInfo;
+import com.azure.resourcemanager.elasticsan.models.VolumeTierInfo;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** SkuInformation object. */
+@Fluent
+public final class ResourceTypeSkuInner {
+ /*
+ * The Sku tier
+ */
+ @JsonProperty(value = "sku")
+ private Sku sku;
+
+ /*
+ * Availability of the SKU for the location/zone
+ */
+ @JsonProperty(value = "locationInfo", access = JsonProperty.Access.WRITE_ONLY)
+ private List locationInfo;
+
+ /*
+ * Scalability targets for the San account for a given tier
+ */
+ @JsonProperty(value = "san")
+ private SanTierInfo san;
+
+ /*
+ * Volume Group targets for the San account for a given tier
+ */
+ @JsonProperty(value = "volumeGroup")
+ private VolumeGroupTierInfo volumeGroup;
+
+ /*
+ * Volume targets for the San account for a given tier
+ */
+ @JsonProperty(value = "volume")
+ private VolumeTierInfo volume;
+
+ /**
+ * Get the sku property: The Sku tier.
+ *
+ * @return the sku value.
+ */
+ public Sku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: The Sku tier.
+ *
+ * @param sku the sku value to set.
+ * @return the ResourceTypeSkuInner object itself.
+ */
+ public ResourceTypeSkuInner withSku(Sku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the locationInfo property: Availability of the SKU for the location/zone.
+ *
+ * @return the locationInfo value.
+ */
+ public List locationInfo() {
+ return this.locationInfo;
+ }
+
+ /**
+ * Get the san property: Scalability targets for the San account for a given tier.
+ *
+ * @return the san value.
+ */
+ public SanTierInfo san() {
+ return this.san;
+ }
+
+ /**
+ * Set the san property: Scalability targets for the San account for a given tier.
+ *
+ * @param san the san value to set.
+ * @return the ResourceTypeSkuInner object itself.
+ */
+ public ResourceTypeSkuInner withSan(SanTierInfo san) {
+ this.san = san;
+ return this;
+ }
+
+ /**
+ * Get the volumeGroup property: Volume Group targets for the San account for a given tier.
+ *
+ * @return the volumeGroup value.
+ */
+ public VolumeGroupTierInfo volumeGroup() {
+ return this.volumeGroup;
+ }
+
+ /**
+ * Set the volumeGroup property: Volume Group targets for the San account for a given tier.
+ *
+ * @param volumeGroup the volumeGroup value to set.
+ * @return the ResourceTypeSkuInner object itself.
+ */
+ public ResourceTypeSkuInner withVolumeGroup(VolumeGroupTierInfo volumeGroup) {
+ this.volumeGroup = volumeGroup;
+ return this;
+ }
+
+ /**
+ * Get the volume property: Volume targets for the San account for a given tier.
+ *
+ * @return the volume value.
+ */
+ public VolumeTierInfo volume() {
+ return this.volume;
+ }
+
+ /**
+ * Set the volume property: Volume targets for the San account for a given tier.
+ *
+ * @param volume the volume value to set.
+ * @return the ResourceTypeSkuInner object itself.
+ */
+ public ResourceTypeSkuInner withVolume(VolumeTierInfo volume) {
+ this.volume = volume;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (sku() != null) {
+ sku().validate();
+ }
+ if (locationInfo() != null) {
+ locationInfo().forEach(e -> e.validate());
+ }
+ if (san() != null) {
+ san().validate();
+ }
+ if (volumeGroup() != null) {
+ volumeGroup().validate();
+ }
+ if (volume() != null) {
+ volume().validate();
+ }
+ }
+}
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/VolumeGroupInner.java b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/VolumeGroupInner.java
new file mode 100644
index 0000000000000..c77fe68725e9b
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/VolumeGroupInner.java
@@ -0,0 +1,152 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elasticsan.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.elasticsan.models.EncryptionType;
+import com.azure.resourcemanager.elasticsan.models.NetworkRuleSet;
+import com.azure.resourcemanager.elasticsan.models.ProvisioningStates;
+import com.azure.resourcemanager.elasticsan.models.StorageTargetType;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Response for Volume Group request. */
+@Fluent
+public final class VolumeGroupInner extends Resource {
+ /*
+ * Properties of VolumeGroup.
+ */
+ @JsonProperty(value = "properties")
+ private VolumeGroupProperties innerProperties;
+
+ /*
+ * Resource metadata required by ARM RPC
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the innerProperties property: Properties of VolumeGroup.
+ *
+ * @return the innerProperties value.
+ */
+ private VolumeGroupProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Resource metadata required by ARM RPC.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public VolumeGroupInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public VolumeGroupInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: State of the operation on the resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStates provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the protocolType property: Type of storage target.
+ *
+ * @return the protocolType value.
+ */
+ public StorageTargetType protocolType() {
+ return this.innerProperties() == null ? null : this.innerProperties().protocolType();
+ }
+
+ /**
+ * Set the protocolType property: Type of storage target.
+ *
+ * @param protocolType the protocolType value to set.
+ * @return the VolumeGroupInner object itself.
+ */
+ public VolumeGroupInner withProtocolType(StorageTargetType protocolType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VolumeGroupProperties();
+ }
+ this.innerProperties().withProtocolType(protocolType);
+ return this;
+ }
+
+ /**
+ * Get the encryption property: Type of encryption.
+ *
+ * @return the encryption value.
+ */
+ public EncryptionType encryption() {
+ return this.innerProperties() == null ? null : this.innerProperties().encryption();
+ }
+
+ /**
+ * Set the encryption property: Type of encryption.
+ *
+ * @param encryption the encryption value to set.
+ * @return the VolumeGroupInner object itself.
+ */
+ public VolumeGroupInner withEncryption(EncryptionType encryption) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VolumeGroupProperties();
+ }
+ this.innerProperties().withEncryption(encryption);
+ return this;
+ }
+
+ /**
+ * Get the networkAcls property: A collection of rules governing the accessibility from specific network locations.
+ *
+ * @return the networkAcls value.
+ */
+ public NetworkRuleSet networkAcls() {
+ return this.innerProperties() == null ? null : this.innerProperties().networkAcls();
+ }
+
+ /**
+ * Set the networkAcls property: A collection of rules governing the accessibility from specific network locations.
+ *
+ * @param networkAcls the networkAcls value to set.
+ * @return the VolumeGroupInner object itself.
+ */
+ public VolumeGroupInner withNetworkAcls(NetworkRuleSet networkAcls) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VolumeGroupProperties();
+ }
+ this.innerProperties().withNetworkAcls(networkAcls);
+ 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/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/VolumeGroupProperties.java b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/VolumeGroupProperties.java
new file mode 100644
index 0000000000000..5a74085eefc2a
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/VolumeGroupProperties.java
@@ -0,0 +1,136 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elasticsan.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.elasticsan.models.EncryptionType;
+import com.azure.resourcemanager.elasticsan.models.NetworkRuleSet;
+import com.azure.resourcemanager.elasticsan.models.ProvisioningStates;
+import com.azure.resourcemanager.elasticsan.models.StorageTargetType;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** VolumeGroup response properties. */
+@Fluent
+public final class VolumeGroupProperties {
+ /*
+ * State of the operation on the resource.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningStates provisioningState;
+
+ /*
+ * Type of storage target
+ */
+ @JsonProperty(value = "protocolType", required = true)
+ private StorageTargetType protocolType;
+
+ /*
+ * Type of encryption
+ */
+ @JsonProperty(value = "encryption", required = true)
+ private EncryptionType encryption;
+
+ /*
+ * A collection of rules governing the accessibility from specific network
+ * locations.
+ */
+ @JsonProperty(value = "networkAcls")
+ private NetworkRuleSet networkAcls;
+
+ /**
+ * Get the provisioningState property: State of the operation on the resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStates provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the protocolType property: Type of storage target.
+ *
+ * @return the protocolType value.
+ */
+ public StorageTargetType protocolType() {
+ return this.protocolType;
+ }
+
+ /**
+ * Set the protocolType property: Type of storage target.
+ *
+ * @param protocolType the protocolType value to set.
+ * @return the VolumeGroupProperties object itself.
+ */
+ public VolumeGroupProperties withProtocolType(StorageTargetType protocolType) {
+ this.protocolType = protocolType;
+ return this;
+ }
+
+ /**
+ * Get the encryption property: Type of encryption.
+ *
+ * @return the encryption value.
+ */
+ public EncryptionType encryption() {
+ return this.encryption;
+ }
+
+ /**
+ * Set the encryption property: Type of encryption.
+ *
+ * @param encryption the encryption value to set.
+ * @return the VolumeGroupProperties object itself.
+ */
+ public VolumeGroupProperties withEncryption(EncryptionType encryption) {
+ this.encryption = encryption;
+ return this;
+ }
+
+ /**
+ * Get the networkAcls property: A collection of rules governing the accessibility from specific network locations.
+ *
+ * @return the networkAcls value.
+ */
+ public NetworkRuleSet networkAcls() {
+ return this.networkAcls;
+ }
+
+ /**
+ * Set the networkAcls property: A collection of rules governing the accessibility from specific network locations.
+ *
+ * @param networkAcls the networkAcls value to set.
+ * @return the VolumeGroupProperties object itself.
+ */
+ public VolumeGroupProperties withNetworkAcls(NetworkRuleSet networkAcls) {
+ this.networkAcls = networkAcls;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (protocolType() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property protocolType in model VolumeGroupProperties"));
+ }
+ if (encryption() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property encryption in model VolumeGroupProperties"));
+ }
+ if (networkAcls() != null) {
+ networkAcls().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(VolumeGroupProperties.class);
+}
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/VolumeGroupUpdateProperties.java b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/VolumeGroupUpdateProperties.java
new file mode 100644
index 0000000000000..5ea21c2f37087
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/VolumeGroupUpdateProperties.java
@@ -0,0 +1,120 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elasticsan.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.elasticsan.models.EncryptionType;
+import com.azure.resourcemanager.elasticsan.models.NetworkRuleSet;
+import com.azure.resourcemanager.elasticsan.models.StorageTargetType;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** VolumeGroup response properties. */
+@Fluent
+public final class VolumeGroupUpdateProperties {
+ /*
+ * Type of storage target
+ */
+ @JsonProperty(value = "protocolType", required = true)
+ private StorageTargetType protocolType;
+
+ /*
+ * Type of encryption
+ */
+ @JsonProperty(value = "encryption", required = true)
+ private EncryptionType encryption;
+
+ /*
+ * A collection of rules governing the accessibility from specific network
+ * locations.
+ */
+ @JsonProperty(value = "networkAcls")
+ private NetworkRuleSet networkAcls;
+
+ /**
+ * Get the protocolType property: Type of storage target.
+ *
+ * @return the protocolType value.
+ */
+ public StorageTargetType protocolType() {
+ return this.protocolType;
+ }
+
+ /**
+ * Set the protocolType property: Type of storage target.
+ *
+ * @param protocolType the protocolType value to set.
+ * @return the VolumeGroupUpdateProperties object itself.
+ */
+ public VolumeGroupUpdateProperties withProtocolType(StorageTargetType protocolType) {
+ this.protocolType = protocolType;
+ return this;
+ }
+
+ /**
+ * Get the encryption property: Type of encryption.
+ *
+ * @return the encryption value.
+ */
+ public EncryptionType encryption() {
+ return this.encryption;
+ }
+
+ /**
+ * Set the encryption property: Type of encryption.
+ *
+ * @param encryption the encryption value to set.
+ * @return the VolumeGroupUpdateProperties object itself.
+ */
+ public VolumeGroupUpdateProperties withEncryption(EncryptionType encryption) {
+ this.encryption = encryption;
+ return this;
+ }
+
+ /**
+ * Get the networkAcls property: A collection of rules governing the accessibility from specific network locations.
+ *
+ * @return the networkAcls value.
+ */
+ public NetworkRuleSet networkAcls() {
+ return this.networkAcls;
+ }
+
+ /**
+ * Set the networkAcls property: A collection of rules governing the accessibility from specific network locations.
+ *
+ * @param networkAcls the networkAcls value to set.
+ * @return the VolumeGroupUpdateProperties object itself.
+ */
+ public VolumeGroupUpdateProperties withNetworkAcls(NetworkRuleSet networkAcls) {
+ this.networkAcls = networkAcls;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (protocolType() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property protocolType in model VolumeGroupUpdateProperties"));
+ }
+ if (encryption() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property encryption in model VolumeGroupUpdateProperties"));
+ }
+ if (networkAcls() != null) {
+ networkAcls().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(VolumeGroupUpdateProperties.class);
+}
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/VolumeInner.java b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/VolumeInner.java
new file mode 100644
index 0000000000000..5fb3c0790c951
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/VolumeInner.java
@@ -0,0 +1,136 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elasticsan.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.elasticsan.models.IscsiTargetInfo;
+import com.azure.resourcemanager.elasticsan.models.SourceCreationData;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Response for Volume request. */
+@Fluent
+public final class VolumeInner extends Resource {
+ /*
+ * Properties of Volume.
+ */
+ @JsonProperty(value = "properties")
+ private VolumeProperties innerProperties;
+
+ /*
+ * Resource metadata required by ARM RPC
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the innerProperties property: Properties of Volume.
+ *
+ * @return the innerProperties value.
+ */
+ private VolumeProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Resource metadata required by ARM RPC.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public VolumeInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public VolumeInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the volumeId property: Unique Id of the volume in GUID format.
+ *
+ * @return the volumeId value.
+ */
+ public String volumeId() {
+ return this.innerProperties() == null ? null : this.innerProperties().volumeId();
+ }
+
+ /**
+ * Get the creationData property: State of the operation on the resource.
+ *
+ * @return the creationData value.
+ */
+ public SourceCreationData creationData() {
+ return this.innerProperties() == null ? null : this.innerProperties().creationData();
+ }
+
+ /**
+ * Set the creationData property: State of the operation on the resource.
+ *
+ * @param creationData the creationData value to set.
+ * @return the VolumeInner object itself.
+ */
+ public VolumeInner withCreationData(SourceCreationData creationData) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VolumeProperties();
+ }
+ this.innerProperties().withCreationData(creationData);
+ return this;
+ }
+
+ /**
+ * Get the sizeGiB property: Volume size.
+ *
+ * @return the sizeGiB value.
+ */
+ public Long sizeGiB() {
+ return this.innerProperties() == null ? null : this.innerProperties().sizeGiB();
+ }
+
+ /**
+ * Set the sizeGiB property: Volume size.
+ *
+ * @param sizeGiB the sizeGiB value to set.
+ * @return the VolumeInner object itself.
+ */
+ public VolumeInner withSizeGiB(Long sizeGiB) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VolumeProperties();
+ }
+ this.innerProperties().withSizeGiB(sizeGiB);
+ return this;
+ }
+
+ /**
+ * Get the storageTarget property: Storage target information.
+ *
+ * @return the storageTarget value.
+ */
+ public IscsiTargetInfo storageTarget() {
+ return this.innerProperties() == null ? null : this.innerProperties().storageTarget();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/VolumeProperties.java b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/VolumeProperties.java
new file mode 100644
index 0000000000000..6c88d76458b6f
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/VolumeProperties.java
@@ -0,0 +1,110 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elasticsan.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.elasticsan.models.IscsiTargetInfo;
+import com.azure.resourcemanager.elasticsan.models.SourceCreationData;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Volume response properties. */
+@Fluent
+public final class VolumeProperties {
+ /*
+ * Unique Id of the volume in GUID format
+ */
+ @JsonProperty(value = "volumeId", access = JsonProperty.Access.WRITE_ONLY)
+ private String volumeId;
+
+ /*
+ * State of the operation on the resource.
+ */
+ @JsonProperty(value = "creationData")
+ private SourceCreationData creationData;
+
+ /*
+ * Volume size.
+ */
+ @JsonProperty(value = "sizeGiB")
+ private Long sizeGiB;
+
+ /*
+ * Storage target information
+ */
+ @JsonProperty(value = "storageTarget", access = JsonProperty.Access.WRITE_ONLY)
+ private IscsiTargetInfo storageTarget;
+
+ /**
+ * Get the volumeId property: Unique Id of the volume in GUID format.
+ *
+ * @return the volumeId value.
+ */
+ public String volumeId() {
+ return this.volumeId;
+ }
+
+ /**
+ * Get the creationData property: State of the operation on the resource.
+ *
+ * @return the creationData value.
+ */
+ public SourceCreationData creationData() {
+ return this.creationData;
+ }
+
+ /**
+ * Set the creationData property: State of the operation on the resource.
+ *
+ * @param creationData the creationData value to set.
+ * @return the VolumeProperties object itself.
+ */
+ public VolumeProperties withCreationData(SourceCreationData creationData) {
+ this.creationData = creationData;
+ return this;
+ }
+
+ /**
+ * Get the sizeGiB property: Volume size.
+ *
+ * @return the sizeGiB value.
+ */
+ public Long sizeGiB() {
+ return this.sizeGiB;
+ }
+
+ /**
+ * Set the sizeGiB property: Volume size.
+ *
+ * @param sizeGiB the sizeGiB value to set.
+ * @return the VolumeProperties object itself.
+ */
+ public VolumeProperties withSizeGiB(Long sizeGiB) {
+ this.sizeGiB = sizeGiB;
+ return this;
+ }
+
+ /**
+ * Get the storageTarget property: Storage target information.
+ *
+ * @return the storageTarget value.
+ */
+ public IscsiTargetInfo storageTarget() {
+ return this.storageTarget;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (creationData() != null) {
+ creationData().validate();
+ }
+ if (storageTarget() != null) {
+ storageTarget().validate();
+ }
+ }
+}
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/VolumeUpdateProperties.java b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/VolumeUpdateProperties.java
new file mode 100644
index 0000000000000..6bea416abc848
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/VolumeUpdateProperties.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.elasticsan.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Volume response properties. */
+@Fluent
+public final class VolumeUpdateProperties {
+ /*
+ * Volume size.
+ */
+ @JsonProperty(value = "sizeGiB")
+ private Long sizeGiB;
+
+ /**
+ * Get the sizeGiB property: Volume size.
+ *
+ * @return the sizeGiB value.
+ */
+ public Long sizeGiB() {
+ return this.sizeGiB;
+ }
+
+ /**
+ * Set the sizeGiB property: Volume size.
+ *
+ * @param sizeGiB the sizeGiB value to set.
+ * @return the VolumeUpdateProperties object itself.
+ */
+ public VolumeUpdateProperties withSizeGiB(Long sizeGiB) {
+ this.sizeGiB = sizeGiB;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/package-info.java b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/package-info.java
new file mode 100644
index 0000000000000..fdc2bc9ba692d
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/models/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the inner data models for ElasticSanManagement. null. */
+package com.azure.resourcemanager.elasticsan.fluent.models;
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/package-info.java b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/package-info.java
new file mode 100644
index 0000000000000..1e24c33da5034
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/fluent/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the service clients for ElasticSanManagement. null. */
+package com.azure.resourcemanager.elasticsan.fluent;
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/implementation/ElasticSanImpl.java b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/implementation/ElasticSanImpl.java
new file mode 100644
index 0000000000000..6e5a9f741c0fd
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/implementation/ElasticSanImpl.java
@@ -0,0 +1,242 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elasticsan.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.elasticsan.fluent.models.ElasticSanInner;
+import com.azure.resourcemanager.elasticsan.models.ElasticSan;
+import com.azure.resourcemanager.elasticsan.models.ElasticSanUpdate;
+import com.azure.resourcemanager.elasticsan.models.ProvisioningStates;
+import com.azure.resourcemanager.elasticsan.models.Sku;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+public final class ElasticSanImpl implements ElasticSan, ElasticSan.Definition, ElasticSan.Update {
+ private ElasticSanInner innerObject;
+
+ private final com.azure.resourcemanager.elasticsan.ElasticSanManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public Sku sku() {
+ return this.innerModel().sku();
+ }
+
+ public List availabilityZones() {
+ List inner = this.innerModel().availabilityZones();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public ProvisioningStates provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public long baseSizeTiB() {
+ return this.innerModel().baseSizeTiB();
+ }
+
+ public long extendedCapacitySizeTiB() {
+ return this.innerModel().extendedCapacitySizeTiB();
+ }
+
+ public Long totalVolumeSizeGiB() {
+ return this.innerModel().totalVolumeSizeGiB();
+ }
+
+ public Long volumeGroupCount() {
+ return this.innerModel().volumeGroupCount();
+ }
+
+ public Long totalIops() {
+ return this.innerModel().totalIops();
+ }
+
+ public Long totalMBps() {
+ return this.innerModel().totalMBps();
+ }
+
+ public Long provisionedMBps() {
+ return this.innerModel().provisionedMBps();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public ElasticSanInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.elasticsan.ElasticSanManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String elasticSanName;
+
+ private ElasticSanUpdate updateParameters;
+
+ public ElasticSanImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public ElasticSan create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getElasticSans()
+ .create(resourceGroupName, elasticSanName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public ElasticSan create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getElasticSans()
+ .create(resourceGroupName, elasticSanName, this.innerModel(), context);
+ return this;
+ }
+
+ ElasticSanImpl(String name, com.azure.resourcemanager.elasticsan.ElasticSanManager serviceManager) {
+ this.innerObject = new ElasticSanInner();
+ this.serviceManager = serviceManager;
+ this.elasticSanName = name;
+ }
+
+ public ElasticSanImpl update() {
+ this.updateParameters = new ElasticSanUpdate();
+ return this;
+ }
+
+ public ElasticSan apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getElasticSans()
+ .update(resourceGroupName, elasticSanName, updateParameters, Context.NONE);
+ return this;
+ }
+
+ public ElasticSan apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getElasticSans()
+ .update(resourceGroupName, elasticSanName, updateParameters, context);
+ return this;
+ }
+
+ ElasticSanImpl(ElasticSanInner innerObject, com.azure.resourcemanager.elasticsan.ElasticSanManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.elasticSanName = Utils.getValueFromIdByName(innerObject.id(), "elasticSans");
+ }
+
+ public ElasticSan refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getElasticSans()
+ .getByResourceGroupWithResponse(resourceGroupName, elasticSanName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ElasticSan refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getElasticSans()
+ .getByResourceGroupWithResponse(resourceGroupName, elasticSanName, context)
+ .getValue();
+ return this;
+ }
+
+ public ElasticSanImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public ElasticSanImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public ElasticSanImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.innerModel().withTags(tags);
+ return this;
+ } else {
+ this.updateParameters.withTags(tags);
+ return this;
+ }
+ }
+
+ public ElasticSanImpl withSku(Sku sku) {
+ this.innerModel().withSku(sku);
+ return this;
+ }
+
+ public ElasticSanImpl withAvailabilityZones(List availabilityZones) {
+ this.innerModel().withAvailabilityZones(availabilityZones);
+ return this;
+ }
+
+ public ElasticSanImpl withBaseSizeTiB(long baseSizeTiB) {
+ this.innerModel().withBaseSizeTiB(baseSizeTiB);
+ return this;
+ }
+
+ public ElasticSanImpl withExtendedCapacitySizeTiB(long extendedCapacitySizeTiB) {
+ this.innerModel().withExtendedCapacitySizeTiB(extendedCapacitySizeTiB);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/implementation/ElasticSanManagementBuilder.java b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/implementation/ElasticSanManagementBuilder.java
new file mode 100644
index 0000000000000..f238ed3a1981b
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/implementation/ElasticSanManagementBuilder.java
@@ -0,0 +1,145 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elasticsan.implementation;
+
+import com.azure.core.annotation.ServiceClientBuilder;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerAdapter;
+import java.time.Duration;
+
+/** A builder for creating a new instance of the ElasticSanManagementImpl type. */
+@ServiceClientBuilder(serviceClients = {ElasticSanManagementImpl.class})
+public final class ElasticSanManagementBuilder {
+ /*
+ * The ID of the target subscription.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets The ID of the target subscription.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the ElasticSanManagementBuilder.
+ */
+ public ElasticSanManagementBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the ElasticSanManagementBuilder.
+ */
+ public ElasticSanManagementBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * The environment to connect to
+ */
+ private AzureEnvironment environment;
+
+ /**
+ * Sets The environment to connect to.
+ *
+ * @param environment the environment value.
+ * @return the ElasticSanManagementBuilder.
+ */
+ public ElasticSanManagementBuilder environment(AzureEnvironment environment) {
+ this.environment = environment;
+ return this;
+ }
+
+ /*
+ * The HTTP pipeline to send requests through
+ */
+ private HttpPipeline pipeline;
+
+ /**
+ * Sets The HTTP pipeline to send requests through.
+ *
+ * @param pipeline the pipeline value.
+ * @return the ElasticSanManagementBuilder.
+ */
+ public ElasticSanManagementBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
+ return this;
+ }
+
+ /*
+ * The default poll interval for long-running operation
+ */
+ private Duration defaultPollInterval;
+
+ /**
+ * Sets The default poll interval for long-running operation.
+ *
+ * @param defaultPollInterval the defaultPollInterval value.
+ * @return the ElasticSanManagementBuilder.
+ */
+ public ElasticSanManagementBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
+ return this;
+ }
+
+ /*
+ * The serializer to serialize an object into a string
+ */
+ private SerializerAdapter serializerAdapter;
+
+ /**
+ * Sets The serializer to serialize an object into a string.
+ *
+ * @param serializerAdapter the serializerAdapter value.
+ * @return the ElasticSanManagementBuilder.
+ */
+ public ElasticSanManagementBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of ElasticSanManagementImpl with the provided parameters.
+ *
+ * @return an instance of ElasticSanManagementImpl.
+ */
+ public ElasticSanManagementImpl buildClient() {
+ if (pipeline == null) {
+ this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ }
+ if (endpoint == null) {
+ this.endpoint = "https://management.azure.com";
+ }
+ if (environment == null) {
+ this.environment = AzureEnvironment.AZURE;
+ }
+ if (pipeline == null) {
+ this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ }
+ if (defaultPollInterval == null) {
+ this.defaultPollInterval = Duration.ofSeconds(30);
+ }
+ if (serializerAdapter == null) {
+ this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
+ }
+ ElasticSanManagementImpl client =
+ new ElasticSanManagementImpl(
+ pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ return client;
+ }
+}
diff --git a/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/implementation/ElasticSanManagementImpl.java b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/implementation/ElasticSanManagementImpl.java
new file mode 100644
index 0000000000000..c1523f5a41291
--- /dev/null
+++ b/sdk/elasticsan/azure-resourcemanager-elasticsan/src/main/java/com/azure/resourcemanager/elasticsan/implementation/ElasticSanManagementImpl.java
@@ -0,0 +1,349 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elasticsan.implementation;
+
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpHeaders;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpResponse;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.management.polling.PollerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.AsyncPollResponse;
+import com.azure.core.util.polling.LongRunningOperationStatus;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.serializer.SerializerAdapter;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.elasticsan.fluent.ElasticSanManagement;
+import com.azure.resourcemanager.elasticsan.fluent.ElasticSansClient;
+import com.azure.resourcemanager.elasticsan.fluent.OperationsClient;
+import com.azure.resourcemanager.elasticsan.fluent.SkusClient;
+import com.azure.resourcemanager.elasticsan.fluent.VolumeGroupsClient;
+import com.azure.resourcemanager.elasticsan.fluent.VolumesClient;
+import java.io.IOException;
+import java.lang.reflect.Type;
+import java.nio.ByteBuffer;
+import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
+import java.time.Duration;
+import java.util.Map;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** Initializes a new instance of the ElasticSanManagementImpl type. */
+@ServiceClient(builder = ElasticSanManagementBuilder.class)
+public final class ElasticSanManagementImpl implements ElasticSanManagement {
+ /** The ID of the target subscription. */
+ private final String subscriptionId;
+
+ /**
+ * Gets The ID of the target subscription.
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /** server parameter. */
+ private final String endpoint;
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /** Api Version. */
+ private final String apiVersion;
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /** The HTTP pipeline to send requests through. */
+ private final HttpPipeline httpPipeline;
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ public HttpPipeline getHttpPipeline() {
+ return this.httpPipeline;
+ }
+
+ /** The serializer to serialize an object into a string. */
+ private final SerializerAdapter serializerAdapter;
+
+ /**
+ * Gets The serializer to serialize an object into a string.
+ *
+ * @return the serializerAdapter value.
+ */
+ SerializerAdapter getSerializerAdapter() {
+ return this.serializerAdapter;
+ }
+
+ /** The default poll interval for long-running operation. */
+ private final Duration defaultPollInterval;
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ public Duration getDefaultPollInterval() {
+ return this.defaultPollInterval;
+ }
+
+ /** The OperationsClient object to access its operations. */
+ private final OperationsClient operations;
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ public OperationsClient getOperations() {
+ return this.operations;
+ }
+
+ /** The SkusClient object to access its operations. */
+ private final SkusClient skus;
+
+ /**
+ * Gets the SkusClient object to access its operations.
+ *
+ * @return the SkusClient object.
+ */
+ public SkusClient getSkus() {
+ return this.skus;
+ }
+
+ /** The ElasticSansClient object to access its operations. */
+ private final ElasticSansClient elasticSans;
+
+ /**
+ * Gets the ElasticSansClient object to access its operations.
+ *
+ * @return the ElasticSansClient object.
+ */
+ public ElasticSansClient getElasticSans() {
+ return this.elasticSans;
+ }
+
+ /** The VolumeGroupsClient object to access its operations. */
+ private final VolumeGroupsClient volumeGroups;
+
+ /**
+ * Gets the VolumeGroupsClient object to access its operations.
+ *
+ * @return the VolumeGroupsClient object.
+ */
+ public VolumeGroupsClient getVolumeGroups() {
+ return this.volumeGroups;
+ }
+
+ /** The VolumesClient object to access its operations. */
+ private final VolumesClient volumes;
+
+ /**
+ * Gets the VolumesClient object to access its operations.
+ *
+ * @return the VolumesClient object.
+ */
+ public VolumesClient getVolumes() {
+ return this.volumes;
+ }
+
+ /**
+ * Initializes an instance of ElasticSanManagement client.
+ *
+ * @param httpPipeline The HTTP pipeline to send requests through.
+ * @param serializerAdapter The serializer to serialize an object into a string.
+ * @param defaultPollInterval The default poll interval for long-running operation.
+ * @param environment The Azure environment.
+ * @param subscriptionId The ID of the target subscription.
+ * @param endpoint server parameter.
+ */
+ ElasticSanManagementImpl(
+ HttpPipeline httpPipeline,
+ SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval,
+ AzureEnvironment environment,
+ String subscriptionId,
+ String endpoint) {
+ this.httpPipeline = httpPipeline;
+ this.serializerAdapter = serializerAdapter;
+ this.defaultPollInterval = defaultPollInterval;
+ this.subscriptionId = subscriptionId;
+ this.endpoint = endpoint;
+ this.apiVersion = "2021-11-20-preview";
+ this.operations = new OperationsClientImpl(this);
+ this.skus = new SkusClientImpl(this);
+ this.elasticSans = new ElasticSansClientImpl(this);
+ this.volumeGroups = new VolumeGroupsClientImpl(this);
+ this.volumes = new VolumesClientImpl(this);
+ }
+
+ /**
+ * Gets default client context.
+ *
+ * @return the default client context.
+ */
+ public Context getContext() {
+ return Context.NONE;
+ }
+
+ /**
+ * Merges default client context with provided context.
+ *
+ * @param context the context to be merged with default client context.
+ * @return the merged context.
+ */
+ public Context mergeContext(Context context) {
+ for (Map.Entry