diff --git a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md
index 01732d83423b..bc9c142698fd 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md
+++ b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md
@@ -1,14 +1,357 @@
# Release History
-## 2.5.0-beta.1 (Unreleased)
+## 2.5.0-beta.1 (2026-07-27)
-### Features Added
+- Azure Resource Manager NetAppFiles client library for Java. This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package api-version 2026-05-15-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+#### `models.NetAppAccountPatch` was modified
-### Other Changes
+* `disableShowmount()` was removed
+* `name()` was removed
+* `multiAdStatus()` was removed
+* `id()` was removed
+* `type()` was removed
+* `location()` was removed
+* `provisioningState()` was removed
+* `withLocation(java.lang.String)` was removed
+
+### Features Added
+
+* `models.ElasticBackupProperties` was added
+
+* `models.ElasticBackupPolicyProperties` was added
+
+* `models.ElasticBackupPolicyUpdateProperties` was added
+
+* `models.ElasticSnapshot` was added
+
+* `models.ElasticCapacityPools` was added
+
+* `models.ElasticKeyVaultProperties` was added
+
+* `models.LdapConfiguration` was added
+
+* `models.ElasticVolumeUpdateProperties` was added
+
+* `models.ElasticBackup$Definition` was added
+
+* `models.ElasticSnapshotPolicyHourlySchedule` was added
+
+* `models.ElasticMountTargetProperties` was added
+
+* `models.EntraIdAkvConfigPatch` was added
+
+* `models.ElasticVolumeUpdate` was added
+
+* `models.ElasticVolume$UpdateStages` was added
+
+* `models.ElasticVolumeDataProtectionProperties` was added
+
+* `models.ElasticSnapshotPolicyProperties` was added
+
+* `models.ElasticVolumeSnapshotProperties` was added
+
+* `models.ElasticPoolEncryptionKeySource` was added
+
+* `models.ElasticServiceLevel` was added
+
+* `models.ElasticBackupPolicy` was added
+
+* `models.ElasticResourceAvailabilityStatus` was added
+
+* `models.ElasticCapacityPoolUpdateProperties` was added
+
+* `models.ElasticNfsv3Access` was added
+
+* `models.CheckElasticVolumeFilePathAvailabilityRequest` was added
+
+* `models.ElasticSmbEncryption` was added
+
+* `models.ElasticVolumeProperties` was added
+
+* `models.ElasticAccount$DefinitionStages` was added
+
+* `models.ElasticEncryption` was added
+
+* `models.ElasticBackupPolicy$Definition` was added
+
+* `models.ElasticVolumeRevert` was added
+
+* `models.ElasticBackupVaultUpdate` was added
+
+* `models.ActiveDirectoryConfig$Definition` was added
+
+* `models.SnapshotUsage` was added
+
+* `models.ElasticSnapshotPolicyUpdateProperties` was added
+
+* `models.ActiveDirectoryConfig` was added
+
+* `models.VolumeSize` was added
+
+* `models.ElasticBackupPolicies` was added
+
+* `models.ElasticExportPolicyRule` was added
+
+* `models.BindPasswordAkvConfigPatch` was added
+
+* `models.ActiveDirectoryConfig$DefinitionStages` was added
+
+* `models.ElasticAccountUpdate` was added
+
+* `models.ElasticCapacityPoolUpdate` was added
+
+* `models.ElasticSnapshot$UpdateStages` was added
+
+* `models.ActiveDirectoryConfigUpdateProperties` was added
+
+* `models.ElasticAccountProperties` was added
+
+* `models.ElasticSnapshotPolicyUpdate` was added
+
+* `models.ElasticSnapshots` was added
+
+* `models.ElasticKeyVaultStatus` was added
+
+* `models.ElasticEncryptionIdentity` was added
+
+* `models.ElasticSnapshotProperties` was added
+
+* `models.ActiveDirectoryConfigs` was added
+
+* `models.BindPasswordAkvConfig` was added
+
+* `models.ElasticBackup$UpdateStages` was added
+
+* `models.ActiveDirectoryConfig$Update` was added
+
+* `models.SecretPasswordIdentity` was added
+
+* `models.ElasticAccount$UpdateStages` was added
+
+* `models.LdapConfigurationPatch` was added
+
+* `models.ElasticBackupPolicy$Update` was added
+
+* `models.ElasticBackupVaults` was added
+
+* `models.ElasticCapacityPool` was added
+
+* `models.ElasticExportPolicy` was added
+
+* `models.ElasticSnapshotPolicyWeeklySchedule` was added
+
+* `models.ElasticVolume$Definition` was added
+
+* `models.ElasticRootAccess` was added
+
+* `models.ElasticBackupVault$Update` was added
+
+* `models.ElasticBackups` was added
+
+* `models.ElasticSnapshotPolicy` was added
+
+* `models.CheckElasticResourceAvailabilityStatus` was added
+
+* `models.SecretPassword` was added
+
+* `models.ElasticBackup$Update` was added
+
+* `models.ElasticCapacityPool$Update` was added
+
+* `models.ElasticSnapshotPolicyDailySchedule` was added
+
+* `models.ElasticCapacityPool$UpdateStages` was added
+
+* `models.EntraIdAkvConfig` was added
+
+* `models.BindAuthenticationLevel` was added
+
+* `models.ElasticAccount$Update` was added
+
+* `models.ElasticSnapshotPolicy$Definition` was added
+
+* `models.ElasticSnapshot$Definition` was added
+
+* `models.ElasticBackupVaultProperties` was added
+
+* `models.ElasticBackupPolicy$DefinitionStages` was added
+
+* `models.ElasticNfsv4Access` was added
+
+* `models.ActiveDirectoryConfigProperties` was added
+
+* `models.ElasticVolumeRestorationState` was added
+
+* `models.ElasticVolumePolicyEnforcement` was added
+
+* `models.SecretPasswordKeyVaultProperties` was added
+
+* `models.ElasticAccount$Definition` was added
+
+* `models.ElasticVolumes` was added
+
+* `models.EntraIdConfig` was added
+
+* `models.ElasticBackupVault$Definition` was added
+
+* `models.ElasticSnapshotPolicy$Update` was added
+
+* `models.ElasticBackup$DefinitionStages` was added
+
+* `models.ElasticSnapshotPolicies` was added
+
+* `models.ElasticAccount` was added
+
+* `models.EntraIdConfigPatch` was added
+
+* `models.CheckElasticResourceAvailabilityReason` was added
+
+* `models.ElasticCapacityPoolProperties` was added
+
+* `models.ActiveDirectoryConfigUpdate` was added
+
+* `models.ElasticVolume$DefinitionStages` was added
+
+* `models.ElasticAccountUpdateProperties` was added
+
+* `models.ElasticCapacityPool$DefinitionStages` was added
+
+* `models.ElasticSmbProperties` was added
+
+* `models.LargeVolumeType` was added
+
+* `models.PolicyStatus` was added
+
+* `models.ElasticVolumeBackupProperties` was added
+
+* `models.ElasticBackup` was added
+
+* `models.ChangeZoneRequest` was added
+
+* `models.ElasticBackupVault$DefinitionStages` was added
+
+* `models.ElasticSnapshot$Update` was added
+
+* `models.CheckElasticResourceAvailabilityResponse` was added
+
+* `models.ElasticBackupVault` was added
+
+* `models.ElasticUnixAccessRule` was added
+
+* `models.ActiveDirectoryConfig$UpdateStages` was added
+
+* `models.ElasticVolume` was added
+
+* `models.ElasticVolume$Update` was added
+
+* `models.ElasticBackupPolicyState` was added
+
+* `models.ElasticSnapshotPolicyMonthlySchedule` was added
+
+* `models.ElasticVolumeDataProtectionPatchProperties` was added
+
+* `models.ElasticAccounts` was added
+
+* `models.ElasticSmbPatchProperties` was added
+
+* `models.ElasticSnapshot$DefinitionStages` was added
+
+* `models.ElasticBackupVault$UpdateStages` was added
+
+* `models.ElasticBackupPolicyUpdate` was added
+
+* `models.SnapshotDirectoryVisibility` was added
+
+* `models.ElasticBackupPolicy$UpdateStages` was added
+
+* `models.ElasticEncryptionConfiguration` was added
+
+* `models.DayOfWeek` was added
+
+* `models.ElasticCapacityPool$Definition` was added
+
+* `models.ElasticSnapshotPolicy$DefinitionStages` was added
+
+* `models.ElasticBackupType` was added
+
+* `models.ElasticProtocolType` was added
+
+* `models.ElasticSnapshotPolicy$UpdateStages` was added
+
+#### `models.NetAppAccount$Definition` was modified
+
+* `withLdapConfiguration(models.LdapConfiguration)` was added
+* `withEntraIdConfig(models.EntraIdConfig)` was added
+
+#### `models.Volume$Definition` was modified
+
+* `withLanguage(models.VolumeLanguage)` was added
+* `withLdapServerType(models.LdapServerType)` was added
+* `withLargeVolumeType(models.LargeVolumeType)` was added
+
+#### `models.NetAppAccountPatch` was modified
+
+* `ldapConfiguration()` was added
+* `withEntraIdConfig(models.EntraIdConfigPatch)` was added
+* `entraIdConfig()` was added
+* `withLdapConfiguration(models.LdapConfigurationPatch)` was added
+
+#### `models.NetAppAccount$Update` was modified
+
+* `withLdapConfiguration(models.LdapConfigurationPatch)` was added
+* `withEntraIdConfig(models.EntraIdConfigPatch)` was added
+
+#### `models.VolumeGroupVolumeProperties` was modified
+
+* `largeVolumeType()` was added
+* `withLdapServerType(models.LdapServerType)` was added
+* `withLargeVolumeType(models.LargeVolumeType)` was added
+* `language()` was added
+* `withLanguage(models.VolumeLanguage)` was added
+* `ldapServerType()` was added
+
+#### `models.Volume` was modified
+
+* `ldapServerType()` was added
+* `largeVolumeType()` was added
+* `language()` was added
+
+#### `NetAppFilesManager` was modified
+
+* `elasticVolumes()` was added
+* `elasticCapacityPools()` was added
+* `elasticBackupPolicies()` was added
+* `elasticBackupVaults()` was added
+* `elasticAccounts()` was added
+* `elasticSnapshots()` was added
+* `elasticBackups()` was added
+* `elasticSnapshotPolicies()` was added
+* `activeDirectoryConfigs()` was added
+
+#### `models.Accounts` was modified
+
+* `refreshLdapBindPassword(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+* `refreshLdapBindPassword(java.lang.String,java.lang.String)` was added
+
+#### `models.NetAppAccount` was modified
+
+* `refreshLdapBindPassword()` was added
+* `refreshLdapBindPassword(com.azure.core.util.Context)` was added
+* `ldapConfiguration()` was added
+* `entraIdConfig()` was added
+
+#### `models.CredentialsAkvDetails` was modified
+
+* `withUserAssignedIdentity(java.lang.String)` was added
+* `userAssignedIdentity()` was added
+
+#### `models.CertificateAkvDetails` was modified
+
+* `withUserAssignedIdentity(java.lang.String)` was added
+* `userAssignedIdentity()` was added
## 2.4.0 (2026-07-21)
diff --git a/sdk/netapp/azure-resourcemanager-netapp/README.md b/sdk/netapp/azure-resourcemanager-netapp/README.md
index c9d32ff894cb..4d82cef72523 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/README.md
+++ b/sdk/netapp/azure-resourcemanager-netapp/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager NetAppFiles client library for Java.
-This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package api-version 2026-05-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package api-version 2026-05-15-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
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-netapp
- 2.4.0
+ 2.5.0-beta.1
```
[//]: # ({x-version-update-end})
diff --git a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md
index 581a3215b940..0a49aa885c25 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md
+++ b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md
@@ -10,10 +10,20 @@
- [GetChangeKeyVaultInformation](#accounts_getchangekeyvaultinformation)
- [List](#accounts_list)
- [ListByResourceGroup](#accounts_listbyresourcegroup)
+- [RefreshLdapBindPassword](#accounts_refreshldapbindpassword)
- [RenewCredentials](#accounts_renewcredentials)
- [TransitionToCmk](#accounts_transitiontocmk)
- [Update](#accounts_update)
+## ActiveDirectoryConfigs
+
+- [CreateOrUpdate](#activedirectoryconfigs_createorupdate)
+- [Delete](#activedirectoryconfigs_delete)
+- [GetByResourceGroup](#activedirectoryconfigs_getbyresourcegroup)
+- [List](#activedirectoryconfigs_list)
+- [ListByResourceGroup](#activedirectoryconfigs_listbyresourcegroup)
+- [Update](#activedirectoryconfigs_update)
+
## BackupPolicies
- [Create](#backuppolicies_create)
@@ -74,6 +84,74 @@
- [ResetSmbPassword](#caches_resetsmbpassword)
- [Update](#caches_update)
+## ElasticAccounts
+
+- [CreateOrUpdate](#elasticaccounts_createorupdate)
+- [Delete](#elasticaccounts_delete)
+- [GetByResourceGroup](#elasticaccounts_getbyresourcegroup)
+- [List](#elasticaccounts_list)
+- [ListByResourceGroup](#elasticaccounts_listbyresourcegroup)
+- [Update](#elasticaccounts_update)
+
+## ElasticBackupPolicies
+
+- [CreateOrUpdate](#elasticbackuppolicies_createorupdate)
+- [Delete](#elasticbackuppolicies_delete)
+- [Get](#elasticbackuppolicies_get)
+- [ListByElasticAccount](#elasticbackuppolicies_listbyelasticaccount)
+- [Update](#elasticbackuppolicies_update)
+
+## ElasticBackupVaults
+
+- [CreateOrUpdate](#elasticbackupvaults_createorupdate)
+- [Delete](#elasticbackupvaults_delete)
+- [Get](#elasticbackupvaults_get)
+- [ListByElasticAccount](#elasticbackupvaults_listbyelasticaccount)
+- [Update](#elasticbackupvaults_update)
+
+## ElasticBackups
+
+- [CreateOrUpdate](#elasticbackups_createorupdate)
+- [Delete](#elasticbackups_delete)
+- [Get](#elasticbackups_get)
+- [ListByVault](#elasticbackups_listbyvault)
+- [Update](#elasticbackups_update)
+
+## ElasticCapacityPools
+
+- [ChangeZone](#elasticcapacitypools_changezone)
+- [CheckVolumeFilePathAvailability](#elasticcapacitypools_checkvolumefilepathavailability)
+- [CreateOrUpdate](#elasticcapacitypools_createorupdate)
+- [Delete](#elasticcapacitypools_delete)
+- [Get](#elasticcapacitypools_get)
+- [ListByElasticAccount](#elasticcapacitypools_listbyelasticaccount)
+- [Update](#elasticcapacitypools_update)
+
+## ElasticSnapshotPolicies
+
+- [CreateOrUpdate](#elasticsnapshotpolicies_createorupdate)
+- [Delete](#elasticsnapshotpolicies_delete)
+- [Get](#elasticsnapshotpolicies_get)
+- [ListByElasticAccount](#elasticsnapshotpolicies_listbyelasticaccount)
+- [ListElasticVolumes](#elasticsnapshotpolicies_listelasticvolumes)
+- [Update](#elasticsnapshotpolicies_update)
+
+## ElasticSnapshots
+
+- [CreateOrUpdate](#elasticsnapshots_createorupdate)
+- [Delete](#elasticsnapshots_delete)
+- [Get](#elasticsnapshots_get)
+- [ListByElasticVolume](#elasticsnapshots_listbyelasticvolume)
+
+## ElasticVolumes
+
+- [CreateOrUpdate](#elasticvolumes_createorupdate)
+- [Delete](#elasticvolumes_delete)
+- [Get](#elasticvolumes_get)
+- [ListByElasticPool](#elasticvolumes_listbyelasticpool)
+- [Revert](#elasticvolumes_revert)
+- [Update](#elasticvolumes_update)
+
## NetAppResource
- [CheckFilePathAvailability](#netappresource_checkfilepathavailability)
@@ -204,7 +282,7 @@ import java.util.Arrays;
*/
public final class AccountsChangeKeyVaultSamples {
/*
- * x-ms-original-file: 2026-05-01/Accounts_ChangeKeyVault.json
+ * x-ms-original-file: 2026-05-15-preview/Accounts_ChangeKeyVault.json
*/
/**
* Sample code: Accounts_ChangeKeyVault.
@@ -229,6 +307,9 @@ public final class AccountsChangeKeyVaultSamples {
```java
import com.azure.resourcemanager.netapp.models.ActiveDirectory;
+import com.azure.resourcemanager.netapp.models.BindAuthenticationLevel;
+import com.azure.resourcemanager.netapp.models.BindPasswordAkvConfig;
+import com.azure.resourcemanager.netapp.models.LdapConfiguration;
import java.util.Arrays;
/**
@@ -236,7 +317,7 @@ import java.util.Arrays;
*/
public final class AccountsCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/Accounts_CreateOrUpdate.json
+ * x-ms-original-file: 2026-05-15-preview/Accounts_CreateOrUpdate.json
*/
/**
* Sample code: Accounts_CreateOrUpdate.
@@ -248,7 +329,7 @@ public final class AccountsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: 2026-05-01/Accounts_CreateOrUpdateAD.json
+ * x-ms-original-file: 2026-05-15-preview/Accounts_CreateOrUpdateAD.json
*/
/**
* Sample code: Accounts_CreateOrUpdateWithActiveDirectory.
@@ -273,6 +354,37 @@ public final class AccountsCreateOrUpdateSamples {
.withLdapOverTls(false)))
.create();
}
+
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Accounts_CreateOrUpdateLdapConfig.json
+ */
+ /**
+ * Sample code: Accounts_CreateOrUpdateLdapConfig.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void accountsCreateOrUpdateLdapConfig(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.accounts()
+ .define("account1")
+ .withRegion("eastus")
+ .withExistingResourceGroup("myRG")
+ .withLdapConfiguration(new LdapConfiguration().withDomain("example.com")
+ .withLdapServers(Arrays.asList("192.0.2.1", "192.0.2.2"))
+ .withLdapOverTLS(false)
+ .withServerCACertificate("")
+ .withCertificateCNHost("ldap.krypton.com")
+ .withLdapPort(636)
+ .withUserDN("OU=subdirectory,OU=directory,DC=example,DC=com")
+ .withGroupDN("OU=subdirectory,OU=directory,DC=example,DC=com")
+ .withNetGroupDN("OU=subdirectory,OU=directory,DC=example,DC=com")
+ .withBindAuthenticationLevel(BindAuthenticationLevel.SIMPLE)
+ .withBindDN("cn=user,dc=domain,dc=com")
+ .withBindPasswordAkvConfig(new BindPasswordAkvConfig().withAzureKeyVaultUri("fakeTokenPlaceholder")
+ .withSecretName("fakeTokenPlaceholder")
+ .withUserAssignedIdentity(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity")))
+ .create();
+ }
}
```
@@ -284,7 +396,7 @@ public final class AccountsCreateOrUpdateSamples {
*/
public final class AccountsDeleteSamples {
/*
- * x-ms-original-file: 2026-05-01/Accounts_Delete.json
+ * x-ms-original-file: 2026-05-15-preview/Accounts_Delete.json
*/
/**
* Sample code: Accounts_Delete.
@@ -305,7 +417,7 @@ public final class AccountsDeleteSamples {
*/
public final class AccountsGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2026-05-01/Accounts_Get.json
+ * x-ms-original-file: 2026-05-15-preview/Accounts_Get.json
*/
/**
* Sample code: Accounts_Get.
@@ -326,7 +438,7 @@ public final class AccountsGetByResourceGroupSamples {
*/
public final class AccountsGetChangeKeyVaultInformationSamples {
/*
- * x-ms-original-file: 2026-05-01/Accounts_GetChangeKeyVaultInformation.json
+ * x-ms-original-file: 2026-05-15-preview/Accounts_GetChangeKeyVaultInformation.json
*/
/**
* Sample code: Accounts_GetChangeKeyVaultInformation.
@@ -348,7 +460,7 @@ public final class AccountsGetChangeKeyVaultInformationSamples {
*/
public final class AccountsListSamples {
/*
- * x-ms-original-file: 2026-05-01/Accounts_ListBySubscription.json
+ * x-ms-original-file: 2026-05-15-preview/Accounts_ListBySubscription.json
*/
/**
* Sample code: Accounts_ListBySubscription.
@@ -369,7 +481,7 @@ public final class AccountsListSamples {
*/
public final class AccountsListByResourceGroupSamples {
/*
- * x-ms-original-file: 2026-05-01/Accounts_List.json
+ * x-ms-original-file: 2026-05-15-preview/Accounts_List.json
*/
/**
* Sample code: Accounts_List.
@@ -382,6 +494,28 @@ public final class AccountsListByResourceGroupSamples {
}
```
+### Accounts_RefreshLdapBindPassword
+
+```java
+/**
+ * Samples for Accounts RefreshLdapBindPassword.
+ */
+public final class AccountsRefreshLdapBindPasswordSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Accounts_RefreshLdapBindPassword.json
+ */
+ /**
+ * Sample code: NetAppAccounts_RefreshLdapBindPassword.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void
+ netAppAccountsRefreshLdapBindPassword(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.accounts().refreshLdapBindPassword("myRG", "account1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Accounts_RenewCredentials
```java
@@ -390,7 +524,7 @@ public final class AccountsListByResourceGroupSamples {
*/
public final class AccountsRenewCredentialsSamples {
/*
- * x-ms-original-file: 2026-05-01/Accounts_RenewCredentials.json
+ * x-ms-original-file: 2026-05-15-preview/Accounts_RenewCredentials.json
*/
/**
* Sample code: Accounts_RenewCredentials.
@@ -413,7 +547,7 @@ import com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest;
*/
public final class AccountsTransitionToCmkSamples {
/*
- * x-ms-original-file: 2026-05-01/Accounts_TransitionEncryptionKey.json
+ * x-ms-original-file: 2026-05-15-preview/Accounts_TransitionEncryptionKey.json
*/
/**
* Sample code: Accounts_MigrateEncryptionKey.
@@ -443,7 +577,7 @@ import java.util.Map;
*/
public final class AccountsUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/Accounts_Update.json
+ * x-ms-original-file: 2026-05-15-preview/Accounts_Update.json
*/
/**
* Sample code: Accounts_Update.
@@ -471,6 +605,191 @@ public final class AccountsUpdateSamples {
}
```
+### ActiveDirectoryConfigs_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigProperties;
+import com.azure.resourcemanager.netapp.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.netapp.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.netapp.models.SecretPassword;
+import com.azure.resourcemanager.netapp.models.SecretPasswordIdentity;
+import com.azure.resourcemanager.netapp.models.SecretPasswordKeyVaultProperties;
+import com.azure.resourcemanager.netapp.models.UserAssignedIdentity;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for ActiveDirectoryConfigs CreateOrUpdate.
+ */
+public final class ActiveDirectoryConfigsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/ActiveDirectoryConfigs_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: ActiveDirectoryConfigs_CreateOrUpdate.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void
+ activeDirectoryConfigsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.activeDirectoryConfigs()
+ .define("adconfig1")
+ .withRegion("eastus")
+ .withExistingResourceGroup("myRG")
+ .withTags(mapOf("ac-tag1", "activeDirectoryConfig1"))
+ .withProperties(new ActiveDirectoryConfigProperties().withUserName("admin1")
+ .withDns(Arrays.asList("10.10.10.4", "10.10.10.5"))
+ .withSmbServerName("smbServer")
+ .withOrganizationalUnit("OU=Computers,DC=corp,DC=contoso,DC=com")
+ .withSite("Default-First-Site-Name")
+ .withBackupOperators(Arrays.asList("backupOp1"))
+ .withAdministrators(Arrays.asList("admin1"))
+ .withSecurityOperators(Arrays.asList("secOp1"))
+ .withDomain("example.net")
+ .withSecretPassword(new SecretPassword()
+ .withKeyVaultProperties(
+ new SecretPasswordKeyVaultProperties().withKeyVaultUri("fakeTokenPlaceholder")
+ .withSecretName("fakeTokenPlaceholder"))
+ .withIdentity(new SecretPasswordIdentity().withUserAssignedIdentity(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userAssignedIdentity1"))))
+ .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED)
+ .withUserAssignedIdentities(mapOf(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userAssignedIdentity1",
+ new UserAssignedIdentity())))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @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;
+ }
+}
+```
+
+### ActiveDirectoryConfigs_Delete
+
+```java
+/**
+ * Samples for ActiveDirectoryConfigs Delete.
+ */
+public final class ActiveDirectoryConfigsDeleteSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/ActiveDirectoryConfigs_Delete.json
+ */
+ /**
+ * Sample code: ActiveDirectoryConfigs_Delete.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void activeDirectoryConfigsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.activeDirectoryConfigs().delete("myRG", "adconfig1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ActiveDirectoryConfigs_GetByResourceGroup
+
+```java
+/**
+ * Samples for ActiveDirectoryConfigs GetByResourceGroup.
+ */
+public final class ActiveDirectoryConfigsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/ActiveDirectoryConfigs_Get.json
+ */
+ /**
+ * Sample code: ActiveDirectoryConfigs_Get.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void activeDirectoryConfigsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.activeDirectoryConfigs()
+ .getByResourceGroupWithResponse("myRG", "adconfig1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ActiveDirectoryConfigs_List
+
+```java
+/**
+ * Samples for ActiveDirectoryConfigs List.
+ */
+public final class ActiveDirectoryConfigsListSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/ActiveDirectoryConfigs_ListBySubscription.json
+ */
+ /**
+ * Sample code: ActiveDirectoryConfigs_ListBySubscription.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void
+ activeDirectoryConfigsListBySubscription(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.activeDirectoryConfigs().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ActiveDirectoryConfigs_ListByResourceGroup
+
+```java
+/**
+ * Samples for ActiveDirectoryConfigs ListByResourceGroup.
+ */
+public final class ActiveDirectoryConfigsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/ActiveDirectoryConfigs_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: ActiveDirectoryConfigs_ListByResourceGroup.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void
+ activeDirectoryConfigsListByResourceGroup(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.activeDirectoryConfigs().listByResourceGroup("myRG", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ActiveDirectoryConfigs_Update
+
+```java
+import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfig;
+import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigUpdateProperties;
+
+/**
+ * Samples for ActiveDirectoryConfigs Update.
+ */
+public final class ActiveDirectoryConfigsUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/ActiveDirectoryConfigs_Update.json
+ */
+ /**
+ * Sample code: ActiveDirectoryConfigs_Update.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void activeDirectoryConfigsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ ActiveDirectoryConfig resource = manager.activeDirectoryConfigs()
+ .getByResourceGroupWithResponse("myRG", "adconfig1", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withProperties(new ActiveDirectoryConfigUpdateProperties().withSmbServerName("smbServer2"))
+ .apply();
+ }
+}
+```
+
### BackupPolicies_Create
```java
@@ -479,7 +798,7 @@ public final class AccountsUpdateSamples {
*/
public final class BackupPoliciesCreateSamples {
/*
- * x-ms-original-file: 2026-05-01/BackupPolicies_Create.json
+ * x-ms-original-file: 2026-05-15-preview/BackupPolicies_Create.json
*/
/**
* Sample code: BackupPolicies_Create.
@@ -508,7 +827,7 @@ public final class BackupPoliciesCreateSamples {
*/
public final class BackupPoliciesDeleteSamples {
/*
- * x-ms-original-file: 2026-05-01/BackupPolicies_Delete.json
+ * x-ms-original-file: 2026-05-15-preview/BackupPolicies_Delete.json
*/
/**
* Sample code: BackupPolicies_Delete.
@@ -530,7 +849,7 @@ public final class BackupPoliciesDeleteSamples {
*/
public final class BackupPoliciesGetSamples {
/*
- * x-ms-original-file: 2026-05-01/BackupPolicies_Get.json
+ * x-ms-original-file: 2026-05-15-preview/BackupPolicies_Get.json
*/
/**
* Sample code: BackupPolicies_Get.
@@ -552,7 +871,7 @@ public final class BackupPoliciesGetSamples {
*/
public final class BackupPoliciesListSamples {
/*
- * x-ms-original-file: 2026-05-01/BackupPolicies_List.json
+ * x-ms-original-file: 2026-05-15-preview/BackupPolicies_List.json
*/
/**
* Sample code: BackupPolicies_List.
@@ -575,7 +894,7 @@ import com.azure.resourcemanager.netapp.models.BackupPolicy;
*/
public final class BackupPoliciesUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/BackupPolicies_Update.json
+ * x-ms-original-file: 2026-05-15-preview/BackupPolicies_Update.json
*/
/**
* Sample code: BackupPolicies_Update.
@@ -604,7 +923,7 @@ public final class BackupPoliciesUpdateSamples {
*/
public final class BackupVaultsCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/BackupVaults_Create.json
+ * x-ms-original-file: 2026-05-15-preview/BackupVaults_Create.json
*/
/**
* Sample code: BackupVault_CreateOrUpdate.
@@ -629,7 +948,7 @@ public final class BackupVaultsCreateOrUpdateSamples {
*/
public final class BackupVaultsDeleteSamples {
/*
- * x-ms-original-file: 2026-05-01/BackupVaults_Delete.json
+ * x-ms-original-file: 2026-05-15-preview/BackupVaults_Delete.json
*/
/**
* Sample code: BackupVaults_Delete.
@@ -650,7 +969,7 @@ public final class BackupVaultsDeleteSamples {
*/
public final class BackupVaultsGetSamples {
/*
- * x-ms-original-file: 2026-05-01/BackupVaults_Get.json
+ * x-ms-original-file: 2026-05-15-preview/BackupVaults_Get.json
*/
/**
* Sample code: BackupVaults_Get.
@@ -671,7 +990,7 @@ public final class BackupVaultsGetSamples {
*/
public final class BackupVaultsListByNetAppAccountSamples {
/*
- * x-ms-original-file: 2026-05-01/BackupVaults_List.json
+ * x-ms-original-file: 2026-05-15-preview/BackupVaults_List.json
*/
/**
* Sample code: BackupVaults_List.
@@ -696,7 +1015,7 @@ import java.util.Map;
*/
public final class BackupVaultsUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/BackupVaults_Update.json
+ * x-ms-original-file: 2026-05-15-preview/BackupVaults_Update.json
*/
/**
* Sample code: BackupVaults_Update.
@@ -732,7 +1051,7 @@ public final class BackupVaultsUpdateSamples {
*/
public final class BackupsCreateSamples {
/*
- * x-ms-original-file: 2026-05-01/BackupsUnderBackupVault_Create.json
+ * x-ms-original-file: 2026-05-15-preview/BackupsUnderBackupVault_Create.json
*/
/**
* Sample code: BackupsUnderBackupVault_Create.
@@ -759,7 +1078,7 @@ public final class BackupsCreateSamples {
*/
public final class BackupsDeleteSamples {
/*
- * x-ms-original-file: 2026-05-01/BackupsUnderBackupVault_Delete.json
+ * x-ms-original-file: 2026-05-15-preview/BackupsUnderBackupVault_Delete.json
*/
/**
* Sample code: BackupsUnderBackupVault_Delete.
@@ -781,7 +1100,7 @@ public final class BackupsDeleteSamples {
*/
public final class BackupsGetSamples {
/*
- * x-ms-original-file: 2026-05-01/BackupsUnderBackupVault_Get.json
+ * x-ms-original-file: 2026-05-15-preview/BackupsUnderBackupVault_Get.json
*/
/**
* Sample code: BackupsUnderBackupVault_Get.
@@ -803,7 +1122,7 @@ public final class BackupsGetSamples {
*/
public final class BackupsGetLatestStatusSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_LatestBackupStatus.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_LatestBackupStatus.json
*/
/**
* Sample code: Volumes_BackupStatus.
@@ -825,7 +1144,7 @@ public final class BackupsGetLatestStatusSamples {
*/
public final class BackupsGetVolumeLatestRestoreStatusSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_LatestRestoreStatus.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_LatestRestoreStatus.json
*/
/**
* Sample code: Volumes_RestoreStatus.
@@ -848,14 +1167,14 @@ public final class BackupsGetVolumeLatestRestoreStatusSamples {
*/
public final class BackupsListByVaultSamples {
/*
- * x-ms-original-file: 2026-05-01/BackupsUnderBackupVault_List.json
+ * x-ms-original-file: 2026-05-15-preview/Backups_ListByVault.json
*/
/**
- * Sample code: Backups_List.
+ * Sample code: Backups_ListByVault.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void backupsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ public static void backupsListByVault(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.backups().listByVault("myRG", "account1", "backupVault1", null, com.azure.core.util.Context.NONE);
}
}
@@ -871,7 +1190,7 @@ import com.azure.resourcemanager.netapp.models.Backup;
*/
public final class BackupsUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/BackupsUnderBackupVault_Update.json
+ * x-ms-original-file: 2026-05-15-preview/BackupsUnderBackupVault_Update.json
*/
/**
* Sample code: BackupsUnderBackupVault_Update.
@@ -897,7 +1216,7 @@ import com.azure.resourcemanager.netapp.models.BackupsMigrationRequest;
*/
public final class BackupsUnderAccountMigrateBackupsSamples {
/*
- * x-ms-original-file: 2026-05-01/BackupsUnderAccount_Migrate.json
+ * x-ms-original-file: 2026-05-15-preview/BackupsUnderAccount_Migrate.json
*/
/**
* Sample code: BackupsUnderAccount_Migrate.
@@ -924,7 +1243,7 @@ import java.util.Arrays;
*/
public final class BackupsUnderBackupVaultRestoreFilesSamples {
/*
- * x-ms-original-file: 2026-05-01/BackupsUnderBackupVault_SingleFileRestore.json
+ * x-ms-original-file: 2026-05-15-preview/BackupsUnderBackupVault_SingleFileRestore.json
*/
/**
* Sample code: Backups_SingleFileRestore.
@@ -952,7 +1271,7 @@ import com.azure.resourcemanager.netapp.models.BackupsMigrationRequest;
*/
public final class BackupsUnderVolumeMigrateBackupsSamples {
/*
- * x-ms-original-file: 2026-05-01/BackupsUnderVolume_Migrate.json
+ * x-ms-original-file: 2026-05-15-preview/BackupsUnderVolume_Migrate.json
*/
/**
* Sample code: BackupsUnderVolume_Migrate.
@@ -985,7 +1304,7 @@ import com.azure.resourcemanager.netapp.models.OnCertificateConflictAction;
*/
public final class BucketsCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/Buckets_CreateOrUpdate.json
+ * x-ms-original-file: 2026-05-15-preview/Buckets_CreateOrUpdate.json
*/
/**
* Sample code: Buckets_CreateOrUpdate.
@@ -1006,7 +1325,7 @@ public final class BucketsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: 2026-05-01/Buckets_CreateOrUpdateWithAkv.json
+ * x-ms-original-file: 2026-05-15-preview/Buckets_CreateOrUpdateWithAkv.json
*/
/**
* Sample code: Buckets_CreateOrUpdateWithAkv.
@@ -1022,13 +1341,16 @@ public final class BucketsCreateOrUpdateSamples {
.withServer(new BucketServerProperties().withFqdn("fullyqualified.domainname.com")
.withOnCertificateConflictAction(OnCertificateConflictAction.FAIL))
.withPermissions(BucketPermissions.READ_ONLY)
- .withAkvDetails(new AzureKeyVaultDetails()
- .withCertificateAkvDetails(
- new CertificateAkvDetails().withCertificateKeyVaultUri("fakeTokenPlaceholder")
- .withCertificateName("my-certificate"))
- .withCredentialsAkvDetails(
- new CredentialsAkvDetails().withCredentialsKeyVaultUri("fakeTokenPlaceholder")
- .withSecretName("fakeTokenPlaceholder")))
+ .withAkvDetails(new AzureKeyVaultDetails().withCertificateAkvDetails(new CertificateAkvDetails()
+ .withCertificateKeyVaultUri("fakeTokenPlaceholder")
+ .withCertificateName("my-certificate")
+ .withUserAssignedIdentity(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"))
+ .withCredentialsAkvDetails(new CredentialsAkvDetails()
+ .withCredentialsKeyVaultUri("fakeTokenPlaceholder")
+ .withSecretName("fakeTokenPlaceholder")
+ .withUserAssignedIdentity(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1")))
.create();
}
}
@@ -1042,7 +1364,7 @@ public final class BucketsCreateOrUpdateSamples {
*/
public final class BucketsDeleteSamples {
/*
- * x-ms-original-file: 2026-05-01/Buckets_Delete.json
+ * x-ms-original-file: 2026-05-15-preview/Buckets_Delete.json
*/
/**
* Sample code: Buckets_Delete.
@@ -1065,7 +1387,7 @@ import com.azure.resourcemanager.netapp.models.BucketCredentialsExpiry;
*/
public final class BucketsGenerateAkvCredentialsSamples {
/*
- * x-ms-original-file: 2026-05-01/Buckets_GenerateAkvCredentials.json
+ * x-ms-original-file: 2026-05-15-preview/Buckets_GenerateAkvCredentials.json
*/
/**
* Sample code: Buckets_GenerateAkvCredentials.
@@ -1090,7 +1412,7 @@ import com.azure.resourcemanager.netapp.models.BucketCredentialsExpiry;
*/
public final class BucketsGenerateCredentialsSamples {
/*
- * x-ms-original-file: 2026-05-01/Buckets_GenerateCredentials.json
+ * x-ms-original-file: 2026-05-15-preview/Buckets_GenerateCredentials.json
*/
/**
* Sample code: Buckets_GenerateCredentials.
@@ -1113,7 +1435,7 @@ public final class BucketsGenerateCredentialsSamples {
*/
public final class BucketsGetSamples {
/*
- * x-ms-original-file: 2026-05-01/Buckets_Get.json
+ * x-ms-original-file: 2026-05-15-preview/Buckets_Get.json
*/
/**
* Sample code: Buckets_Get.
@@ -1135,7 +1457,7 @@ public final class BucketsGetSamples {
*/
public final class BucketsListSamples {
/*
- * x-ms-original-file: 2026-05-01/Buckets_List.json
+ * x-ms-original-file: 2026-05-15-preview/Buckets_List.json
*/
/**
* Sample code: Buckets_List.
@@ -1156,7 +1478,7 @@ public final class BucketsListSamples {
*/
public final class BucketsRefreshCertificateSamples {
/*
- * x-ms-original-file: 2026-05-01/Buckets_RefreshCertificate.json
+ * x-ms-original-file: 2026-05-15-preview/Buckets_RefreshCertificate.json
*/
/**
* Sample code: Buckets_RefreshCertificate.
@@ -1186,7 +1508,7 @@ import com.azure.resourcemanager.netapp.models.OnCertificateConflictAction;
*/
public final class BucketsUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/Buckets_Update.json
+ * x-ms-original-file: 2026-05-15-preview/Buckets_Update.json
*/
/**
* Sample code: Buckets_Update.
@@ -1206,7 +1528,7 @@ public final class BucketsUpdateSamples {
}
/*
- * x-ms-original-file: 2026-05-01/Buckets_UpdateWithAkv.json
+ * x-ms-original-file: 2026-05-15-preview/Buckets_UpdateWithAkv.json
*/
/**
* Sample code: Buckets_UpdateWithAkv.
@@ -1221,13 +1543,16 @@ public final class BucketsUpdateSamples {
.withServer(new BucketServerPatchProperties().withFqdn("fullyqualified.domainname.com")
.withOnCertificateConflictAction(OnCertificateConflictAction.FAIL))
.withPermissions(BucketPatchPermissions.READ_ONLY)
- .withAkvDetails(new AzureKeyVaultDetails()
- .withCertificateAkvDetails(
- new CertificateAkvDetails().withCertificateKeyVaultUri("fakeTokenPlaceholder")
- .withCertificateName("my-certificate"))
- .withCredentialsAkvDetails(
- new CredentialsAkvDetails().withCredentialsKeyVaultUri("fakeTokenPlaceholder")
- .withSecretName("fakeTokenPlaceholder")))
+ .withAkvDetails(new AzureKeyVaultDetails().withCertificateAkvDetails(new CertificateAkvDetails()
+ .withCertificateKeyVaultUri("fakeTokenPlaceholder")
+ .withCertificateName("my-certificate")
+ .withUserAssignedIdentity(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"))
+ .withCredentialsAkvDetails(new CredentialsAkvDetails()
+ .withCredentialsKeyVaultUri("fakeTokenPlaceholder")
+ .withSecretName("fakeTokenPlaceholder")
+ .withUserAssignedIdentity(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1")))
.apply();
}
}
@@ -1248,7 +1573,7 @@ import java.util.Arrays;
*/
public final class CachesCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/Caches_CreateOrUpdate.json
+ * x-ms-original-file: 2026-05-15-preview/Caches_CreateOrUpdate.json
*/
/**
* Sample code: Caches_CreateOrUpdate.
@@ -1286,7 +1611,7 @@ public final class CachesCreateOrUpdateSamples {
*/
public final class CachesDeleteSamples {
/*
- * x-ms-original-file: 2026-05-01/Caches_Delete.json
+ * x-ms-original-file: 2026-05-15-preview/Caches_Delete.json
*/
/**
* Sample code: Caches_Delete.
@@ -1307,7 +1632,7 @@ public final class CachesDeleteSamples {
*/
public final class CachesGetSamples {
/*
- * x-ms-original-file: 2026-05-01/Caches_Get.json
+ * x-ms-original-file: 2026-05-15-preview/Caches_Get.json
*/
/**
* Sample code: Caches_Get.
@@ -1328,7 +1653,7 @@ public final class CachesGetSamples {
*/
public final class CachesListSamples {
/*
- * x-ms-original-file: 2026-05-01/Caches_List.json
+ * x-ms-original-file: 2026-05-15-preview/Caches_List.json
*/
/**
* Sample code: Caches_List.
@@ -1349,7 +1674,7 @@ public final class CachesListSamples {
*/
public final class CachesListPeeringPassphrasesSamples {
/*
- * x-ms-original-file: 2026-05-01/Caches_ListPeeringPassphrases.json
+ * x-ms-original-file: 2026-05-15-preview/Caches_ListPeeringPassphrases.json
*/
/**
* Sample code: Caches_ListPeeringPassphrases.
@@ -1374,7 +1699,7 @@ import com.azure.resourcemanager.netapp.models.PoolChangeRequest;
*/
public final class CachesPoolChangeSamples {
/*
- * x-ms-original-file: 2026-05-01/Caches_PoolChange.json
+ * x-ms-original-file: 2026-05-15-preview/Caches_PoolChange.json
*/
/**
* Sample code: Caches_PoolChange.
@@ -1398,7 +1723,7 @@ public final class CachesPoolChangeSamples {
*/
public final class CachesResetSmbPasswordSamples {
/*
- * x-ms-original-file: 2026-05-01/Caches_ResetSmbPassword.json
+ * x-ms-original-file: 2026-05-15-preview/Caches_ResetSmbPassword.json
*/
/**
* Sample code: Caches_ResetSmbPassword.
@@ -1423,7 +1748,7 @@ import com.azure.resourcemanager.netapp.models.CacheUpdateProperties;
*/
public final class CachesUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/Caches_Update.json
+ * x-ms-original-file: 2026-05-15-preview/Caches_Update.json
*/
/**
* Sample code: Caches_Update.
@@ -1439,1053 +1764,2616 @@ public final class CachesUpdateSamples {
}
```
-### NetAppResource_CheckFilePathAvailability
+### ElasticAccounts_CreateOrUpdate
```java
-import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest;
+import com.azure.resourcemanager.netapp.models.ElasticAccountProperties;
+import java.util.HashMap;
+import java.util.Map;
/**
- * Samples for NetAppResource CheckFilePathAvailability.
+ * Samples for ElasticAccounts CreateOrUpdate.
*/
-public final class NetAppResourceCheckFilePathAvailabilitySamples {
+public final class ElasticAccountsCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/CheckFilePathAvailability.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticAccounts_CreateOrUpdate.json
*/
/**
- * Sample code: CheckFilePathAvailability.
+ * Sample code: ElasticAccounts_CreateOrUpdate.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void checkFilePathAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.netAppResources()
- .checkFilePathAvailabilityWithResponse("eastus", new FilePathAvailabilityRequest()
- .withName("my-exact-filepth")
- .withSubnetId(
- "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"),
- com.azure.core.util.Context.NONE);
+ public static void elasticAccountsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticAccounts()
+ .define("account1")
+ .withRegion("eastus")
+ .withExistingResourceGroup("myRG")
+ .withTags(mapOf("ac-tag1", "account1"))
+ .withProperties(new ElasticAccountProperties())
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @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;
}
}
```
-### NetAppResource_CheckNameAvailability
+### ElasticAccounts_Delete
```java
-import com.azure.resourcemanager.netapp.models.CheckNameResourceTypes;
-import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest;
-
/**
- * Samples for NetAppResource CheckNameAvailability.
+ * Samples for ElasticAccounts Delete.
*/
-public final class NetAppResourceCheckNameAvailabilitySamples {
+public final class ElasticAccountsDeleteSamples {
/*
- * x-ms-original-file: 2026-05-01/CheckNameAvailability.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticAccounts_Delete.json
*/
/**
- * Sample code: CheckNameAvailability.
+ * Sample code: ElasticAccounts_Delete.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void checkNameAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.netAppResources()
- .checkNameAvailabilityWithResponse("eastus",
- new ResourceNameAvailabilityRequest().withName("accName")
- .withType(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS)
- .withResourceGroup("myRG"),
- com.azure.core.util.Context.NONE);
+ public static void elasticAccountsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticAccounts().delete("myRG", "account1", com.azure.core.util.Context.NONE);
}
}
```
-### NetAppResource_CheckQuotaAvailability
+### ElasticAccounts_GetByResourceGroup
```java
-import com.azure.resourcemanager.netapp.models.CheckQuotaNameResourceTypes;
-import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest;
-
/**
- * Samples for NetAppResource CheckQuotaAvailability.
+ * Samples for ElasticAccounts GetByResourceGroup.
*/
-public final class NetAppResourceCheckQuotaAvailabilitySamples {
+public final class ElasticAccountsGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2026-05-01/CheckQuotaAvailability.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticAccounts_Get.json
*/
/**
- * Sample code: CheckQuotaAvailability.
+ * Sample code: ElasticAccounts_Get.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void checkQuotaAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.netAppResources()
- .checkQuotaAvailabilityWithResponse("eastus",
- new QuotaAvailabilityRequest().withName("resource1")
- .withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS)
- .withResourceGroup("myRG"),
- com.azure.core.util.Context.NONE);
+ public static void elasticAccountsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticAccounts().getByResourceGroupWithResponse("myRG", "account1", com.azure.core.util.Context.NONE);
}
}
```
-### NetAppResource_QueryNetworkSiblingSet
+### ElasticAccounts_List
```java
-import com.azure.resourcemanager.netapp.models.QueryNetworkSiblingSetRequest;
-
/**
- * Samples for NetAppResource QueryNetworkSiblingSet.
+ * Samples for ElasticAccounts List.
*/
-public final class NetAppResourceQueryNetworkSiblingSetSamples {
+public final class ElasticAccountsListSamples {
/*
- * x-ms-original-file: 2026-05-01/NetworkSiblingSet_Query.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticAccounts_ListBySubscription.json
*/
/**
- * Sample code: NetworkSiblingSet_Query.
+ * Sample code: ElasticAccounts_ListBySubscription.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void networkSiblingSetQuery(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.netAppResources()
- .queryNetworkSiblingSetWithResponse("eastus", new QueryNetworkSiblingSetRequest()
- .withNetworkSiblingSetId("9760acf5-4638-11e7-9bdb-020073ca3333")
- .withSubnetId(
- "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"),
- com.azure.core.util.Context.NONE);
+ public static void elasticAccountsListBySubscription(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticAccounts().list(com.azure.core.util.Context.NONE);
}
}
```
-### NetAppResource_QueryRegionInfo
+### ElasticAccounts_ListByResourceGroup
```java
/**
- * Samples for NetAppResource QueryRegionInfo.
+ * Samples for ElasticAccounts ListByResourceGroup.
*/
-public final class NetAppResourceQueryRegionInfoSamples {
+public final class ElasticAccountsListByResourceGroupSamples {
/*
- * x-ms-original-file: 2026-05-01/RegionInfo.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticAccounts_ListByResourceGroup.json
*/
/**
- * Sample code: RegionInfo_Query.
+ * Sample code: ElasticAccounts_ListByResourceGroup.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void regionInfoQuery(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.netAppResources().queryRegionInfoWithResponse("eastus", com.azure.core.util.Context.NONE);
+ public static void elasticAccountsListByResourceGroup(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticAccounts().listByResourceGroup("myRG", com.azure.core.util.Context.NONE);
}
}
```
-### NetAppResource_UpdateNetworkSiblingSet
+### ElasticAccounts_Update
```java
-import com.azure.resourcemanager.netapp.models.NetworkFeatures;
-import com.azure.resourcemanager.netapp.models.UpdateNetworkSiblingSetRequest;
+import com.azure.resourcemanager.netapp.models.ElasticAccount;
+import java.util.HashMap;
+import java.util.Map;
/**
- * Samples for NetAppResource UpdateNetworkSiblingSet.
+ * Samples for ElasticAccounts Update.
*/
-public final class NetAppResourceUpdateNetworkSiblingSetSamples {
+public final class ElasticAccountsUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/NetworkSiblingSet_Update.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticAccounts_Update.json
*/
/**
- * Sample code: NetworkFeatures_Update.
+ * Sample code: ElasticAccounts_Update.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void networkFeaturesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.netAppResources()
- .updateNetworkSiblingSet("eastus", new UpdateNetworkSiblingSetRequest()
- .withNetworkSiblingSetId("9760acf5-4638-11e7-9bdb-020073ca3333")
- .withSubnetId(
- "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet")
- .withNetworkSiblingSetStateId("12345_44420.8001578125")
- .withNetworkFeatures(NetworkFeatures.STANDARD), com.azure.core.util.Context.NONE);
+ public static void elasticAccountsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ ElasticAccount resource = manager.elasticAccounts()
+ .getByResourceGroupWithResponse("myRG", "account1", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("Tag1", "Value1")).apply();
}
-}
-```
-
-### NetAppResourceQuotaLimits_Get
-```java
-/**
- * Samples for NetAppResourceQuotaLimits Get.
- */
-public final class NetAppResourceQuotaLimitsGetSamples {
+ // Use "Map.of" if available
+ @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;
+ }
+}
+```
+
+### ElasticBackupPolicies_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyProperties;
+import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState;
+
+/**
+ * Samples for ElasticBackupPolicies CreateOrUpdate.
+ */
+public final class ElasticBackupPoliciesCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/NetAppResourceQuotaLimits_Get.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticBackupPolicies_CreateOrUpdate.json
*/
/**
- * Sample code: QuotaLimits.
+ * Sample code: ElasticBackupPolicies_CreateOrUpdate.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void quotaLimits(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.netAppResourceQuotaLimits()
- .getWithResponse("eastus", "totalCoolAccessVolumesPerSubscription", com.azure.core.util.Context.NONE);
+ public static void
+ elasticBackupPoliciesCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticBackupPolicies()
+ .define("backupPolicyName")
+ .withRegion("westus")
+ .withExistingElasticAccount("myRG", "account1")
+ .withProperties(new ElasticBackupPolicyProperties().withDailyBackupsToKeep(10)
+ .withWeeklyBackupsToKeep(10)
+ .withMonthlyBackupsToKeep(10)
+ .withPolicyState(ElasticBackupPolicyState.ENABLED))
+ .create();
}
}
```
-### NetAppResourceQuotaLimits_List
+### ElasticBackupPolicies_Delete
```java
/**
- * Samples for NetAppResourceQuotaLimits List.
+ * Samples for ElasticBackupPolicies Delete.
*/
-public final class NetAppResourceQuotaLimitsListSamples {
+public final class ElasticBackupPoliciesDeleteSamples {
/*
- * x-ms-original-file: 2026-05-01/NetAppResourceQuotaLimits_List.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticBackupPolicies_Delete.json
*/
/**
- * Sample code: QuotaLimits.
+ * Sample code: ElasticBackupPolicies_Delete.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void quotaLimits(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.netAppResourceQuotaLimits().list("eastus", com.azure.core.util.Context.NONE);
+ public static void elasticBackupPoliciesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticBackupPolicies()
+ .delete("resourceGroup", "accountName", "backupPolicyName", com.azure.core.util.Context.NONE);
}
}
```
-### NetAppResourceQuotaLimitsAccount_Get
+### ElasticBackupPolicies_Get
```java
/**
- * Samples for NetAppResourceQuotaLimitsAccount Get.
+ * Samples for ElasticBackupPolicies Get.
*/
-public final class NetAppResourceQuotaLimitsAccountGetSamples {
+public final class ElasticBackupPoliciesGetSamples {
/*
- * x-ms-original-file: 2026-05-01/NetAppResourceQuotaLimitsAccount_Get.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticBackupPolicies_Get.json
*/
/**
- * Sample code: QuotaLimits.
+ * Sample code: ElasticBackupPolicies_Get.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void quotaLimits(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.netAppResourceQuotaLimitsAccounts()
- .getWithResponse("myRG", "myAccount", "poolsPerAccount", com.azure.core.util.Context.NONE);
+ public static void elasticBackupPoliciesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticBackupPolicies()
+ .getWithResponse("myRG", "account1", "backupPolicyName", com.azure.core.util.Context.NONE);
}
}
```
-### NetAppResourceQuotaLimitsAccount_List
+### ElasticBackupPolicies_ListByElasticAccount
```java
/**
- * Samples for NetAppResourceQuotaLimitsAccount List.
+ * Samples for ElasticBackupPolicies ListByElasticAccount.
*/
-public final class NetAppResourceQuotaLimitsAccountListSamples {
+public final class ElasticBackupPoliciesListByElasticAccountSamples {
/*
- * x-ms-original-file: 2026-05-01/NetAppResourceQuotaLimitsAccount_List.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticBackupPolicies_List.json
*/
/**
- * Sample code: QuotaLimits.
+ * Sample code: ElasticBackupPolicies_ListByElasticAccount.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void quotaLimits(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.netAppResourceQuotaLimitsAccounts().list("myRG", "myAccount", com.azure.core.util.Context.NONE);
+ public static void
+ elasticBackupPoliciesListByElasticAccount(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticBackupPolicies().listByElasticAccount("myRG", "account1", com.azure.core.util.Context.NONE);
}
}
```
-### NetAppResourceRegionInfos_Get
+### ElasticBackupPolicies_Update
```java
+import com.azure.resourcemanager.netapp.models.ElasticBackupPolicy;
+import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState;
+import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyUpdateProperties;
+
/**
- * Samples for NetAppResourceRegionInfos Get.
+ * Samples for ElasticBackupPolicies Update.
*/
-public final class NetAppResourceRegionInfosGetSamples {
+public final class ElasticBackupPoliciesUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/RegionInfos_Get.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticBackupPolicies_Update.json
*/
/**
- * Sample code: RegionInfos_Get.
+ * Sample code: ElasticBackupPolicies_Update.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void regionInfosGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.netAppResourceRegionInfos().getWithResponse("eastus", com.azure.core.util.Context.NONE);
+ public static void elasticBackupPoliciesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ ElasticBackupPolicy resource = manager.elasticBackupPolicies()
+ .getWithResponse("myRG", "account1", "backupPolicyName", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withProperties(new ElasticBackupPolicyUpdateProperties().withDailyBackupsToKeep(5)
+ .withWeeklyBackupsToKeep(10)
+ .withMonthlyBackupsToKeep(10)
+ .withPolicyState(ElasticBackupPolicyState.ENABLED))
+ .apply();
}
}
```
-### NetAppResourceRegionInfos_List
+### ElasticBackupVaults_CreateOrUpdate
```java
/**
- * Samples for NetAppResourceRegionInfos List.
+ * Samples for ElasticBackupVaults CreateOrUpdate.
*/
-public final class NetAppResourceRegionInfosListSamples {
+public final class ElasticBackupVaultsCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/RegionInfos_List.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticBackupVaults_Create.json
*/
/**
- * Sample code: RegionInfos_List.
+ * Sample code: ElasticBackupVaults_CreateOrUpdate.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void regionInfosList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.netAppResourceRegionInfos().list("eastus", com.azure.core.util.Context.NONE);
+ public static void elasticBackupVaultsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticBackupVaults()
+ .define("backupVault1")
+ .withRegion("eastus")
+ .withExistingElasticAccount("myRG", "account1")
+ .create();
}
}
```
-### NetAppResourceUsages_Get
+### ElasticBackupVaults_Delete
```java
/**
- * Samples for NetAppResourceUsages Get.
+ * Samples for ElasticBackupVaults Delete.
*/
-public final class NetAppResourceUsagesGetSamples {
+public final class ElasticBackupVaultsDeleteSamples {
/*
- * x-ms-original-file: 2026-05-01/Usages_Get.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticBackupVaults_Delete.json
*/
/**
- * Sample code: Usages_Get.
+ * Sample code: ElasticBackupVaults_Delete.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void usagesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.netAppResourceUsages()
- .getWithResponse("eastus", "totalTibsPerSubscription", com.azure.core.util.Context.NONE);
+ public static void elasticBackupVaultsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticBackupVaults()
+ .delete("resourceGroup", "account1", "backupVault1", com.azure.core.util.Context.NONE);
}
}
```
-### NetAppResourceUsages_List
+### ElasticBackupVaults_Get
```java
/**
- * Samples for NetAppResourceUsages List.
+ * Samples for ElasticBackupVaults Get.
*/
-public final class NetAppResourceUsagesListSamples {
+public final class ElasticBackupVaultsGetSamples {
/*
- * x-ms-original-file: 2026-05-01/Usages_List.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticBackupVaults_Get.json
*/
/**
- * Sample code: Usages_List.
+ * Sample code: ElasticBackupVaults_Get.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void usagesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.netAppResourceUsages().list("eastus", com.azure.core.util.Context.NONE);
+ public static void elasticBackupVaultsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticBackupVaults()
+ .getWithResponse("myRG", "account1", "backupVault1", com.azure.core.util.Context.NONE);
}
}
```
-### Operations_List
+### ElasticBackupVaults_ListByElasticAccount
```java
/**
- * Samples for Operations List.
+ * Samples for ElasticBackupVaults ListByElasticAccount.
*/
-public final class OperationsListSamples {
+public final class ElasticBackupVaultsListByElasticAccountSamples {
/*
- * x-ms-original-file: 2026-05-01/OperationList.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticBackupVaults_ListByElasticAccount.json
*/
/**
- * Sample code: OperationList.
+ * Sample code: ElasticBackupVaults_ListByElasticAccount.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void operationList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.operations().list(com.azure.core.util.Context.NONE);
+ public static void
+ elasticBackupVaultsListByElasticAccount(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticBackupVaults().listByElasticAccount("myRG", "account1", com.azure.core.util.Context.NONE);
}
}
```
-### Pools_CreateOrUpdate
+### ElasticBackupVaults_Update
```java
-import com.azure.resourcemanager.netapp.models.QosType;
-import com.azure.resourcemanager.netapp.models.ServiceLevel;
+import com.azure.resourcemanager.netapp.models.ElasticBackupVault;
+import java.util.HashMap;
+import java.util.Map;
/**
- * Samples for Pools CreateOrUpdate.
+ * Samples for ElasticBackupVaults Update.
*/
-public final class PoolsCreateOrUpdateSamples {
+public final class ElasticBackupVaultsUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/Pools_CreateOrUpdate.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticBackupVaults_Update.json
*/
/**
- * Sample code: Pools_CreateOrUpdate.
+ * Sample code: ElasticBackupVaults_Update.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void poolsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.pools()
- .define("pool1")
- .withRegion("eastus")
- .withExistingNetAppAccount("myRG", "account1")
- .withSize(4398046511104L)
- .withServiceLevel(ServiceLevel.PREMIUM)
- .withQosType(QosType.AUTO)
- .create();
+ public static void elasticBackupVaultsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ ElasticBackupVault resource = manager.elasticBackupVaults()
+ .getWithResponse("myRG", "account1", "backupVault1", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("Tag1", "Value1")).apply();
+ }
+
+ // Use "Map.of" if available
+ @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;
}
+}
+```
+### ElasticBackups_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.netapp.models.ElasticBackupProperties;
+import com.azure.resourcemanager.netapp.models.SnapshotUsage;
+
+/**
+ * Samples for ElasticBackups CreateOrUpdate.
+ */
+public final class ElasticBackupsCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/Pools_CreateOrUpdate_CustomThroughput.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticBackups_CreateOrUpdate.json
*/
/**
- * Sample code: Pools_CreateOrUpdate_CustomThroughput.
+ * Sample code: ElasticBackups_CreateOrUpdate.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void
- poolsCreateOrUpdateCustomThroughput(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.pools()
- .define("customPool1")
- .withRegion("eastus")
- .withExistingNetAppAccount("myRG", "account1")
- .withSize(4398046511104L)
- .withServiceLevel(ServiceLevel.FLEXIBLE)
- .withCustomThroughputMibps(128)
- .withQosType(QosType.MANUAL)
+ public static void elasticBackupsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticBackups()
+ .define("backup1")
+ .withExistingElasticBackupVault("myRG", "account1", "backupVault1")
+ .withProperties(new ElasticBackupProperties().withLabel("myLabel")
+ .withElasticVolumeResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/elasticAccounts/account1/elasticCapacityPools/pool1/elasticVolumes/volume1")
+ .withSnapshotUsage(SnapshotUsage.USE_EXISTING_SNAPSHOT)
+ .withElasticSnapshotResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/elasticAccounts/account1/elasticCapacityPools/pool1/elasticVolumes/volume1/elasticSnapshots/snap1"))
.create();
}
}
```
-### Pools_Delete
+### ElasticBackups_Delete
```java
/**
- * Samples for Pools Delete.
+ * Samples for ElasticBackups Delete.
*/
-public final class PoolsDeleteSamples {
+public final class ElasticBackupsDeleteSamples {
/*
- * x-ms-original-file: 2026-05-01/Pools_Delete.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticBackups_Delete.json
*/
/**
- * Sample code: Pools_Delete.
+ * Sample code: ElasticBackups_Delete.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void poolsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.pools().delete("myRG", "account1", "pool1", com.azure.core.util.Context.NONE);
+ public static void elasticBackupsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticBackups()
+ .delete("resourceGroup", "account1", "backupVault1", "backup1", com.azure.core.util.Context.NONE);
}
}
```
-### Pools_Get
+### ElasticBackups_Get
```java
/**
- * Samples for Pools Get.
+ * Samples for ElasticBackups Get.
*/
-public final class PoolsGetSamples {
+public final class ElasticBackupsGetSamples {
/*
- * x-ms-original-file: 2026-05-01/Pools_Get_CustomThroughput.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticBackups_Get.json
*/
/**
- * Sample code: Pools_Get_CustomThroughput.
+ * Sample code: ElasticBackups_Get.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void poolsGetCustomThroughput(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.pools().getWithResponse("myRG", "account1", "customPool1", com.azure.core.util.Context.NONE);
+ public static void elasticBackupsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticBackups()
+ .getWithResponse("myRG", "account1", "backupVault1", "backup1", com.azure.core.util.Context.NONE);
}
+}
+```
+
+### ElasticBackups_ListByVault
+```java
+/**
+ * Samples for ElasticBackups ListByVault.
+ */
+public final class ElasticBackupsListByVaultSamples {
/*
- * x-ms-original-file: 2026-05-01/Pools_Get.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticBackups_ListByVault.json
*/
/**
- * Sample code: Pools_Get.
+ * Sample code: ElasticBackups_ListByVault.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void poolsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.pools().getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE);
+ public static void elasticBackupsListByVault(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticBackups().listByVault("myRG", "account1", "backupVault1", com.azure.core.util.Context.NONE);
}
}
```
-### Pools_List
+### ElasticBackups_Update
```java
+import com.azure.resourcemanager.netapp.models.ElasticBackup;
+
/**
- * Samples for Pools List.
+ * Samples for ElasticBackups Update.
*/
-public final class PoolsListSamples {
+public final class ElasticBackupsUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/Pools_List.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticBackups_Update.json
*/
/**
- * Sample code: Pools_List.
+ * Sample code: ElasticBackups_Update.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void poolsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.pools().list("myRG", "account1", com.azure.core.util.Context.NONE);
+ public static void elasticBackupsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ ElasticBackup resource = manager.elasticBackups()
+ .getWithResponse("myRG", "account1", "backupVault1", "backup1", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().apply();
}
}
```
-### Pools_Update
+### ElasticCapacityPools_ChangeZone
```java
-import com.azure.resourcemanager.netapp.models.CapacityPool;
+import com.azure.resourcemanager.netapp.models.ChangeZoneRequest;
/**
- * Samples for Pools Update.
+ * Samples for ElasticCapacityPools ChangeZone.
*/
-public final class PoolsUpdateSamples {
+public final class ElasticCapacityPoolsChangeZoneSamples {
/*
- * x-ms-original-file: 2026-05-01/Pools_Update.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticCapacityPools_ChangeZone.json
*/
/**
- * Sample code: Pools_Update.
+ * Sample code: ElasticCapacityPools_ChangeZone.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void poolsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- CapacityPool resource
- = manager.pools().getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE).getValue();
- resource.update().apply();
+ public static void elasticCapacityPoolsChangeZone(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticCapacityPools()
+ .changeZone("myRG", "account1", "pool1", new ChangeZoneRequest().withNewZone("3"),
+ com.azure.core.util.Context.NONE);
}
+}
+```
+
+### ElasticCapacityPools_CheckVolumeFilePathAvailability
+
+```java
+import com.azure.resourcemanager.netapp.models.CheckElasticVolumeFilePathAvailabilityRequest;
+/**
+ * Samples for ElasticCapacityPools CheckVolumeFilePathAvailability.
+ */
+public final class ElasticCapacityPoolsCheckVolumeFilePathAvailabilitySamples {
/*
- * x-ms-original-file: 2026-05-01/Pools_Update_CustomThroughput.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticCapacityPools_CheckVolumeFilePathAvailability.json
*/
/**
- * Sample code: Pools_Update_CustomThroughput.
+ * Sample code: ElasticCapacityPools_CheckVolumeFilePathAvailability.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void poolsUpdateCustomThroughput(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- CapacityPool resource = manager.pools()
- .getWithResponse("myRG", "account1", "customPool1", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update().apply();
+ public static void elasticCapacityPoolsCheckVolumeFilePathAvailability(
+ com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticCapacityPools()
+ .checkVolumeFilePathAvailabilityWithResponse("myRG", "account1", "pool1",
+ new CheckElasticVolumeFilePathAvailabilityRequest().withFilePath("my-exact-filepath"),
+ com.azure.core.util.Context.NONE);
}
}
```
-### RansomwareReports_ClearSuspects
+### ElasticCapacityPools_CreateOrUpdate
```java
-import com.azure.resourcemanager.netapp.models.RansomwareSuspectResolution;
-import com.azure.resourcemanager.netapp.models.RansomwareSuspectsClearRequest;
+import com.azure.resourcemanager.netapp.models.ElasticCapacityPoolProperties;
+import com.azure.resourcemanager.netapp.models.ElasticEncryptionConfiguration;
+import com.azure.resourcemanager.netapp.models.ElasticPoolEncryptionKeySource;
+import com.azure.resourcemanager.netapp.models.ElasticServiceLevel;
import java.util.Arrays;
/**
- * Samples for RansomwareReports ClearSuspects.
+ * Samples for ElasticCapacityPools CreateOrUpdate.
*/
-public final class RansomwareReportsClearSuspectsSamples {
+public final class ElasticCapacityPoolsCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/RansomwareReports_ClearSuspects.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticCapacityPools_CreateOrUpdateCMK.json
*/
/**
- * Sample code: RansomwareReports_ClearSuspects.
+ * Sample code: ElasticCapacityPools_CreateOrUpdateCMK.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void ransomwareReportsClearSuspects(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.ransomwareReports()
- .clearSuspects("myRG", "account1", "pool1", "volume1", "ransomwareReport1",
- new RansomwareSuspectsClearRequest().withResolution(RansomwareSuspectResolution.POTENTIAL_THREAT)
- .withExtensions(Arrays.asList(".threat")),
- com.azure.core.util.Context.NONE);
+ public static void
+ elasticCapacityPoolsCreateOrUpdateCMK(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticCapacityPools()
+ .define("pool1")
+ .withRegion("eastus")
+ .withExistingElasticAccount("myRG", "account1")
+ .withProperties(new ElasticCapacityPoolProperties().withSize(4398046511104L)
+ .withServiceLevel(ElasticServiceLevel.ZONE_REDUNDANT)
+ .withEncryption(new ElasticEncryptionConfiguration()
+ .withElasticPoolEncryptionKeySource(ElasticPoolEncryptionKeySource.NET_APP)
+ .withKeyVaultPrivateEndpointResourceId("fakeTokenPlaceholder"))
+ .withSubnetResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withActiveDirectoryConfigResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/activeDirectoryConfigs/activeDirectoryConfig1"))
+ .withZones(Arrays.asList("1", "2", "3"))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: 2026-05-15-preview/ElasticCapacityPools_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: ElasticCapacityPools_CreateOrUpdate.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void elasticCapacityPoolsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticCapacityPools()
+ .define("pool1")
+ .withRegion("eastus")
+ .withExistingElasticAccount("myRG", "account1")
+ .withProperties(new ElasticCapacityPoolProperties().withSize(4398046511104L)
+ .withServiceLevel(ElasticServiceLevel.ZONE_REDUNDANT)
+ .withSubnetResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withActiveDirectoryConfigResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/activeDirectoryConfigs/activeDirectoryConfig1"))
+ .withZones(Arrays.asList("1", "2", "3"))
+ .create();
}
}
```
-### RansomwareReports_Get
+### ElasticCapacityPools_Delete
```java
/**
- * Samples for RansomwareReports Get.
+ * Samples for ElasticCapacityPools Delete.
*/
-public final class RansomwareReportsGetSamples {
+public final class ElasticCapacityPoolsDeleteSamples {
/*
- * x-ms-original-file: 2026-05-01/RansomwareReports_Get.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticCapacityPools_Delete.json
*/
/**
- * Sample code: RansomwareReports_Get.
+ * Sample code: ElasticCapacityPools_Delete.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void ransomwareReportsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.ransomwareReports()
- .getWithResponse("myRG", "account1", "pool1", "volume1", "ransomwareReport1",
- com.azure.core.util.Context.NONE);
+ public static void elasticCapacityPoolsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticCapacityPools().delete("myRG", "account1", "pool1", com.azure.core.util.Context.NONE);
}
}
```
-### RansomwareReports_List
+### ElasticCapacityPools_Get
```java
/**
- * Samples for RansomwareReports List.
+ * Samples for ElasticCapacityPools Get.
*/
-public final class RansomwareReportsListSamples {
+public final class ElasticCapacityPoolsGetSamples {
/*
- * x-ms-original-file: 2026-05-01/RansomwareReports_List.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticCapacityPools_Get.json
*/
/**
- * Sample code: RansomwareReports_List.
+ * Sample code: ElasticCapacityPools_Get.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void ransomwareReportsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.ransomwareReports().list("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE);
+ public static void elasticCapacityPoolsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticCapacityPools().getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE);
}
}
```
-### SnapshotPolicies_Create
+### ElasticCapacityPools_ListByElasticAccount
```java
-import com.azure.resourcemanager.netapp.models.DailySchedule;
-import com.azure.resourcemanager.netapp.models.HourlySchedule;
-import com.azure.resourcemanager.netapp.models.MonthlySchedule;
-import com.azure.resourcemanager.netapp.models.WeeklySchedule;
-
/**
- * Samples for SnapshotPolicies Create.
+ * Samples for ElasticCapacityPools ListByElasticAccount.
*/
-public final class SnapshotPoliciesCreateSamples {
+public final class ElasticCapacityPoolsListByElasticAccountSamples {
/*
- * x-ms-original-file: 2026-05-01/SnapshotPolicies_Create.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticCapacityPools_ListByElasticAccount.json
*/
/**
- * Sample code: SnapshotPolicies_Create.
+ * Sample code: ElasticCapacityPools_ListByElasticAccount.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void snapshotPoliciesCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.snapshotPolicies()
- .define("snapshotPolicyName")
- .withRegion("eastus")
- .withExistingNetAppAccount("myRG", "account1")
- .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(2).withMinute(50))
- .withDailySchedule(new DailySchedule().withSnapshotsToKeep(4).withHour(14).withMinute(30))
- .withWeeklySchedule(
- new WeeklySchedule().withSnapshotsToKeep(3).withDay("Wednesday").withHour(14).withMinute(45))
- .withMonthlySchedule(
- new MonthlySchedule().withSnapshotsToKeep(5).withDaysOfMonth("10,11,12").withHour(14).withMinute(15))
- .withEnabled(true)
+ public static void
+ elasticCapacityPoolsListByElasticAccount(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticCapacityPools().listByElasticAccount("myRG", "account1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ElasticCapacityPools_Update
+
+```java
+import com.azure.resourcemanager.netapp.models.ElasticCapacityPool;
+import com.azure.resourcemanager.netapp.models.ElasticCapacityPoolUpdateProperties;
+
+/**
+ * Samples for ElasticCapacityPools Update.
+ */
+public final class ElasticCapacityPoolsUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/ElasticCapacityPools_Update.json
+ */
+ /**
+ * Sample code: ElasticCapacityPools_Update.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void elasticCapacityPoolsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ ElasticCapacityPool resource = manager.elasticCapacityPools()
+ .getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withProperties(new ElasticCapacityPoolUpdateProperties().withSize(4398046511104L)
+ .withActiveDirectoryConfigResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/activeDirectoryConfigs/activeDirectoryConfig1"))
+ .apply();
+ }
+}
+```
+
+### ElasticSnapshotPolicies_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.netapp.models.DayOfWeek;
+import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyDailySchedule;
+import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyHourlySchedule;
+import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyMonthlySchedule;
+import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyProperties;
+import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyWeeklySchedule;
+import com.azure.resourcemanager.netapp.models.PolicyStatus;
+import java.util.Arrays;
+
+/**
+ * Samples for ElasticSnapshotPolicies CreateOrUpdate.
+ */
+public final class ElasticSnapshotPoliciesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/ElasticSnapshotPolicies_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: ElasticSnapshotPolicies_CreateOrUpdate.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void
+ elasticSnapshotPoliciesCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticSnapshotPolicies()
+ .define("snapshotPolicyName")
+ .withRegion("eastus")
+ .withExistingElasticAccount("myRG", "account1")
+ .withProperties(new ElasticSnapshotPolicyProperties()
+ .withHourlySchedule(new ElasticSnapshotPolicyHourlySchedule().withSnapshotsToKeep(2).withMinute(50))
+ .withDailySchedule(
+ new ElasticSnapshotPolicyDailySchedule().withSnapshotsToKeep(4).withHour(14).withMinute(30))
+ .withWeeklySchedule(new ElasticSnapshotPolicyWeeklySchedule().withSnapshotsToKeep(3)
+ .withDays(Arrays.asList(DayOfWeek.WEDNESDAY))
+ .withHour(14)
+ .withMinute(45))
+ .withMonthlySchedule(new ElasticSnapshotPolicyMonthlySchedule().withSnapshotsToKeep(5)
+ .withDaysOfMonth(Arrays.asList(10, 11, 12))
+ .withHour(14)
+ .withMinute(15))
+ .withPolicyStatus(PolicyStatus.ENABLED))
.create();
}
}
```
-### SnapshotPolicies_Delete
+### ElasticSnapshotPolicies_Delete
```java
/**
- * Samples for SnapshotPolicies Delete.
+ * Samples for ElasticSnapshotPolicies Delete.
*/
-public final class SnapshotPoliciesDeleteSamples {
+public final class ElasticSnapshotPoliciesDeleteSamples {
/*
- * x-ms-original-file: 2026-05-01/SnapshotPolicies_Delete.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticSnapshotPolicies_Delete.json
*/
/**
- * Sample code: SnapshotPolicies_Delete.
+ * Sample code: ElasticSnapshotPolicies_Delete.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void snapshotPoliciesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.snapshotPolicies()
+ public static void elasticSnapshotPoliciesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticSnapshotPolicies()
.delete("resourceGroup", "accountName", "snapshotPolicyName", com.azure.core.util.Context.NONE);
}
}
```
-### SnapshotPolicies_Get
+### ElasticSnapshotPolicies_Get
```java
/**
- * Samples for SnapshotPolicies Get.
+ * Samples for ElasticSnapshotPolicies Get.
*/
-public final class SnapshotPoliciesGetSamples {
+public final class ElasticSnapshotPoliciesGetSamples {
/*
- * x-ms-original-file: 2026-05-01/SnapshotPolicies_Get.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticSnapshotPolicies_Get.json
*/
/**
- * Sample code: SnapshotPolicies_Get.
+ * Sample code: ElasticSnapshotPolicies_Get.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void snapshotPoliciesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.snapshotPolicies()
+ public static void elasticSnapshotPoliciesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticSnapshotPolicies()
.getWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE);
}
}
```
-### SnapshotPolicies_List
+### ElasticSnapshotPolicies_ListByElasticAccount
```java
/**
- * Samples for SnapshotPolicies List.
+ * Samples for ElasticSnapshotPolicies ListByElasticAccount.
*/
-public final class SnapshotPoliciesListSamples {
+public final class ElasticSnapshotPoliciesListByElasticAccountSamples {
/*
- * x-ms-original-file: 2026-05-01/SnapshotPolicies_List.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticSnapshotPolicies_ListByElasticAccount.json
*/
/**
- * Sample code: SnapshotPolicies_List.
+ * Sample code: ElasticSnapshotPolicies_ListByElasticAccount.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void snapshotPoliciesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.snapshotPolicies().list("myRG", "account1", com.azure.core.util.Context.NONE);
+ public static void
+ elasticSnapshotPoliciesListByElasticAccount(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticSnapshotPolicies().listByElasticAccount("myRG", "account1", com.azure.core.util.Context.NONE);
}
}
```
-### SnapshotPolicies_ListVolumes
+### ElasticSnapshotPolicies_ListElasticVolumes
```java
/**
- * Samples for SnapshotPolicies ListVolumes.
+ * Samples for ElasticSnapshotPolicies ListElasticVolumes.
*/
-public final class SnapshotPoliciesListVolumesSamples {
+public final class ElasticSnapshotPoliciesListElasticVolumesSamples {
/*
- * x-ms-original-file: 2026-05-01/SnapshotPolicies_ListVolumes.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticSnapshotPolicies_ListElasticVolumes.json
*/
/**
- * Sample code: SnapshotPolicies_ListVolumes.
+ * Sample code: ElasticSnapshotPolicies_ListElasticVolumes.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void snapshotPoliciesListVolumes(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.snapshotPolicies()
- .listVolumesWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE);
+ public static void
+ elasticSnapshotPoliciesListElasticVolumes(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticSnapshotPolicies()
+ .listElasticVolumes("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE);
}
}
```
-### SnapshotPolicies_Update
+### ElasticSnapshotPolicies_Update
```java
-import com.azure.resourcemanager.netapp.models.DailySchedule;
-import com.azure.resourcemanager.netapp.models.HourlySchedule;
-import com.azure.resourcemanager.netapp.models.MonthlySchedule;
-import com.azure.resourcemanager.netapp.models.SnapshotPolicy;
-import com.azure.resourcemanager.netapp.models.WeeklySchedule;
+import com.azure.resourcemanager.netapp.models.DayOfWeek;
+import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicy;
+import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyDailySchedule;
+import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyHourlySchedule;
+import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyMonthlySchedule;
+import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyUpdateProperties;
+import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyWeeklySchedule;
+import com.azure.resourcemanager.netapp.models.PolicyStatus;
+import java.util.Arrays;
/**
- * Samples for SnapshotPolicies Update.
+ * Samples for ElasticSnapshotPolicies Update.
*/
-public final class SnapshotPoliciesUpdateSamples {
+public final class ElasticSnapshotPoliciesUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/SnapshotPolicies_Update.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticSnapshotPolicies_Update.json
*/
/**
- * Sample code: SnapshotPolicies_Update.
+ * Sample code: ElasticSnapshotPolicies_Update.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void snapshotPoliciesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- SnapshotPolicy resource = manager.snapshotPolicies()
+ public static void elasticSnapshotPoliciesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ ElasticSnapshotPolicy resource = manager.elasticSnapshotPolicies()
.getWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE)
.getValue();
resource.update()
- .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(2).withMinute(50))
- .withDailySchedule(new DailySchedule().withSnapshotsToKeep(4).withHour(14).withMinute(30))
- .withWeeklySchedule(
- new WeeklySchedule().withSnapshotsToKeep(3).withDay("Wednesday").withHour(14).withMinute(45))
- .withMonthlySchedule(
- new MonthlySchedule().withSnapshotsToKeep(5).withDaysOfMonth("10,11,12").withHour(14).withMinute(15))
- .withEnabled(true)
+ .withProperties(new ElasticSnapshotPolicyUpdateProperties()
+ .withHourlySchedule(new ElasticSnapshotPolicyHourlySchedule().withSnapshotsToKeep(2).withMinute(50))
+ .withDailySchedule(
+ new ElasticSnapshotPolicyDailySchedule().withSnapshotsToKeep(4).withHour(14).withMinute(30))
+ .withWeeklySchedule(new ElasticSnapshotPolicyWeeklySchedule().withSnapshotsToKeep(3)
+ .withDays(Arrays.asList(DayOfWeek.WEDNESDAY))
+ .withHour(14)
+ .withMinute(45))
+ .withMonthlySchedule(new ElasticSnapshotPolicyMonthlySchedule().withSnapshotsToKeep(5)
+ .withDaysOfMonth(Arrays.asList(10, 11, 12))
+ .withHour(14)
+ .withMinute(15))
+ .withPolicyStatus(PolicyStatus.ENABLED))
.apply();
}
}
```
-### Snapshots_Create
+### ElasticSnapshots_CreateOrUpdate
```java
/**
- * Samples for Snapshots Create.
+ * Samples for ElasticSnapshots CreateOrUpdate.
*/
-public final class SnapshotsCreateSamples {
+public final class ElasticSnapshotsCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/Snapshots_Create.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticSnapshots_CreateOrUpdate.json
*/
/**
- * Sample code: Snapshots_Create.
+ * Sample code: ElasticSnapshots_CreateOrUpdate.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void snapshotsCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.snapshots()
+ public static void elasticSnapshotsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticSnapshots()
.define("snapshot1")
- .withRegion("eastus")
- .withExistingVolume("myRG", "account1", "pool1", "volume1")
+ .withExistingElasticVolume("myRG", "account1", "pool1", "volume1")
.create();
}
}
```
-### Snapshots_Delete
+### ElasticSnapshots_Delete
```java
/**
- * Samples for Snapshots Delete.
+ * Samples for ElasticSnapshots Delete.
*/
-public final class SnapshotsDeleteSamples {
+public final class ElasticSnapshotsDeleteSamples {
/*
- * x-ms-original-file: 2026-05-01/Snapshots_Delete.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticSnapshots_Delete.json
*/
/**
- * Sample code: Snapshots_Delete.
+ * Sample code: ElasticSnapshots_Delete.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void snapshotsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.snapshots()
+ public static void elasticSnapshotsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticSnapshots()
.delete("myRG", "account1", "pool1", "volume1", "snapshot1", com.azure.core.util.Context.NONE);
}
}
```
-### Snapshots_Get
+### ElasticSnapshots_Get
```java
/**
- * Samples for Snapshots Get.
+ * Samples for ElasticSnapshots Get.
*/
-public final class SnapshotsGetSamples {
+public final class ElasticSnapshotsGetSamples {
/*
- * x-ms-original-file: 2026-05-01/Snapshots_Get.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticSnapshots_Get.json
*/
/**
- * Sample code: Snapshots_Get.
+ * Sample code: ElasticSnapshots_Get.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void snapshotsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.snapshots()
+ public static void elasticSnapshotsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticSnapshots()
.getWithResponse("myRG", "account1", "pool1", "volume1", "snapshot1", com.azure.core.util.Context.NONE);
}
}
```
-### Snapshots_List
+### ElasticSnapshots_ListByElasticVolume
```java
/**
- * Samples for Snapshots List.
+ * Samples for ElasticSnapshots ListByElasticVolume.
*/
-public final class SnapshotsListSamples {
+public final class ElasticSnapshotsListByElasticVolumeSamples {
/*
- * x-ms-original-file: 2026-05-01/Snapshots_List.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticSnapshots_ListByElasticVolume.json
*/
/**
- * Sample code: Snapshots_List.
+ * Sample code: ElasticSnapshots_ListByElasticVolume.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void snapshotsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.snapshots().list("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE);
+ public static void
+ elasticSnapshotsListByElasticVolume(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticSnapshots()
+ .listByElasticVolume("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE);
}
}
```
-### Snapshots_RestoreFiles
+### ElasticVolumes_CreateOrUpdate
```java
-import com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles;
+import com.azure.resourcemanager.netapp.models.ElasticExportPolicy;
+import com.azure.resourcemanager.netapp.models.ElasticExportPolicyRule;
+import com.azure.resourcemanager.netapp.models.ElasticNfsv3Access;
+import com.azure.resourcemanager.netapp.models.ElasticNfsv4Access;
+import com.azure.resourcemanager.netapp.models.ElasticProtocolType;
+import com.azure.resourcemanager.netapp.models.ElasticRootAccess;
+import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule;
+import com.azure.resourcemanager.netapp.models.ElasticVolumeBackupProperties;
+import com.azure.resourcemanager.netapp.models.ElasticVolumeDataProtectionProperties;
+import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement;
+import com.azure.resourcemanager.netapp.models.ElasticVolumeProperties;
+import com.azure.resourcemanager.netapp.models.ElasticVolumeSnapshotProperties;
import java.util.Arrays;
/**
- * Samples for Snapshots RestoreFiles.
+ * Samples for ElasticVolumes CreateOrUpdate.
*/
-public final class SnapshotsRestoreFilesSamples {
+public final class ElasticVolumesCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/Snapshots_SingleFileRestore.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticVolumes_CreateOrUpdate.json
*/
/**
- * Sample code: Snapshots_SingleFileRestore.
+ * Sample code: ElasticVolumes_CreateOrUpdate.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void snapshotsSingleFileRestore(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.snapshots()
- .restoreFiles("myRG", "account1", "pool1", "volume1", "snapshot1",
- new SnapshotRestoreFiles().withFilePaths(Arrays.asList("/dir1/customer1.db", "/dir1/customer2.db")),
- com.azure.core.util.Context.NONE);
+ public static void elasticVolumesCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticVolumes()
+ .define("volume1")
+ .withRegion("eastus")
+ .withExistingElasticCapacityPool("myRG", "account1", "pool1")
+ .withProperties(new ElasticVolumeProperties().withFilePath("my-unique-file-path")
+ .withSize(107374182400L)
+ .withExportPolicy(
+ new ElasticExportPolicy().withRules(Arrays.asList(new ElasticExportPolicyRule().withRuleIndex(1)
+ .withUnixAccessRule(ElasticUnixAccessRule.READ_ONLY)
+ .withNfsv3(ElasticNfsv3Access.ENABLED)
+ .withNfsv4(ElasticNfsv4Access.DISABLED)
+ .withAllowedClients(Arrays.asList("0.0.0.0/0"))
+ .withRootAccess(ElasticRootAccess.DISABLED))))
+ .withProtocolTypes(Arrays.asList(ElasticProtocolType.NFSV3))
+ .withDataProtection(new ElasticVolumeDataProtectionProperties()
+ .withSnapshot(new ElasticVolumeSnapshotProperties().withSnapshotPolicyResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/elasticAccounts/account1/elasticSnapshotPolicies/policy1"))
+ .withBackup(new ElasticVolumeBackupProperties().withElasticBackupPolicyResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/elasticAccounts/account1/elasticBackupPolicies/elasticBackupPolicy1")
+ .withPolicyEnforcement(ElasticVolumePolicyEnforcement.ENFORCED)
+ .withElasticBackupVaultResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/elasticAccounts/account1/elasticBackupVaults/elasticBackupVault1"))))
+ .create();
}
}
```
-### Subvolumes_Create
+### ElasticVolumes_Delete
```java
/**
- * Samples for Subvolumes Create.
+ * Samples for ElasticVolumes Delete.
*/
-public final class SubvolumesCreateSamples {
+public final class ElasticVolumesDeleteSamples {
/*
- * x-ms-original-file: 2026-05-01/Subvolumes_Create.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticVolumes_Delete.json
*/
/**
- * Sample code: Subvolumes_Create.
+ * Sample code: ElasticVolumes_Delete.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void subvolumesCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.subvolumes()
- .define("subvolume1")
- .withExistingVolume("myRG", "account1", "pool1", "volume1")
- .withPath("/subvolumePath")
- .create();
+ public static void elasticVolumesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticVolumes().delete("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE);
}
}
```
-### Subvolumes_Delete
+### ElasticVolumes_Get
```java
/**
- * Samples for Subvolumes Delete.
+ * Samples for ElasticVolumes Get.
*/
-public final class SubvolumesDeleteSamples {
+public final class ElasticVolumesGetSamples {
/*
- * x-ms-original-file: 2026-05-01/Subvolumes_Delete.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticVolumes_Get.json
*/
/**
- * Sample code: Subvolumes_Delete.
+ * Sample code: ElasticVolumes_Get.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void subvolumesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.subvolumes()
- .delete("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE);
+ public static void elasticVolumesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticVolumes()
+ .getWithResponse("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE);
}
}
```
-### Subvolumes_Get
+### ElasticVolumes_ListByElasticPool
```java
/**
- * Samples for Subvolumes Get.
+ * Samples for ElasticVolumes ListByElasticPool.
*/
-public final class SubvolumesGetSamples {
+public final class ElasticVolumesListByElasticPoolSamples {
/*
- * x-ms-original-file: 2026-05-01/Subvolumes_Get.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticVolumes_ListByElasticPool.json
*/
/**
- * Sample code: Subvolumes_Get.
+ * Sample code: ElasticVolumes_ListByElasticPool.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void subvolumesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.subvolumes()
- .getWithResponse("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE);
+ public static void elasticVolumesListByElasticPool(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticVolumes().listByElasticPool("myRG", "account1", "pool1", com.azure.core.util.Context.NONE);
}
}
```
-### Subvolumes_GetMetadata
+### ElasticVolumes_Revert
```java
+import com.azure.resourcemanager.netapp.models.ElasticVolumeRevert;
+
/**
- * Samples for Subvolumes GetMetadata.
+ * Samples for ElasticVolumes Revert.
*/
-public final class SubvolumesGetMetadataSamples {
+public final class ElasticVolumesRevertSamples {
/*
- * x-ms-original-file: 2026-05-01/Subvolumes_Metadata.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticVolumes_Revert.json
*/
/**
- * Sample code: Subvolumes_Metadata.
+ * Sample code: ElasticVolumes_Revert.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void subvolumesMetadata(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.subvolumes()
- .getMetadata("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE);
+ public static void elasticVolumesRevert(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.elasticVolumes()
+ .revert("myRG", "account1", "pool1", "volume1", new ElasticVolumeRevert().withSnapshotResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/elasticAccounts/account1/elasticCapacityPools/pool1/elasticVolumes/volume1/elasticSnapshots/snapshot1"),
+ com.azure.core.util.Context.NONE);
}
}
```
-### Subvolumes_ListByVolume
+### ElasticVolumes_Update
```java
+import com.azure.resourcemanager.netapp.models.ElasticExportPolicy;
+import com.azure.resourcemanager.netapp.models.ElasticExportPolicyRule;
+import com.azure.resourcemanager.netapp.models.ElasticNfsv3Access;
+import com.azure.resourcemanager.netapp.models.ElasticNfsv4Access;
+import com.azure.resourcemanager.netapp.models.ElasticRootAccess;
+import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule;
+import com.azure.resourcemanager.netapp.models.ElasticVolume;
+import com.azure.resourcemanager.netapp.models.ElasticVolumeDataProtectionPatchProperties;
+import com.azure.resourcemanager.netapp.models.ElasticVolumeSnapshotProperties;
+import com.azure.resourcemanager.netapp.models.ElasticVolumeUpdateProperties;
+import java.util.Arrays;
+
/**
- * Samples for Subvolumes ListByVolume.
+ * Samples for ElasticVolumes Update.
*/
-public final class SubvolumesListByVolumeSamples {
+public final class ElasticVolumesUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/Subvolumes_List.json
+ * x-ms-original-file: 2026-05-15-preview/ElasticVolumes_Update.json
*/
/**
- * Sample code: Subvolumes_List.
+ * Sample code: ElasticVolumes_Update.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void subvolumesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.subvolumes().listByVolume("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE);
+ public static void elasticVolumesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ ElasticVolume resource = manager.elasticVolumes()
+ .getWithResponse("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withProperties(new ElasticVolumeUpdateProperties()
+ .withExportPolicy(
+ new ElasticExportPolicy().withRules(Arrays.asList(new ElasticExportPolicyRule().withRuleIndex(1)
+ .withUnixAccessRule(ElasticUnixAccessRule.READ_ONLY)
+ .withNfsv3(ElasticNfsv3Access.ENABLED)
+ .withNfsv4(ElasticNfsv4Access.DISABLED)
+ .withAllowedClients(Arrays.asList("0.0.0.0/0"))
+ .withRootAccess(ElasticRootAccess.DISABLED))))
+ .withDataProtection(new ElasticVolumeDataProtectionPatchProperties()
+ .withSnapshot(new ElasticVolumeSnapshotProperties().withSnapshotPolicyResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/elasticAccounts/account1/elasticSnapshotPolicies/policy1"))))
+ .apply();
}
}
```
-### Subvolumes_Update
+### NetAppResource_CheckFilePathAvailability
```java
-import com.azure.resourcemanager.netapp.models.SubvolumeInfo;
+import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest;
/**
- * Samples for Subvolumes Update.
+ * Samples for NetAppResource CheckFilePathAvailability.
*/
-public final class SubvolumesUpdateSamples {
+public final class NetAppResourceCheckFilePathAvailabilitySamples {
/*
- * x-ms-original-file: 2026-05-01/Subvolumes_Update.json
+ * x-ms-original-file: 2026-05-15-preview/CheckFilePathAvailability.json
*/
/**
- * Sample code: Subvolumes_Update.
+ * Sample code: CheckFilePathAvailability.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void subvolumesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- SubvolumeInfo resource = manager.subvolumes()
- .getWithResponse("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update().withPath("/subvolumePath").apply();
+ public static void checkFilePathAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResources()
+ .checkFilePathAvailabilityWithResponse("eastus", new FilePathAvailabilityRequest()
+ .withName("my-exact-filepath")
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"),
+ com.azure.core.util.Context.NONE);
}
}
```
-### VolumeGroups_Create
+### NetAppResource_CheckNameAvailability
```java
-import com.azure.resourcemanager.netapp.models.ApplicationType;
-import com.azure.resourcemanager.netapp.models.ExportPolicyRule;
-import com.azure.resourcemanager.netapp.models.ServiceLevel;
-import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata;
-import com.azure.resourcemanager.netapp.models.VolumeGroupVolumeProperties;
-import com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy;
-import java.util.Arrays;
+import com.azure.resourcemanager.netapp.models.CheckNameResourceTypes;
+import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest;
/**
- * Samples for VolumeGroups Create.
+ * Samples for NetAppResource CheckNameAvailability.
*/
-public final class VolumeGroupsCreateSamples {
+public final class NetAppResourceCheckNameAvailabilitySamples {
/*
- * x-ms-original-file: 2026-05-01/VolumeGroups_Create_SapHana.json
+ * x-ms-original-file: 2026-05-15-preview/CheckNameAvailability.json
*/
/**
- * Sample code: VolumeGroups_Create_SapHana.
+ * Sample code: CheckNameAvailability.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void volumeGroupsCreateSapHana(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.volumeGroups()
- .define("group1")
- .withExistingNetAppAccount("myRG", "account1")
- .withRegion("westus")
- .withGroupMetadata(new VolumeGroupMetadata().withGroupDescription("Volume group")
- .withApplicationType(ApplicationType.SAP_HANA)
- .withApplicationIdentifier("SH9"))
- .withVolumes(Arrays.asList(
- new VolumeGroupVolumeProperties().withName("test-data-mnt00001")
+ public static void checkNameAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResources()
+ .checkNameAvailabilityWithResponse("eastus",
+ new ResourceNameAvailabilityRequest().withName("accName")
+ .withType(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS)
+ .withResourceGroup("myRG"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### NetAppResource_CheckQuotaAvailability
+
+```java
+import com.azure.resourcemanager.netapp.models.CheckQuotaNameResourceTypes;
+import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest;
+
+/**
+ * Samples for NetAppResource CheckQuotaAvailability.
+ */
+public final class NetAppResourceCheckQuotaAvailabilitySamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/CheckQuotaAvailability.json
+ */
+ /**
+ * Sample code: CheckQuotaAvailability.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void checkQuotaAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResources()
+ .checkQuotaAvailabilityWithResponse("eastus",
+ new QuotaAvailabilityRequest().withName("resource1")
+ .withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS)
+ .withResourceGroup("myRG"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### NetAppResource_QueryNetworkSiblingSet
+
+```java
+import com.azure.resourcemanager.netapp.models.QueryNetworkSiblingSetRequest;
+
+/**
+ * Samples for NetAppResource QueryNetworkSiblingSet.
+ */
+public final class NetAppResourceQueryNetworkSiblingSetSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/NetworkSiblingSet_Query.json
+ */
+ /**
+ * Sample code: NetworkSiblingSet_Query.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void networkSiblingSetQuery(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResources()
+ .queryNetworkSiblingSetWithResponse("eastus", new QueryNetworkSiblingSetRequest()
+ .withNetworkSiblingSetId("9760acf5-4638-11e7-9bdb-020073ca3333")
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### NetAppResource_QueryRegionInfo
+
+```java
+/**
+ * Samples for NetAppResource QueryRegionInfo.
+ */
+public final class NetAppResourceQueryRegionInfoSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/RegionInfo.json
+ */
+ /**
+ * Sample code: RegionInfo_Query.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void regionInfoQuery(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResources().queryRegionInfoWithResponse("eastus", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### NetAppResource_UpdateNetworkSiblingSet
+
+```java
+import com.azure.resourcemanager.netapp.models.NetworkFeatures;
+import com.azure.resourcemanager.netapp.models.UpdateNetworkSiblingSetRequest;
+
+/**
+ * Samples for NetAppResource UpdateNetworkSiblingSet.
+ */
+public final class NetAppResourceUpdateNetworkSiblingSetSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/NetworkSiblingSet_Update.json
+ */
+ /**
+ * Sample code: NetworkFeatures_Update.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void networkFeaturesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResources()
+ .updateNetworkSiblingSet("eastus", new UpdateNetworkSiblingSetRequest()
+ .withNetworkSiblingSetId("9760acf5-4638-11e7-9bdb-020073ca3333")
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet")
+ .withNetworkSiblingSetStateId("12345_44420.8001578125")
+ .withNetworkFeatures(NetworkFeatures.STANDARD), com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### NetAppResourceQuotaLimits_Get
+
+```java
+/**
+ * Samples for NetAppResourceQuotaLimits Get.
+ */
+public final class NetAppResourceQuotaLimitsGetSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/NetAppResourceQuotaLimits_Get.json
+ */
+ /**
+ * Sample code: QuotaLimits.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void quotaLimits(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResourceQuotaLimits()
+ .getWithResponse("eastus", "totalCoolAccessVolumesPerSubscription", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### NetAppResourceQuotaLimits_List
+
+```java
+/**
+ * Samples for NetAppResourceQuotaLimits List.
+ */
+public final class NetAppResourceQuotaLimitsListSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/NetAppResourceQuotaLimits_List.json
+ */
+ /**
+ * Sample code: QuotaLimits.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void quotaLimits(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResourceQuotaLimits().list("eastus", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### NetAppResourceQuotaLimitsAccount_Get
+
+```java
+/**
+ * Samples for NetAppResourceQuotaLimitsAccount Get.
+ */
+public final class NetAppResourceQuotaLimitsAccountGetSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/NetAppResourceQuotaLimitsAccount_Get.json
+ */
+ /**
+ * Sample code: QuotaLimits.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void quotaLimits(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResourceQuotaLimitsAccounts()
+ .getWithResponse("myRG", "myAccount", "poolsPerAccount", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### NetAppResourceQuotaLimitsAccount_List
+
+```java
+/**
+ * Samples for NetAppResourceQuotaLimitsAccount List.
+ */
+public final class NetAppResourceQuotaLimitsAccountListSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/NetAppResourceQuotaLimitsAccount_List.json
+ */
+ /**
+ * Sample code: QuotaLimits.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void quotaLimits(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResourceQuotaLimitsAccounts().list("myRG", "myAccount", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### NetAppResourceRegionInfos_Get
+
+```java
+/**
+ * Samples for NetAppResourceRegionInfos Get.
+ */
+public final class NetAppResourceRegionInfosGetSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/RegionInfos_Get.json
+ */
+ /**
+ * Sample code: RegionInfos_Get.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void regionInfosGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResourceRegionInfos().getWithResponse("eastus", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### NetAppResourceRegionInfos_List
+
+```java
+/**
+ * Samples for NetAppResourceRegionInfos List.
+ */
+public final class NetAppResourceRegionInfosListSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/RegionInfos_List.json
+ */
+ /**
+ * Sample code: RegionInfos_List.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void regionInfosList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResourceRegionInfos().list("eastus", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### NetAppResourceUsages_Get
+
+```java
+/**
+ * Samples for NetAppResourceUsages Get.
+ */
+public final class NetAppResourceUsagesGetSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Usages_Get.json
+ */
+ /**
+ * Sample code: Usages_Get.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void usagesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResourceUsages()
+ .getWithResponse("eastus", "totalTibsPerSubscription", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### NetAppResourceUsages_List
+
+```java
+/**
+ * Samples for NetAppResourceUsages List.
+ */
+public final class NetAppResourceUsagesListSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Usages_List.json
+ */
+ /**
+ * Sample code: Usages_List.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void usagesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResourceUsages().list("eastus", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Operations_List
+
+```java
+/**
+ * Samples for Operations List.
+ */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/OperationList.json
+ */
+ /**
+ * Sample code: OperationList.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void operationList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.operations().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Pools_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.netapp.models.QosType;
+import com.azure.resourcemanager.netapp.models.ServiceLevel;
+
+/**
+ * Samples for Pools CreateOrUpdate.
+ */
+public final class PoolsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Pools_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Pools_CreateOrUpdate.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void poolsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.pools()
+ .define("pool1")
+ .withRegion("eastus")
+ .withExistingNetAppAccount("myRG", "account1")
+ .withSize(4398046511104L)
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withQosType(QosType.AUTO)
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Pools_CreateOrUpdate_CustomThroughput.json
+ */
+ /**
+ * Sample code: Pools_CreateOrUpdate_CustomThroughput.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void
+ poolsCreateOrUpdateCustomThroughput(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.pools()
+ .define("customPool1")
+ .withRegion("eastus")
+ .withExistingNetAppAccount("myRG", "account1")
+ .withSize(4398046511104L)
+ .withServiceLevel(ServiceLevel.FLEXIBLE)
+ .withCustomThroughputMibps(128)
+ .withQosType(QosType.MANUAL)
+ .create();
+ }
+}
+```
+
+### Pools_Delete
+
+```java
+/**
+ * Samples for Pools Delete.
+ */
+public final class PoolsDeleteSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Pools_Delete.json
+ */
+ /**
+ * Sample code: Pools_Delete.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void poolsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.pools().delete("myRG", "account1", "pool1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Pools_Get
+
+```java
+/**
+ * Samples for Pools Get.
+ */
+public final class PoolsGetSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Pools_Get_CustomThroughput.json
+ */
+ /**
+ * Sample code: Pools_Get_CustomThroughput.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void poolsGetCustomThroughput(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.pools().getWithResponse("myRG", "account1", "customPool1", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Pools_Get.json
+ */
+ /**
+ * Sample code: Pools_Get.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void poolsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.pools().getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Pools_List
+
+```java
+/**
+ * Samples for Pools List.
+ */
+public final class PoolsListSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Pools_List.json
+ */
+ /**
+ * Sample code: Pools_List.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void poolsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.pools().list("myRG", "account1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Pools_Update
+
+```java
+import com.azure.resourcemanager.netapp.models.CapacityPool;
+
+/**
+ * Samples for Pools Update.
+ */
+public final class PoolsUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Pools_Update.json
+ */
+ /**
+ * Sample code: Pools_Update.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void poolsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ CapacityPool resource
+ = manager.pools().getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE).getValue();
+ resource.update().apply();
+ }
+
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Pools_Update_CustomThroughput.json
+ */
+ /**
+ * Sample code: Pools_Update_CustomThroughput.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void poolsUpdateCustomThroughput(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ CapacityPool resource = manager.pools()
+ .getWithResponse("myRG", "account1", "customPool1", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().apply();
+ }
+}
+```
+
+### RansomwareReports_ClearSuspects
+
+```java
+import com.azure.resourcemanager.netapp.models.RansomwareSuspectResolution;
+import com.azure.resourcemanager.netapp.models.RansomwareSuspectsClearRequest;
+import java.util.Arrays;
+
+/**
+ * Samples for RansomwareReports ClearSuspects.
+ */
+public final class RansomwareReportsClearSuspectsSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/RansomwareReports_ClearSuspects.json
+ */
+ /**
+ * Sample code: RansomwareReports_ClearSuspects.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void ransomwareReportsClearSuspects(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.ransomwareReports()
+ .clearSuspects("myRG", "account1", "pool1", "volume1", "ransomwareReport1",
+ new RansomwareSuspectsClearRequest().withResolution(RansomwareSuspectResolution.POTENTIAL_THREAT)
+ .withExtensions(Arrays.asList(".threat")),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RansomwareReports_Get
+
+```java
+/**
+ * Samples for RansomwareReports Get.
+ */
+public final class RansomwareReportsGetSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/RansomwareReports_Get.json
+ */
+ /**
+ * Sample code: RansomwareReports_Get.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void ransomwareReportsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.ransomwareReports()
+ .getWithResponse("myRG", "account1", "pool1", "volume1", "ransomwareReport1",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RansomwareReports_List
+
+```java
+/**
+ * Samples for RansomwareReports List.
+ */
+public final class RansomwareReportsListSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/RansomwareReports_List.json
+ */
+ /**
+ * Sample code: RansomwareReports_List.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void ransomwareReportsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.ransomwareReports().list("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### SnapshotPolicies_Create
+
+```java
+import com.azure.resourcemanager.netapp.models.DailySchedule;
+import com.azure.resourcemanager.netapp.models.HourlySchedule;
+import com.azure.resourcemanager.netapp.models.MonthlySchedule;
+import com.azure.resourcemanager.netapp.models.WeeklySchedule;
+
+/**
+ * Samples for SnapshotPolicies Create.
+ */
+public final class SnapshotPoliciesCreateSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/SnapshotPolicies_Create.json
+ */
+ /**
+ * Sample code: SnapshotPolicies_Create.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void snapshotPoliciesCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.snapshotPolicies()
+ .define("snapshotPolicyName")
+ .withRegion("eastus")
+ .withExistingNetAppAccount("myRG", "account1")
+ .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(2).withMinute(50))
+ .withDailySchedule(new DailySchedule().withSnapshotsToKeep(4).withHour(14).withMinute(30))
+ .withWeeklySchedule(
+ new WeeklySchedule().withSnapshotsToKeep(3).withDay("Wednesday").withHour(14).withMinute(45))
+ .withMonthlySchedule(
+ new MonthlySchedule().withSnapshotsToKeep(5).withDaysOfMonth("10,11,12").withHour(14).withMinute(15))
+ .withEnabled(true)
+ .create();
+ }
+}
+```
+
+### SnapshotPolicies_Delete
+
+```java
+/**
+ * Samples for SnapshotPolicies Delete.
+ */
+public final class SnapshotPoliciesDeleteSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/SnapshotPolicies_Delete.json
+ */
+ /**
+ * Sample code: SnapshotPolicies_Delete.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void snapshotPoliciesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.snapshotPolicies()
+ .delete("resourceGroup", "accountName", "snapshotPolicyName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### SnapshotPolicies_Get
+
+```java
+/**
+ * Samples for SnapshotPolicies Get.
+ */
+public final class SnapshotPoliciesGetSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/SnapshotPolicies_Get.json
+ */
+ /**
+ * Sample code: SnapshotPolicies_Get.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void snapshotPoliciesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.snapshotPolicies()
+ .getWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### SnapshotPolicies_List
+
+```java
+/**
+ * Samples for SnapshotPolicies List.
+ */
+public final class SnapshotPoliciesListSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/SnapshotPolicies_List.json
+ */
+ /**
+ * Sample code: SnapshotPolicies_List.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void snapshotPoliciesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.snapshotPolicies().list("myRG", "account1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### SnapshotPolicies_ListVolumes
+
+```java
+/**
+ * Samples for SnapshotPolicies ListVolumes.
+ */
+public final class SnapshotPoliciesListVolumesSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/SnapshotPolicies_ListVolumes.json
+ */
+ /**
+ * Sample code: SnapshotPolicies_ListVolumes.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void snapshotPoliciesListVolumes(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.snapshotPolicies()
+ .listVolumesWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### SnapshotPolicies_Update
+
+```java
+import com.azure.resourcemanager.netapp.models.DailySchedule;
+import com.azure.resourcemanager.netapp.models.HourlySchedule;
+import com.azure.resourcemanager.netapp.models.MonthlySchedule;
+import com.azure.resourcemanager.netapp.models.SnapshotPolicy;
+import com.azure.resourcemanager.netapp.models.WeeklySchedule;
+
+/**
+ * Samples for SnapshotPolicies Update.
+ */
+public final class SnapshotPoliciesUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/SnapshotPolicies_Update.json
+ */
+ /**
+ * Sample code: SnapshotPolicies_Update.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void snapshotPoliciesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ SnapshotPolicy resource = manager.snapshotPolicies()
+ .getWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(2).withMinute(50))
+ .withDailySchedule(new DailySchedule().withSnapshotsToKeep(4).withHour(14).withMinute(30))
+ .withWeeklySchedule(
+ new WeeklySchedule().withSnapshotsToKeep(3).withDay("Wednesday").withHour(14).withMinute(45))
+ .withMonthlySchedule(
+ new MonthlySchedule().withSnapshotsToKeep(5).withDaysOfMonth("10,11,12").withHour(14).withMinute(15))
+ .withEnabled(true)
+ .apply();
+ }
+}
+```
+
+### Snapshots_Create
+
+```java
+/**
+ * Samples for Snapshots Create.
+ */
+public final class SnapshotsCreateSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Snapshots_Create.json
+ */
+ /**
+ * Sample code: Snapshots_Create.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void snapshotsCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.snapshots()
+ .define("snapshot1")
+ .withRegion("eastus")
+ .withExistingVolume("myRG", "account1", "pool1", "volume1")
+ .create();
+ }
+}
+```
+
+### Snapshots_Delete
+
+```java
+/**
+ * Samples for Snapshots Delete.
+ */
+public final class SnapshotsDeleteSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Snapshots_Delete.json
+ */
+ /**
+ * Sample code: Snapshots_Delete.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void snapshotsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.snapshots()
+ .delete("myRG", "account1", "pool1", "volume1", "snapshot1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Snapshots_Get
+
+```java
+/**
+ * Samples for Snapshots Get.
+ */
+public final class SnapshotsGetSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Snapshots_Get.json
+ */
+ /**
+ * Sample code: Snapshots_Get.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void snapshotsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.snapshots()
+ .getWithResponse("myRG", "account1", "pool1", "volume1", "snapshot1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Snapshots_List
+
+```java
+/**
+ * Samples for Snapshots List.
+ */
+public final class SnapshotsListSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Snapshots_List.json
+ */
+ /**
+ * Sample code: Snapshots_List.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void snapshotsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.snapshots().list("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Snapshots_RestoreFiles
+
+```java
+import com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles;
+import java.util.Arrays;
+
+/**
+ * Samples for Snapshots RestoreFiles.
+ */
+public final class SnapshotsRestoreFilesSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Snapshots_SingleFileRestore.json
+ */
+ /**
+ * Sample code: Snapshots_SingleFileRestore.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void snapshotsSingleFileRestore(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.snapshots()
+ .restoreFiles("myRG", "account1", "pool1", "volume1", "snapshot1",
+ new SnapshotRestoreFiles().withFilePaths(Arrays.asList("/dir1/customer1.db", "/dir1/customer2.db")),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Subvolumes_Create
+
+```java
+/**
+ * Samples for Subvolumes Create.
+ */
+public final class SubvolumesCreateSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Subvolumes_Create.json
+ */
+ /**
+ * Sample code: Subvolumes_Create.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void subvolumesCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.subvolumes()
+ .define("subvolume1")
+ .withExistingVolume("myRG", "account1", "pool1", "volume1")
+ .withPath("/subvolumePath")
+ .create();
+ }
+}
+```
+
+### Subvolumes_Delete
+
+```java
+/**
+ * Samples for Subvolumes Delete.
+ */
+public final class SubvolumesDeleteSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Subvolumes_Delete.json
+ */
+ /**
+ * Sample code: Subvolumes_Delete.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void subvolumesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.subvolumes()
+ .delete("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Subvolumes_Get
+
+```java
+/**
+ * Samples for Subvolumes Get.
+ */
+public final class SubvolumesGetSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Subvolumes_Get.json
+ */
+ /**
+ * Sample code: Subvolumes_Get.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void subvolumesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.subvolumes()
+ .getWithResponse("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Subvolumes_GetMetadata
+
+```java
+/**
+ * Samples for Subvolumes GetMetadata.
+ */
+public final class SubvolumesGetMetadataSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Subvolumes_Metadata.json
+ */
+ /**
+ * Sample code: Subvolumes_Metadata.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void subvolumesMetadata(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.subvolumes()
+ .getMetadata("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Subvolumes_ListByVolume
+
+```java
+/**
+ * Samples for Subvolumes ListByVolume.
+ */
+public final class SubvolumesListByVolumeSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Subvolumes_List.json
+ */
+ /**
+ * Sample code: Subvolumes_List.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void subvolumesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.subvolumes().listByVolume("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Subvolumes_Update
+
+```java
+import com.azure.resourcemanager.netapp.models.SubvolumeInfo;
+
+/**
+ * Samples for Subvolumes Update.
+ */
+public final class SubvolumesUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Subvolumes_Update.json
+ */
+ /**
+ * Sample code: Subvolumes_Update.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void subvolumesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ SubvolumeInfo resource = manager.subvolumes()
+ .getWithResponse("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withPath("/subvolumePath").apply();
+ }
+}
+```
+
+### VolumeGroups_Create
+
+```java
+import com.azure.resourcemanager.netapp.models.ApplicationType;
+import com.azure.resourcemanager.netapp.models.AvsDataStore;
+import com.azure.resourcemanager.netapp.models.ExportPolicyRule;
+import com.azure.resourcemanager.netapp.models.ServiceLevel;
+import com.azure.resourcemanager.netapp.models.SmbAccessBasedEnumeration;
+import com.azure.resourcemanager.netapp.models.SmbNonBrowsable;
+import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata;
+import com.azure.resourcemanager.netapp.models.VolumeGroupVolumeProperties;
+import com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy;
+import java.util.Arrays;
+
+/**
+ * Samples for VolumeGroups Create.
+ */
+public final class VolumeGroupsCreateSamples {
+ /*
+ * x-ms-original-file: 2026-05-15-preview/VolumeGroups_Create_SapHana.json
+ */
+ /**
+ * Sample code: VolumeGroups_Create_SapHana.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void volumeGroupsCreateSapHana(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.volumeGroups()
+ .define("group1")
+ .withExistingNetAppAccount("myRG", "account1")
+ .withRegion("westus")
+ .withGroupMetadata(new VolumeGroupMetadata().withGroupDescription("Volume group")
+ .withApplicationType(ApplicationType.SAP_HANA)
+ .withApplicationIdentifier("SH9"))
+ .withVolumes(Arrays.asList(
+ new VolumeGroupVolumeProperties().withName("test-data-mnt00001")
+ .withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy()
+ .withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1)
+ .withUnixReadOnly(true)
+ .withUnixReadWrite(true)
+ .withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false)
+ .withKerberos5IReadOnly(false)
+ .withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false)
+ .withKerberos5PReadWrite(false)
+ .withCifs(false)
+ .withNfsv3(false)
+ .withNfsv41(true)
+ .withAllowedClients("0.0.0.0/0")
+ .withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withProximityPlacementGroup(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
+ .withVolumeSpecName("data"),
+ new VolumeGroupVolumeProperties().withName("test-log-mnt00001")
+ .withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy()
+ .withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1)
+ .withUnixReadOnly(true)
+ .withUnixReadWrite(true)
+ .withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false)
+ .withKerberos5IReadOnly(false)
+ .withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false)
+ .withKerberos5PReadWrite(false)
+ .withCifs(false)
+ .withNfsv3(false)
+ .withNfsv41(true)
+ .withAllowedClients("0.0.0.0/0")
+ .withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withProximityPlacementGroup(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
+ .withVolumeSpecName("log"),
+ new VolumeGroupVolumeProperties().withName("test-shared")
+ .withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy()
+ .withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1)
+ .withUnixReadOnly(true)
+ .withUnixReadWrite(true)
+ .withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false)
+ .withKerberos5IReadOnly(false)
+ .withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false)
+ .withKerberos5PReadWrite(false)
+ .withCifs(false)
+ .withNfsv3(false)
+ .withNfsv41(true)
+ .withAllowedClients("0.0.0.0/0")
+ .withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withProximityPlacementGroup(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
+ .withVolumeSpecName("shared"),
+ new VolumeGroupVolumeProperties().withName("test-data-backup")
+ .withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy()
+ .withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1)
+ .withUnixReadOnly(true)
+ .withUnixReadWrite(true)
+ .withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false)
+ .withKerberos5IReadOnly(false)
+ .withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false)
+ .withKerberos5PReadWrite(false)
+ .withCifs(false)
+ .withNfsv3(false)
+ .withNfsv41(true)
+ .withAllowedClients("0.0.0.0/0")
+ .withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withProximityPlacementGroup(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
+ .withVolumeSpecName("data-backup"),
+ new VolumeGroupVolumeProperties().withName("test-log-backup")
+ .withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy()
+ .withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1)
+ .withUnixReadOnly(true)
+ .withUnixReadWrite(true)
+ .withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false)
+ .withKerberos5IReadOnly(false)
+ .withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false)
+ .withKerberos5PReadWrite(false)
+ .withCifs(false)
+ .withNfsv3(false)
+ .withNfsv41(true)
+ .withAllowedClients("0.0.0.0/0")
+ .withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withProximityPlacementGroup(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
+ .withVolumeSpecName("log-backup")))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: 2026-05-15-preview/VolumeGroups_Create_Oracle.json
+ */
+ /**
+ * Sample code: VolumeGroups_Create_Oracle.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void volumeGroupsCreateOracle(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.volumeGroups()
+ .define("group1")
+ .withExistingNetAppAccount("myRG", "account1")
+ .withRegion("westus")
+ .withGroupMetadata(new VolumeGroupMetadata().withGroupDescription("Volume group")
+ .withApplicationType(ApplicationType.ORACLE)
+ .withApplicationIdentifier("OR2"))
+ .withVolumes(Arrays.asList(
+ new VolumeGroupVolumeProperties().withName("test-ora-data1")
+ .withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy()
+ .withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1)
+ .withUnixReadOnly(true)
+ .withUnixReadWrite(true)
+ .withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false)
+ .withKerberos5IReadOnly(false)
+ .withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false)
+ .withKerberos5PReadWrite(false)
+ .withCifs(false)
+ .withNfsv3(false)
+ .withNfsv41(true)
+ .withAllowedClients("0.0.0.0/0")
+ .withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("ora-data1"),
+ new VolumeGroupVolumeProperties().withName("test-ora-data2")
+ .withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy()
+ .withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1)
+ .withUnixReadOnly(true)
+ .withUnixReadWrite(true)
+ .withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false)
+ .withKerberos5IReadOnly(false)
+ .withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false)
+ .withKerberos5PReadWrite(false)
+ .withCifs(false)
+ .withNfsv3(false)
+ .withNfsv41(true)
+ .withAllowedClients("0.0.0.0/0")
+ .withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("ora-data2"),
+ new VolumeGroupVolumeProperties().withName("test-ora-data3")
+ .withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy()
+ .withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1)
+ .withUnixReadOnly(true)
+ .withUnixReadWrite(true)
+ .withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false)
+ .withKerberos5IReadOnly(false)
+ .withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false)
+ .withKerberos5PReadWrite(false)
+ .withCifs(false)
+ .withNfsv3(false)
+ .withNfsv41(true)
+ .withAllowedClients("0.0.0.0/0")
+ .withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("ora-data3"),
+ new VolumeGroupVolumeProperties().withName("test-ora-data4")
+ .withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy()
+ .withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1)
+ .withUnixReadOnly(true)
+ .withUnixReadWrite(true)
+ .withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false)
+ .withKerberos5IReadOnly(false)
+ .withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false)
+ .withKerberos5PReadWrite(false)
+ .withCifs(false)
+ .withNfsv3(false)
+ .withNfsv41(true)
+ .withAllowedClients("0.0.0.0/0")
+ .withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("ora-data4"),
+ new VolumeGroupVolumeProperties().withName("test-ora-data5")
+ .withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy()
+ .withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1)
+ .withUnixReadOnly(true)
+ .withUnixReadWrite(true)
+ .withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false)
+ .withKerberos5IReadOnly(false)
+ .withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false)
+ .withKerberos5PReadWrite(false)
+ .withCifs(false)
+ .withNfsv3(false)
+ .withNfsv41(true)
+ .withAllowedClients("0.0.0.0/0")
+ .withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("ora-data5"),
+ new VolumeGroupVolumeProperties().withName("test-ora-data6")
+ .withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy()
+ .withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1)
+ .withUnixReadOnly(true)
+ .withUnixReadWrite(true)
+ .withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false)
+ .withKerberos5IReadOnly(false)
+ .withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false)
+ .withKerberos5PReadWrite(false)
+ .withCifs(false)
+ .withNfsv3(false)
+ .withNfsv41(true)
+ .withAllowedClients("0.0.0.0/0")
+ .withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("ora-data6"),
+ new VolumeGroupVolumeProperties().withName("test-ora-data7")
+ .withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
.withUsageThreshold(107374182400L)
@@ -2510,10 +4398,9 @@ public final class VolumeGroupsCreateSamples {
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
- .withProximityPlacementGroup(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
- .withVolumeSpecName("data"),
- new VolumeGroupVolumeProperties().withName("test-log-mnt00001")
+ .withVolumeSpecName("ora-data7"),
+ new VolumeGroupVolumeProperties().withName("test-ora-data8")
+ .withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
.withUsageThreshold(107374182400L)
@@ -2538,10 +4425,9 @@ public final class VolumeGroupsCreateSamples {
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
- .withProximityPlacementGroup(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
- .withVolumeSpecName("log"),
- new VolumeGroupVolumeProperties().withName("test-shared")
+ .withVolumeSpecName("ora-data8"),
+ new VolumeGroupVolumeProperties().withName("test-ora-log")
+ .withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
.withUsageThreshold(107374182400L)
@@ -2566,10 +4452,9 @@ public final class VolumeGroupsCreateSamples {
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
- .withProximityPlacementGroup(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
- .withVolumeSpecName("shared"),
- new VolumeGroupVolumeProperties().withName("test-data-backup")
+ .withVolumeSpecName("ora-log"),
+ new VolumeGroupVolumeProperties().withName("test-ora-log-mirror")
+ .withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
.withUsageThreshold(107374182400L)
@@ -2594,10 +4479,9 @@ public final class VolumeGroupsCreateSamples {
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
- .withProximityPlacementGroup(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
- .withVolumeSpecName("data-backup"),
- new VolumeGroupVolumeProperties().withName("test-log-backup")
+ .withVolumeSpecName("ora-log-mirror"),
+ new VolumeGroupVolumeProperties().withName("test-ora-binary")
+ .withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
.withUsageThreshold(107374182400L)
@@ -2622,30 +4506,55 @@ public final class VolumeGroupsCreateSamples {
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
- .withProximityPlacementGroup(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
- .withVolumeSpecName("log-backup")))
+ .withVolumeSpecName("ora-binary"),
+ new VolumeGroupVolumeProperties().withName("test-ora-backup")
+ .withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy()
+ .withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1)
+ .withUnixReadOnly(true)
+ .withUnixReadWrite(true)
+ .withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false)
+ .withKerberos5IReadOnly(false)
+ .withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false)
+ .withKerberos5PReadWrite(false)
+ .withCifs(false)
+ .withNfsv3(false)
+ .withNfsv41(true)
+ .withAllowedClients("0.0.0.0/0")
+ .withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("ora-backup")))
.create();
}
/*
- * x-ms-original-file: 2026-05-01/VolumeGroups_Create_Oracle.json
+ * x-ms-original-file: 2026-05-15-preview/VolumeGroups_Create_Custom.json
*/
/**
- * Sample code: VolumeGroups_Create_Oracle.
+ * Sample code: VolumeGroups_Create_Custom.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void volumeGroupsCreateOracle(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ public static void volumeGroupsCreateCustom(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.volumeGroups()
.define("group1")
.withExistingNetAppAccount("myRG", "account1")
.withRegion("westus")
.withGroupMetadata(new VolumeGroupMetadata().withGroupDescription("Volume group")
- .withApplicationType(ApplicationType.ORACLE)
- .withApplicationIdentifier("OR2"))
+ .withApplicationType(ApplicationType.fromString("CUSTOM"))
+ .withApplicationIdentifier("CU2"))
.withVolumes(Arrays.asList(
- new VolumeGroupVolumeProperties().withName("test-ora-data1")
+ new VolumeGroupVolumeProperties().withName("test-cus-data1")
.withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
@@ -2671,8 +4580,8 @@ public final class VolumeGroupsCreateSamples {
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
- .withVolumeSpecName("ora-data1"),
- new VolumeGroupVolumeProperties().withName("test-ora-data2")
+ .withVolumeSpecName("cus-data1"),
+ new VolumeGroupVolumeProperties().withName("test-cus-data2")
.withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
@@ -2698,8 +4607,8 @@ public final class VolumeGroupsCreateSamples {
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
- .withVolumeSpecName("ora-data2"),
- new VolumeGroupVolumeProperties().withName("test-ora-data3")
+ .withVolumeSpecName("cus-data2"),
+ new VolumeGroupVolumeProperties().withName("test-cus-data3")
.withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
@@ -2725,8 +4634,8 @@ public final class VolumeGroupsCreateSamples {
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
- .withVolumeSpecName("ora-data3"),
- new VolumeGroupVolumeProperties().withName("test-ora-data4")
+ .withVolumeSpecName("cus-data3"),
+ new VolumeGroupVolumeProperties().withName("test-cus-data4")
.withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
@@ -2752,8 +4661,8 @@ public final class VolumeGroupsCreateSamples {
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
- .withVolumeSpecName("ora-data4"),
- new VolumeGroupVolumeProperties().withName("test-ora-data5")
+ .withVolumeSpecName("cus-data4"),
+ new VolumeGroupVolumeProperties().withName("test-cus-data5")
.withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
@@ -2779,8 +4688,8 @@ public final class VolumeGroupsCreateSamples {
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
- .withVolumeSpecName("ora-data5"),
- new VolumeGroupVolumeProperties().withName("test-ora-data6")
+ .withVolumeSpecName("cus-data5"),
+ new VolumeGroupVolumeProperties().withName("test-cus-data6")
.withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
@@ -2806,8 +4715,8 @@ public final class VolumeGroupsCreateSamples {
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
- .withVolumeSpecName("ora-data6"),
- new VolumeGroupVolumeProperties().withName("test-ora-data7")
+ .withVolumeSpecName("cus-data6"),
+ new VolumeGroupVolumeProperties().withName("test-cus-data7")
.withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
@@ -2833,8 +4742,8 @@ public final class VolumeGroupsCreateSamples {
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
- .withVolumeSpecName("ora-data7"),
- new VolumeGroupVolumeProperties().withName("test-ora-data8")
+ .withVolumeSpecName("cus-data7"),
+ new VolumeGroupVolumeProperties().withName("test-cus-data8")
.withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
@@ -2860,8 +4769,8 @@ public final class VolumeGroupsCreateSamples {
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
- .withVolumeSpecName("ora-data8"),
- new VolumeGroupVolumeProperties().withName("test-ora-log")
+ .withVolumeSpecName("cus-data8"),
+ new VolumeGroupVolumeProperties().withName("test-cus-data9")
.withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
@@ -2887,8 +4796,8 @@ public final class VolumeGroupsCreateSamples {
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
- .withVolumeSpecName("ora-log"),
- new VolumeGroupVolumeProperties().withName("test-ora-log-mirror")
+ .withVolumeSpecName("cus-data9"),
+ new VolumeGroupVolumeProperties().withName("test-cus-data10")
.withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
@@ -2914,8 +4823,8 @@ public final class VolumeGroupsCreateSamples {
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
- .withVolumeSpecName("ora-log-mirror"),
- new VolumeGroupVolumeProperties().withName("test-ora-binary")
+ .withVolumeSpecName("cus-data10"),
+ new VolumeGroupVolumeProperties().withName("test-cus-data11")
.withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
@@ -2941,8 +4850,8 @@ public final class VolumeGroupsCreateSamples {
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
- .withVolumeSpecName("ora-binary"),
- new VolumeGroupVolumeProperties().withName("test-ora-backup")
+ .withVolumeSpecName("cus-data11"),
+ new VolumeGroupVolumeProperties().withName("test-cus-data12")
.withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
@@ -2968,7 +4877,230 @@ public final class VolumeGroupsCreateSamples {
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
- .withVolumeSpecName("ora-backup")))
+ .withVolumeSpecName("cus-data12")))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: 2026-05-15-preview/VolumeGroups_Create_Custom_SMB.json
+ */
+ /**
+ * Sample code: VolumeGroups_Create_Custom_SMB.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void volumeGroupsCreateCustomSMB(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.volumeGroups()
+ .define("group1")
+ .withExistingNetAppAccount("myRG", "account1")
+ .withRegion("westus")
+ .withGroupMetadata(new VolumeGroupMetadata().withGroupDescription("Volume group")
+ .withApplicationType(ApplicationType.fromString("CUSTOM"))
+ .withApplicationIdentifier("CU2"))
+ .withVolumes(Arrays.asList(new VolumeGroupVolumeProperties().withName("test-cus-data1")
+ .withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withProtocolTypes(Arrays.asList("CIFS"))
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withSmbEncryption(false)
+ .withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration.DISABLED)
+ .withSmbNonBrowsable(SmbNonBrowsable.DISABLED)
+ .withSmbContinuouslyAvailable(false)
+ .withThroughputMibps(10.0F)
+ .withAvsDataStore(AvsDataStore.DISABLED)
+ .withCapacityPoolResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("cus-data1"),
+ new VolumeGroupVolumeProperties().withName("test-cus-data2")
+ .withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withProtocolTypes(Arrays.asList("CIFS"))
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withSmbEncryption(false)
+ .withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration.DISABLED)
+ .withSmbNonBrowsable(SmbNonBrowsable.DISABLED)
+ .withSmbContinuouslyAvailable(false)
+ .withThroughputMibps(10.0F)
+ .withAvsDataStore(AvsDataStore.DISABLED)
+ .withCapacityPoolResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("cus-data2"),
+ new VolumeGroupVolumeProperties().withName("test-cus-data3")
+ .withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withProtocolTypes(Arrays.asList("CIFS"))
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withSmbEncryption(false)
+ .withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration.DISABLED)
+ .withSmbNonBrowsable(SmbNonBrowsable.DISABLED)
+ .withSmbContinuouslyAvailable(false)
+ .withThroughputMibps(10.0F)
+ .withAvsDataStore(AvsDataStore.DISABLED)
+ .withCapacityPoolResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("cus-data3"),
+ new VolumeGroupVolumeProperties().withName("test-cus-data4")
+ .withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withProtocolTypes(Arrays.asList("CIFS"))
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withSmbEncryption(false)
+ .withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration.DISABLED)
+ .withSmbNonBrowsable(SmbNonBrowsable.DISABLED)
+ .withSmbContinuouslyAvailable(false)
+ .withThroughputMibps(10.0F)
+ .withAvsDataStore(AvsDataStore.DISABLED)
+ .withCapacityPoolResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("cus-data4"),
+ new VolumeGroupVolumeProperties().withName("test-cus-data5")
+ .withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withProtocolTypes(Arrays.asList("CIFS"))
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withSmbEncryption(false)
+ .withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration.DISABLED)
+ .withSmbNonBrowsable(SmbNonBrowsable.DISABLED)
+ .withSmbContinuouslyAvailable(false)
+ .withThroughputMibps(10.0F)
+ .withAvsDataStore(AvsDataStore.DISABLED)
+ .withCapacityPoolResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("cus-data5"),
+ new VolumeGroupVolumeProperties().withName("test-cus-data6")
+ .withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withProtocolTypes(Arrays.asList("CIFS"))
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withSmbEncryption(false)
+ .withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration.DISABLED)
+ .withSmbNonBrowsable(SmbNonBrowsable.DISABLED)
+ .withSmbContinuouslyAvailable(false)
+ .withThroughputMibps(10.0F)
+ .withAvsDataStore(AvsDataStore.DISABLED)
+ .withCapacityPoolResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("cus-data6"),
+ new VolumeGroupVolumeProperties().withName("test-cus-data7")
+ .withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withProtocolTypes(Arrays.asList("CIFS"))
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withSmbEncryption(false)
+ .withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration.DISABLED)
+ .withSmbNonBrowsable(SmbNonBrowsable.DISABLED)
+ .withSmbContinuouslyAvailable(false)
+ .withThroughputMibps(10.0F)
+ .withAvsDataStore(AvsDataStore.DISABLED)
+ .withCapacityPoolResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("cus-data7"),
+ new VolumeGroupVolumeProperties().withName("test-cus-data8")
+ .withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withProtocolTypes(Arrays.asList("CIFS"))
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withSmbEncryption(false)
+ .withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration.DISABLED)
+ .withSmbNonBrowsable(SmbNonBrowsable.DISABLED)
+ .withSmbContinuouslyAvailable(false)
+ .withThroughputMibps(10.0F)
+ .withAvsDataStore(AvsDataStore.DISABLED)
+ .withCapacityPoolResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("cus-data8"),
+ new VolumeGroupVolumeProperties().withName("test-cus-data9")
+ .withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withProtocolTypes(Arrays.asList("CIFS"))
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withSmbEncryption(false)
+ .withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration.DISABLED)
+ .withSmbNonBrowsable(SmbNonBrowsable.DISABLED)
+ .withSmbContinuouslyAvailable(false)
+ .withThroughputMibps(10.0F)
+ .withAvsDataStore(AvsDataStore.DISABLED)
+ .withCapacityPoolResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("cus-data9"),
+ new VolumeGroupVolumeProperties().withName("test-cus-data10")
+ .withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withProtocolTypes(Arrays.asList("CIFS"))
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withSmbEncryption(false)
+ .withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration.DISABLED)
+ .withSmbNonBrowsable(SmbNonBrowsable.DISABLED)
+ .withSmbContinuouslyAvailable(false)
+ .withThroughputMibps(10.0F)
+ .withAvsDataStore(AvsDataStore.DISABLED)
+ .withCapacityPoolResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("cus-data10"),
+ new VolumeGroupVolumeProperties().withName("test-cus-data11")
+ .withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withProtocolTypes(Arrays.asList("CIFS"))
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withSmbEncryption(false)
+ .withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration.DISABLED)
+ .withSmbNonBrowsable(SmbNonBrowsable.DISABLED)
+ .withSmbContinuouslyAvailable(false)
+ .withThroughputMibps(10.0F)
+ .withAvsDataStore(AvsDataStore.DISABLED)
+ .withCapacityPoolResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("cus-data11"),
+ new VolumeGroupVolumeProperties().withName("test-cus-data12")
+ .withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withProtocolTypes(Arrays.asList("CIFS"))
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withSmbEncryption(false)
+ .withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration.DISABLED)
+ .withSmbNonBrowsable(SmbNonBrowsable.DISABLED)
+ .withSmbContinuouslyAvailable(false)
+ .withThroughputMibps(10.0F)
+ .withAvsDataStore(AvsDataStore.DISABLED)
+ .withCapacityPoolResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("cus-data12")))
.create();
}
}
@@ -2982,7 +5114,7 @@ public final class VolumeGroupsCreateSamples {
*/
public final class VolumeGroupsDeleteSamples {
/*
- * x-ms-original-file: 2026-05-01/VolumeGroups_Delete.json
+ * x-ms-original-file: 2026-05-15-preview/VolumeGroups_Delete.json
*/
/**
* Sample code: VolumeGroups_Delete.
@@ -3003,7 +5135,19 @@ public final class VolumeGroupsDeleteSamples {
*/
public final class VolumeGroupsGetSamples {
/*
- * x-ms-original-file: 2026-05-01/VolumeGroups_Get_SapHana.json
+ * x-ms-original-file: 2026-05-15-preview/VolumeGroups_Get_Custom.json
+ */
+ /**
+ * Sample code: VolumeGroups_Get_Custom.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void volumeGroupsGetCustom(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.volumeGroups().getWithResponse("myRG", "account1", "group1", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2026-05-15-preview/VolumeGroups_Get_SapHana.json
*/
/**
* Sample code: VolumeGroups_Get_SapHana.
@@ -3015,7 +5159,19 @@ public final class VolumeGroupsGetSamples {
}
/*
- * x-ms-original-file: 2026-05-01/VolumeGroups_Get_Oracle.json
+ * x-ms-original-file: 2026-05-15-preview/VolumeGroups_Get_Custom_SMB.json
+ */
+ /**
+ * Sample code: VolumeGroups_Get_Custom_SMB.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void volumeGroupsGetCustomSMB(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.volumeGroups().getWithResponse("myRG", "account1", "group1", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2026-05-15-preview/VolumeGroups_Get_Oracle.json
*/
/**
* Sample code: VolumeGroups_Get_Oracle.
@@ -3036,7 +5192,19 @@ public final class VolumeGroupsGetSamples {
*/
public final class VolumeGroupsListByNetAppAccountSamples {
/*
- * x-ms-original-file: 2026-05-01/VolumeGroups_List_Oracle.json
+ * x-ms-original-file: 2026-05-15-preview/VolumeGroups_List_Custom.json
+ */
+ /**
+ * Sample code: VolumeGroups_List_Custom.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void volumeGroupsListCustom(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.volumeGroups().listByNetAppAccount("myRG", "account1", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2026-05-15-preview/VolumeGroups_List_Oracle.json
*/
/**
* Sample code: VolumeGroups_List_Oracle.
@@ -3048,7 +5216,7 @@ public final class VolumeGroupsListByNetAppAccountSamples {
}
/*
- * x-ms-original-file: 2026-05-01/VolumeGroups_List_SapHana.json
+ * x-ms-original-file: 2026-05-15-preview/VolumeGroups_List_SapHana.json
*/
/**
* Sample code: VolumeGroups_List_SapHana.
@@ -3071,7 +5239,7 @@ import com.azure.resourcemanager.netapp.models.QuotaType;
*/
public final class VolumeQuotaRulesCreateSamples {
/*
- * x-ms-original-file: 2026-05-01/VolumeQuotaRules_Create.json
+ * x-ms-original-file: 2026-05-15-preview/VolumeQuotaRules_Create.json
*/
/**
* Sample code: VolumeQuotaRules_Create.
@@ -3099,7 +5267,7 @@ public final class VolumeQuotaRulesCreateSamples {
*/
public final class VolumeQuotaRulesDeleteSamples {
/*
- * x-ms-original-file: 2026-05-01/VolumeQuotaRules_Delete.json
+ * x-ms-original-file: 2026-05-15-preview/VolumeQuotaRules_Delete.json
*/
/**
* Sample code: VolumeQuotaRules_Delete.
@@ -3121,7 +5289,7 @@ public final class VolumeQuotaRulesDeleteSamples {
*/
public final class VolumeQuotaRulesGetSamples {
/*
- * x-ms-original-file: 2026-05-01/VolumeQuotaRules_Get.json
+ * x-ms-original-file: 2026-05-15-preview/VolumeQuotaRules_Get.json
*/
/**
* Sample code: VolumeQuotaRules_Get.
@@ -3144,7 +5312,7 @@ public final class VolumeQuotaRulesGetSamples {
*/
public final class VolumeQuotaRulesListByVolumeSamples {
/*
- * x-ms-original-file: 2026-05-01/VolumeQuotaRules_List.json
+ * x-ms-original-file: 2026-05-15-preview/VolumeQuotaRules_List.json
*/
/**
* Sample code: VolumeQuotaRules_List.
@@ -3168,7 +5336,7 @@ import com.azure.resourcemanager.netapp.models.VolumeQuotaRule;
*/
public final class VolumeQuotaRulesUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/VolumeQuotaRules_Update.json
+ * x-ms-original-file: 2026-05-15-preview/VolumeQuotaRules_Update.json
*/
/**
* Sample code: VolumeQuotaRules_Update.
@@ -3193,7 +5361,7 @@ public final class VolumeQuotaRulesUpdateSamples {
*/
public final class VolumesAuthorizeExternalReplicationSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_AuthorizeExternalReplication.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_AuthorizeExternalReplication.json
*/
/**
* Sample code: Volumes_AuthorizeExternalReplication.
@@ -3218,7 +5386,7 @@ import com.azure.resourcemanager.netapp.models.AuthorizeRequest;
*/
public final class VolumesAuthorizeReplicationSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_AuthorizeReplication.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_AuthorizeReplication.json
*/
/**
* Sample code: Volumes_AuthorizeReplication.
@@ -3245,7 +5413,7 @@ import com.azure.resourcemanager.netapp.models.BreakFileLocksRequest;
*/
public final class VolumesBreakFileLocksSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_BreakFileLocks.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_BreakFileLocks.json
*/
/**
* Sample code: Volumes_BreakFileLocks.
@@ -3271,7 +5439,7 @@ import com.azure.resourcemanager.netapp.models.BreakReplicationRequest;
*/
public final class VolumesBreakReplicationSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_BreakReplication.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_BreakReplication.json
*/
/**
* Sample code: Volumes_BreakReplication.
@@ -3296,7 +5464,7 @@ import com.azure.resourcemanager.netapp.models.ServiceLevel;
*/
public final class VolumesCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_CreateOrUpdate.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_CreateOrUpdate.json
*/
/**
* Sample code: Volumes_CreateOrUpdate.
@@ -3311,7 +5479,7 @@ public final class VolumesCreateOrUpdateSamples {
.withCreationToken("my-unique-file-path")
.withUsageThreshold(107374182400L)
.withSubnetId(
- "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
.withServiceLevel(ServiceLevel.PREMIUM)
.create();
}
@@ -3326,7 +5494,7 @@ public final class VolumesCreateOrUpdateSamples {
*/
public final class VolumesDeleteSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_Delete.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_Delete.json
*/
/**
* Sample code: Volumes_Delete.
@@ -3347,7 +5515,7 @@ public final class VolumesDeleteSamples {
*/
public final class VolumesDeleteReplicationSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_DeleteReplication.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_DeleteReplication.json
*/
/**
* Sample code: Volumes_DeleteReplication.
@@ -3368,7 +5536,7 @@ public final class VolumesDeleteReplicationSamples {
*/
public final class VolumesFinalizeExternalReplicationSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_FinalizeExternalReplication.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_FinalizeExternalReplication.json
*/
/**
* Sample code: Volumes_FinalizeExternalReplication.
@@ -3390,7 +5558,7 @@ public final class VolumesFinalizeExternalReplicationSamples {
*/
public final class VolumesFinalizeRelocationSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_FinalizeRelocation.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_FinalizeRelocation.json
*/
/**
* Sample code: Volumes_FinalizeRelocation.
@@ -3411,7 +5579,19 @@ public final class VolumesFinalizeRelocationSamples {
*/
public final class VolumesGetSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_Get.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_ExtraLargeVolumes_Get.json
+ */
+ /**
+ * Sample code: Volumes_ExtralargeVolumeGet.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void volumesExtralargeVolumeGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.volumes().getWithResponse("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Volumes_Get.json
*/
/**
* Sample code: Volumes_Get.
@@ -3432,7 +5612,19 @@ public final class VolumesGetSamples {
*/
public final class VolumesListSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_List.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_ExtraLargeVolumes_List.json
+ */
+ /**
+ * Sample code: Volumes_ExtralargeVolumeList.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void volumesExtralargeVolumeList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.volumes().list("myRG", "account1", "pool1", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2026-05-15-preview/Volumes_List.json
*/
/**
* Sample code: Volumes_List.
@@ -3455,7 +5647,7 @@ import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest;
*/
public final class VolumesListGetGroupIdListForLdapUserSamples {
/*
- * x-ms-original-file: 2026-05-01/GroupIdListForLDAPUser.json
+ * x-ms-original-file: 2026-05-15-preview/GroupIdListForLDAPUser.json
*/
/**
* Sample code: GetGroupIdListForUser.
@@ -3479,7 +5671,7 @@ public final class VolumesListGetGroupIdListForLdapUserSamples {
*/
public final class VolumesListQuotaReportSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_ListQuotaReport.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_ListQuotaReport.json
*/
/**
* Sample code: ListQuotaReport.
@@ -3504,7 +5696,7 @@ import com.azure.resourcemanager.netapp.models.ListReplicationsRequest;
*/
public final class VolumesListReplicationsSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_ListReplications.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_ListReplications.json
*/
/**
* Sample code: Volumes_ListReplications.
@@ -3530,7 +5722,7 @@ import java.util.Arrays;
*/
public final class VolumesPeerExternalClusterSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_PeerExternalCluster.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_PeerExternalCluster.json
*/
/**
* Sample code: Volumes_PeerExternalCluster.
@@ -3555,7 +5747,7 @@ public final class VolumesPeerExternalClusterSamples {
*/
public final class VolumesPerformReplicationTransferSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_PerformReplicationTransfer.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_PerformReplicationTransfer.json
*/
/**
* Sample code: Volumes_PerformReplicationTransfer.
@@ -3579,7 +5771,7 @@ import com.azure.resourcemanager.netapp.models.PoolChangeRequest;
*/
public final class VolumesPoolChangeSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_PoolChange.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_PoolChange.json
*/
/**
* Sample code: Volumes_PoolChange.
@@ -3603,7 +5795,7 @@ public final class VolumesPoolChangeSamples {
*/
public final class VolumesPopulateAvailabilityZoneSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_PopulateAvailabilityZones.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_PopulateAvailabilityZones.json
*/
/**
* Sample code: Volumes_PopulateAvailabilityZones.
@@ -3625,7 +5817,7 @@ public final class VolumesPopulateAvailabilityZoneSamples {
*/
public final class VolumesReInitializeReplicationSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_ReInitializeReplication.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_ReInitializeReplication.json
*/
/**
* Sample code: Volumes_ReInitializeReplication.
@@ -3649,7 +5841,7 @@ import com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest;
*/
public final class VolumesReestablishReplicationSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_ReestablishReplication.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_ReestablishReplication.json
*/
/**
* Sample code: Volumes_ReestablishReplication.
@@ -3676,7 +5868,7 @@ import com.azure.resourcemanager.netapp.models.RelocateVolumeRequest;
*/
public final class VolumesRelocateSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_Relocate.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_Relocate.json
*/
/**
* Sample code: Volumes_Relocate.
@@ -3699,7 +5891,7 @@ public final class VolumesRelocateSamples {
*/
public final class VolumesReplicationStatusSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_ReplicationStatus.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_ReplicationStatus.json
*/
/**
* Sample code: Volumes_ReplicationStatus.
@@ -3721,7 +5913,7 @@ public final class VolumesReplicationStatusSamples {
*/
public final class VolumesResetCifsPasswordSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_ResetCifsPassword.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_ResetCifsPassword.json
*/
/**
* Sample code: Volumes_ResetCifsPassword.
@@ -3742,7 +5934,7 @@ public final class VolumesResetCifsPasswordSamples {
*/
public final class VolumesResyncReplicationSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_ResyncReplication.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_ResyncReplication.json
*/
/**
* Sample code: Volumes_ResyncReplication.
@@ -3765,7 +5957,7 @@ import com.azure.resourcemanager.netapp.models.VolumeRevert;
*/
public final class VolumesRevertSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_Revert.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_Revert.json
*/
/**
* Sample code: Volumes_Revert.
@@ -3789,7 +5981,7 @@ public final class VolumesRevertSamples {
*/
public final class VolumesRevertRelocationSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_RevertRelocation.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_RevertRelocation.json
*/
/**
* Sample code: Volumes_RevertRelocation.
@@ -3810,7 +6002,7 @@ public final class VolumesRevertRelocationSamples {
*/
public final class VolumesSplitCloneFromParentSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_SplitClone.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_SplitClone.json
*/
/**
* Sample code: Volumes_SplitClone.
@@ -3834,7 +6026,7 @@ import com.azure.resourcemanager.netapp.models.Volume;
*/
public final class VolumesUpdateSamples {
/*
- * x-ms-original-file: 2026-05-01/Volumes_Update.json
+ * x-ms-original-file: 2026-05-15-preview/Volumes_Update.json
*/
/**
* Sample code: Volumes_Update.
diff --git a/sdk/netapp/azure-resourcemanager-netapp/pom.xml b/sdk/netapp/azure-resourcemanager-netapp/pom.xml
index ff2bdd1679cc..d75c9f16e7b7 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/pom.xml
+++ b/sdk/netapp/azure-resourcemanager-netapp/pom.xml
@@ -18,7 +18,7 @@
jar
Microsoft Azure SDK for NetAppFiles Management
- This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package api-version 2026-05-01.
+ This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package api-version 2026-05-15-preview.
https://github.com/Azure/azure-sdk-for-java
@@ -45,6 +45,7 @@
UTF-8
0
0
+ true
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java
index cded158586b5..c9dd2c1cdbd6 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java
@@ -26,6 +26,7 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.fluent.NetAppManagementClient;
import com.azure.resourcemanager.netapp.implementation.AccountsImpl;
+import com.azure.resourcemanager.netapp.implementation.ActiveDirectoryConfigsImpl;
import com.azure.resourcemanager.netapp.implementation.BackupPoliciesImpl;
import com.azure.resourcemanager.netapp.implementation.BackupVaultsImpl;
import com.azure.resourcemanager.netapp.implementation.BackupsImpl;
@@ -34,6 +35,14 @@
import com.azure.resourcemanager.netapp.implementation.BackupsUnderVolumesImpl;
import com.azure.resourcemanager.netapp.implementation.BucketsImpl;
import com.azure.resourcemanager.netapp.implementation.CachesImpl;
+import com.azure.resourcemanager.netapp.implementation.ElasticAccountsImpl;
+import com.azure.resourcemanager.netapp.implementation.ElasticBackupPoliciesImpl;
+import com.azure.resourcemanager.netapp.implementation.ElasticBackupVaultsImpl;
+import com.azure.resourcemanager.netapp.implementation.ElasticBackupsImpl;
+import com.azure.resourcemanager.netapp.implementation.ElasticCapacityPoolsImpl;
+import com.azure.resourcemanager.netapp.implementation.ElasticSnapshotPoliciesImpl;
+import com.azure.resourcemanager.netapp.implementation.ElasticSnapshotsImpl;
+import com.azure.resourcemanager.netapp.implementation.ElasticVolumesImpl;
import com.azure.resourcemanager.netapp.implementation.NetAppManagementClientBuilder;
import com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsAccountsImpl;
import com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsImpl;
@@ -50,6 +59,7 @@
import com.azure.resourcemanager.netapp.implementation.VolumeQuotaRulesImpl;
import com.azure.resourcemanager.netapp.implementation.VolumesImpl;
import com.azure.resourcemanager.netapp.models.Accounts;
+import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigs;
import com.azure.resourcemanager.netapp.models.BackupPolicies;
import com.azure.resourcemanager.netapp.models.BackupVaults;
import com.azure.resourcemanager.netapp.models.Backups;
@@ -58,6 +68,14 @@
import com.azure.resourcemanager.netapp.models.BackupsUnderVolumes;
import com.azure.resourcemanager.netapp.models.Buckets;
import com.azure.resourcemanager.netapp.models.Caches;
+import com.azure.resourcemanager.netapp.models.ElasticAccounts;
+import com.azure.resourcemanager.netapp.models.ElasticBackupPolicies;
+import com.azure.resourcemanager.netapp.models.ElasticBackupVaults;
+import com.azure.resourcemanager.netapp.models.ElasticBackups;
+import com.azure.resourcemanager.netapp.models.ElasticCapacityPools;
+import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicies;
+import com.azure.resourcemanager.netapp.models.ElasticSnapshots;
+import com.azure.resourcemanager.netapp.models.ElasticVolumes;
import com.azure.resourcemanager.netapp.models.NetAppResourceQuotaLimits;
import com.azure.resourcemanager.netapp.models.NetAppResourceQuotaLimitsAccounts;
import com.azure.resourcemanager.netapp.models.NetAppResourceRegionInfos;
@@ -111,6 +129,24 @@ public final class NetAppFilesManager {
private Caches caches;
+ private ElasticAccounts elasticAccounts;
+
+ private ElasticCapacityPools elasticCapacityPools;
+
+ private ElasticVolumes elasticVolumes;
+
+ private ElasticSnapshots elasticSnapshots;
+
+ private ElasticSnapshotPolicies elasticSnapshotPolicies;
+
+ private ElasticBackupVaults elasticBackupVaults;
+
+ private ElasticBackupPolicies elasticBackupPolicies;
+
+ private ElasticBackups elasticBackups;
+
+ private ActiveDirectoryConfigs activeDirectoryConfigs;
+
private NetAppResourceQuotaLimits netAppResourceQuotaLimits;
private NetAppResourceRegionInfos netAppResourceRegionInfos;
@@ -503,6 +539,116 @@ public Caches caches() {
return caches;
}
+ /**
+ * Gets the resource collection API of ElasticAccounts. It manages ElasticAccount.
+ *
+ * @return Resource collection API of ElasticAccounts.
+ */
+ public ElasticAccounts elasticAccounts() {
+ if (this.elasticAccounts == null) {
+ this.elasticAccounts = new ElasticAccountsImpl(clientObject.getElasticAccounts(), this);
+ }
+ return elasticAccounts;
+ }
+
+ /**
+ * Gets the resource collection API of ElasticCapacityPools. It manages ElasticCapacityPool.
+ *
+ * @return Resource collection API of ElasticCapacityPools.
+ */
+ public ElasticCapacityPools elasticCapacityPools() {
+ if (this.elasticCapacityPools == null) {
+ this.elasticCapacityPools = new ElasticCapacityPoolsImpl(clientObject.getElasticCapacityPools(), this);
+ }
+ return elasticCapacityPools;
+ }
+
+ /**
+ * Gets the resource collection API of ElasticVolumes. It manages ElasticVolume.
+ *
+ * @return Resource collection API of ElasticVolumes.
+ */
+ public ElasticVolumes elasticVolumes() {
+ if (this.elasticVolumes == null) {
+ this.elasticVolumes = new ElasticVolumesImpl(clientObject.getElasticVolumes(), this);
+ }
+ return elasticVolumes;
+ }
+
+ /**
+ * Gets the resource collection API of ElasticSnapshots. It manages ElasticSnapshot.
+ *
+ * @return Resource collection API of ElasticSnapshots.
+ */
+ public ElasticSnapshots elasticSnapshots() {
+ if (this.elasticSnapshots == null) {
+ this.elasticSnapshots = new ElasticSnapshotsImpl(clientObject.getElasticSnapshots(), this);
+ }
+ return elasticSnapshots;
+ }
+
+ /**
+ * Gets the resource collection API of ElasticSnapshotPolicies. It manages ElasticSnapshotPolicy.
+ *
+ * @return Resource collection API of ElasticSnapshotPolicies.
+ */
+ public ElasticSnapshotPolicies elasticSnapshotPolicies() {
+ if (this.elasticSnapshotPolicies == null) {
+ this.elasticSnapshotPolicies
+ = new ElasticSnapshotPoliciesImpl(clientObject.getElasticSnapshotPolicies(), this);
+ }
+ return elasticSnapshotPolicies;
+ }
+
+ /**
+ * Gets the resource collection API of ElasticBackupVaults. It manages ElasticBackupVault.
+ *
+ * @return Resource collection API of ElasticBackupVaults.
+ */
+ public ElasticBackupVaults elasticBackupVaults() {
+ if (this.elasticBackupVaults == null) {
+ this.elasticBackupVaults = new ElasticBackupVaultsImpl(clientObject.getElasticBackupVaults(), this);
+ }
+ return elasticBackupVaults;
+ }
+
+ /**
+ * Gets the resource collection API of ElasticBackupPolicies. It manages ElasticBackupPolicy.
+ *
+ * @return Resource collection API of ElasticBackupPolicies.
+ */
+ public ElasticBackupPolicies elasticBackupPolicies() {
+ if (this.elasticBackupPolicies == null) {
+ this.elasticBackupPolicies = new ElasticBackupPoliciesImpl(clientObject.getElasticBackupPolicies(), this);
+ }
+ return elasticBackupPolicies;
+ }
+
+ /**
+ * Gets the resource collection API of ElasticBackups. It manages ElasticBackup.
+ *
+ * @return Resource collection API of ElasticBackups.
+ */
+ public ElasticBackups elasticBackups() {
+ if (this.elasticBackups == null) {
+ this.elasticBackups = new ElasticBackupsImpl(clientObject.getElasticBackups(), this);
+ }
+ return elasticBackups;
+ }
+
+ /**
+ * Gets the resource collection API of ActiveDirectoryConfigs. It manages ActiveDirectoryConfig.
+ *
+ * @return Resource collection API of ActiveDirectoryConfigs.
+ */
+ public ActiveDirectoryConfigs activeDirectoryConfigs() {
+ if (this.activeDirectoryConfigs == null) {
+ this.activeDirectoryConfigs
+ = new ActiveDirectoryConfigsImpl(clientObject.getActiveDirectoryConfigs(), this);
+ }
+ return activeDirectoryConfigs;
+ }
+
/**
* Gets the resource collection API of NetAppResourceQuotaLimits.
*
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java
index 0ce6e2c81f77..a9e5ddc935d6 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java
@@ -509,4 +509,57 @@ SyncPoller, Void> beginChangeKeyVault(String resourceGroupName,
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void changeKeyVault(String resourceGroupName, String accountName, ChangeKeyVault body, Context context);
+
+ /**
+ * Refresh LDAP Bind DN password by fetching the latest password from Azure Key Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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> beginRefreshLdapBindPassword(String resourceGroupName, String accountName);
+
+ /**
+ * Refresh LDAP Bind DN password by fetching the latest password from Azure Key Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @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> beginRefreshLdapBindPassword(String resourceGroupName, String accountName,
+ Context context);
+
+ /**
+ * Refresh LDAP Bind DN password by fetching the latest password from Azure Key Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 refreshLdapBindPassword(String resourceGroupName, String accountName);
+
+ /**
+ * Refresh LDAP Bind DN password by fetching the latest password from Azure Key Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @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 refreshLdapBindPassword(String resourceGroupName, String accountName, Context context);
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ActiveDirectoryConfigsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ActiveDirectoryConfigsClient.java
new file mode 100644
index 000000000000..ab9def2b0953
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ActiveDirectoryConfigsClient.java
@@ -0,0 +1,272 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.netapp.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.netapp.fluent.models.ActiveDirectoryConfigInner;
+import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigUpdate;
+
+/**
+ * An instance of this class provides access to all the operations defined in ActiveDirectoryConfigsClient.
+ */
+public interface ActiveDirectoryConfigsClient {
+ /**
+ * Get the details of the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @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 details of the specified active directory configuration along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName,
+ String activeDirectoryConfigName, Context context);
+
+ /**
+ * Get the details of the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 details of the specified active directory configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ActiveDirectoryConfigInner getByResourceGroup(String resourceGroupName, String activeDirectoryConfigName);
+
+ /**
+ * Create or update the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of active Directory Configuration resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ActiveDirectoryConfigInner> beginCreateOrUpdate(
+ String resourceGroupName, String activeDirectoryConfigName, ActiveDirectoryConfigInner body);
+
+ /**
+ * Create or update the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of active Directory Configuration resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ActiveDirectoryConfigInner> beginCreateOrUpdate(
+ String resourceGroupName, String activeDirectoryConfigName, ActiveDirectoryConfigInner body, Context context);
+
+ /**
+ * Create or update the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return active Directory Configuration resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ActiveDirectoryConfigInner createOrUpdate(String resourceGroupName, String activeDirectoryConfigName,
+ ActiveDirectoryConfigInner body);
+
+ /**
+ * Create or update the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return active Directory Configuration resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ActiveDirectoryConfigInner createOrUpdate(String resourceGroupName, String activeDirectoryConfigName,
+ ActiveDirectoryConfigInner body, Context context);
+
+ /**
+ * Patch the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 active Directory Configuration resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ActiveDirectoryConfigInner> beginUpdate(String resourceGroupName,
+ String activeDirectoryConfigName, ActiveDirectoryConfigUpdate body);
+
+ /**
+ * Patch the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body The resource properties to be updated.
+ * @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 active Directory Configuration resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ActiveDirectoryConfigInner> beginUpdate(String resourceGroupName,
+ String activeDirectoryConfigName, ActiveDirectoryConfigUpdate body, Context context);
+
+ /**
+ * Patch the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return active Directory Configuration resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ActiveDirectoryConfigInner update(String resourceGroupName, String activeDirectoryConfigName,
+ ActiveDirectoryConfigUpdate body);
+
+ /**
+ * Patch the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body The resource properties to be updated.
+ * @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 active Directory Configuration resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ActiveDirectoryConfigInner update(String resourceGroupName, String activeDirectoryConfigName,
+ ActiveDirectoryConfigUpdate body, Context context);
+
+ /**
+ * Delete the specified Active Directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 activeDirectoryConfigName);
+
+ /**
+ * Delete the specified Active Directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @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 activeDirectoryConfigName,
+ Context context);
+
+ /**
+ * Delete the specified Active Directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 activeDirectoryConfigName);
+
+ /**
+ * Delete the specified Active Directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @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 activeDirectoryConfigName, Context context);
+
+ /**
+ * List all active directory configurations within the 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 the response of a ActiveDirectoryConfig list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List all active directory configurations within the 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 the response of a ActiveDirectoryConfig list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * List all active directory configurations within the 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 the response of a ActiveDirectoryConfig list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List all active directory configurations within the 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 the response of a ActiveDirectoryConfig list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticAccountsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticAccountsClient.java
new file mode 100644
index 000000000000..1b42177183db
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticAccountsClient.java
@@ -0,0 +1,269 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.netapp.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.netapp.fluent.models.ElasticAccountInner;
+import com.azure.resourcemanager.netapp.models.ElasticAccountUpdate;
+
+/**
+ * An instance of this class provides access to all the operations defined in ElasticAccountsClient.
+ */
+public interface ElasticAccountsClient {
+ /**
+ * Get the NetApp Elastic Account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @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 NetApp Elastic Account along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String accountName,
+ Context context);
+
+ /**
+ * Get the NetApp Elastic Account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 NetApp Elastic Account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticAccountInner getByResourceGroup(String resourceGroupName, String accountName);
+
+ /**
+ * Create or update the specified NetApp Elastic Account within the resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param body Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of netApp elastic account resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticAccountInner> beginCreateOrUpdate(String resourceGroupName,
+ String accountName, ElasticAccountInner body);
+
+ /**
+ * Create or update the specified NetApp Elastic Account within the resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param body Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of netApp elastic account resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticAccountInner> beginCreateOrUpdate(String resourceGroupName,
+ String accountName, ElasticAccountInner body, Context context);
+
+ /**
+ * Create or update the specified NetApp Elastic Account within the resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param body Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp elastic account resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticAccountInner createOrUpdate(String resourceGroupName, String accountName, ElasticAccountInner body);
+
+ /**
+ * Create or update the specified NetApp Elastic Account within the resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param body Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp elastic account resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticAccountInner createOrUpdate(String resourceGroupName, String accountName, ElasticAccountInner body,
+ Context context);
+
+ /**
+ * Patch the specified NetApp Elastic Account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param body The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 netApp elastic account resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticAccountInner> beginUpdate(String resourceGroupName,
+ String accountName, ElasticAccountUpdate body);
+
+ /**
+ * Patch the specified NetApp Elastic Account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param body The resource properties to be updated.
+ * @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 netApp elastic account resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticAccountInner> beginUpdate(String resourceGroupName,
+ String accountName, ElasticAccountUpdate body, Context context);
+
+ /**
+ * Patch the specified NetApp Elastic Account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param body The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp elastic account resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticAccountInner update(String resourceGroupName, String accountName, ElasticAccountUpdate body);
+
+ /**
+ * Patch the specified NetApp Elastic Account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param body The resource properties to be updated.
+ * @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 netApp elastic account resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticAccountInner update(String resourceGroupName, String accountName, ElasticAccountUpdate body,
+ Context context);
+
+ /**
+ * Delete the specified NetApp elastic account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 accountName);
+
+ /**
+ * Delete the specified NetApp elastic account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @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 accountName, Context context);
+
+ /**
+ * Delete the specified NetApp elastic account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 accountName);
+
+ /**
+ * Delete the specified NetApp elastic account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @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 accountName, Context context);
+
+ /**
+ * List and describe all NetApp elastic accounts in the 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 the response of a ElasticAccount list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List and describe all NetApp elastic accounts in the 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 the response of a ElasticAccount list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * List and describe all NetApp elastic accounts in the 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 the response of a ElasticAccount list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List and describe all NetApp elastic accounts in the 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 the response of a ElasticAccount list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupPoliciesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupPoliciesClient.java
new file mode 100644
index 000000000000..12f8ec5cce35
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupPoliciesClient.java
@@ -0,0 +1,269 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.netapp.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.netapp.fluent.models.ElasticBackupPolicyInner;
+import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyUpdate;
+
+/**
+ * An instance of this class provides access to all the operations defined in ElasticBackupPoliciesClient.
+ */
+public interface ElasticBackupPoliciesClient {
+ /**
+ * Get the Elastic Backup Policy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupPolicyName The name of the ElasticBackupPolicy.
+ * @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 Elastic Backup Policy along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String accountName,
+ String backupPolicyName, Context context);
+
+ /**
+ * Get the Elastic Backup Policy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupPolicyName The name of the ElasticBackupPolicy.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 Elastic Backup Policy.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticBackupPolicyInner get(String resourceGroupName, String accountName, String backupPolicyName);
+
+ /**
+ * Create or update the specified Elastic Backup Policy in the NetApp account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupPolicyName The name of the ElasticBackupPolicy.
+ * @param body Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of netApp Elastic Backup Policy resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticBackupPolicyInner> beginCreateOrUpdate(
+ String resourceGroupName, String accountName, String backupPolicyName, ElasticBackupPolicyInner body);
+
+ /**
+ * Create or update the specified Elastic Backup Policy in the NetApp account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupPolicyName The name of the ElasticBackupPolicy.
+ * @param body Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of netApp Elastic Backup Policy resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticBackupPolicyInner> beginCreateOrUpdate(
+ String resourceGroupName, String accountName, String backupPolicyName, ElasticBackupPolicyInner body,
+ Context context);
+
+ /**
+ * Create or update the specified Elastic Backup Policy in the NetApp account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupPolicyName The name of the ElasticBackupPolicy.
+ * @param body Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp Elastic Backup Policy resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticBackupPolicyInner createOrUpdate(String resourceGroupName, String accountName, String backupPolicyName,
+ ElasticBackupPolicyInner body);
+
+ /**
+ * Create or update the specified Elastic Backup Policy in the NetApp account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupPolicyName The name of the ElasticBackupPolicy.
+ * @param body Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp Elastic Backup Policy resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticBackupPolicyInner createOrUpdate(String resourceGroupName, String accountName, String backupPolicyName,
+ ElasticBackupPolicyInner body, Context context);
+
+ /**
+ * Patch the specified NetApp Elastic Backup Policy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupPolicyName The name of the ElasticBackupPolicy.
+ * @param body The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 netApp Elastic Backup Policy resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticBackupPolicyInner> beginUpdate(String resourceGroupName,
+ String accountName, String backupPolicyName, ElasticBackupPolicyUpdate body);
+
+ /**
+ * Patch the specified NetApp Elastic Backup Policy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupPolicyName The name of the ElasticBackupPolicy.
+ * @param body The resource properties to be updated.
+ * @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 netApp Elastic Backup Policy resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticBackupPolicyInner> beginUpdate(String resourceGroupName,
+ String accountName, String backupPolicyName, ElasticBackupPolicyUpdate body, Context context);
+
+ /**
+ * Patch the specified NetApp Elastic Backup Policy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupPolicyName The name of the ElasticBackupPolicy.
+ * @param body The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp Elastic Backup Policy resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticBackupPolicyInner update(String resourceGroupName, String accountName, String backupPolicyName,
+ ElasticBackupPolicyUpdate body);
+
+ /**
+ * Patch the specified NetApp Elastic Backup Policy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupPolicyName The name of the ElasticBackupPolicy.
+ * @param body The resource properties to be updated.
+ * @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 netApp Elastic Backup Policy resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticBackupPolicyInner update(String resourceGroupName, String accountName, String backupPolicyName,
+ ElasticBackupPolicyUpdate body, Context context);
+
+ /**
+ * Delete the specified Elastic Policy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupPolicyName The name of the ElasticBackupPolicy.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 accountName,
+ String backupPolicyName);
+
+ /**
+ * Delete the specified Elastic Policy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupPolicyName The name of the ElasticBackupPolicy.
+ * @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 accountName,
+ String backupPolicyName, Context context);
+
+ /**
+ * Delete the specified Elastic Policy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupPolicyName The name of the ElasticBackupPolicy.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 accountName, String backupPolicyName);
+
+ /**
+ * Delete the specified Elastic Policy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupPolicyName The name of the ElasticBackupPolicy.
+ * @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 accountName, String backupPolicyName, Context context);
+
+ /**
+ * List and describe all Elastic Backup Policies in the elastic account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ElasticBackupPolicy list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByElasticAccount(String resourceGroupName, String accountName);
+
+ /**
+ * List and describe all Elastic Backup Policies in the elastic account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ElasticBackupPolicy list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByElasticAccount(String resourceGroupName, String accountName,
+ Context context);
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupVaultsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupVaultsClient.java
new file mode 100644
index 000000000000..7f9dfbb74b56
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupVaultsClient.java
@@ -0,0 +1,269 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.netapp.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.netapp.fluent.models.ElasticBackupVaultInner;
+import com.azure.resourcemanager.netapp.models.ElasticBackupVaultUpdate;
+
+/**
+ * An instance of this class provides access to all the operations defined in ElasticBackupVaultsClient.
+ */
+public interface ElasticBackupVaultsClient {
+ /**
+ * Get the Elastic Backup Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @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 Elastic Backup Vault along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String accountName,
+ String backupVaultName, Context context);
+
+ /**
+ * Get the Elastic Backup Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 Elastic Backup Vault.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticBackupVaultInner get(String resourceGroupName, String accountName, String backupVaultName);
+
+ /**
+ * Create or update the specified Elastic Backup Vault in the Elastic NetApp account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @param body Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of netApp elastic backup vault resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticBackupVaultInner> beginCreateOrUpdate(
+ String resourceGroupName, String accountName, String backupVaultName, ElasticBackupVaultInner body);
+
+ /**
+ * Create or update the specified Elastic Backup Vault in the Elastic NetApp account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @param body Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of netApp elastic backup vault resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticBackupVaultInner> beginCreateOrUpdate(
+ String resourceGroupName, String accountName, String backupVaultName, ElasticBackupVaultInner body,
+ Context context);
+
+ /**
+ * Create or update the specified Elastic Backup Vault in the Elastic NetApp account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @param body Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp elastic backup vault resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticBackupVaultInner createOrUpdate(String resourceGroupName, String accountName, String backupVaultName,
+ ElasticBackupVaultInner body);
+
+ /**
+ * Create or update the specified Elastic Backup Vault in the Elastic NetApp account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @param body Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp elastic backup vault resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticBackupVaultInner createOrUpdate(String resourceGroupName, String accountName, String backupVaultName,
+ ElasticBackupVaultInner body, Context context);
+
+ /**
+ * Patch the specified NetApp Elastic Backup Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @param body The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 netApp elastic backup vault resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticBackupVaultInner> beginUpdate(String resourceGroupName,
+ String accountName, String backupVaultName, ElasticBackupVaultUpdate body);
+
+ /**
+ * Patch the specified NetApp Elastic Backup Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @param body The resource properties to be updated.
+ * @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 netApp elastic backup vault resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticBackupVaultInner> beginUpdate(String resourceGroupName,
+ String accountName, String backupVaultName, ElasticBackupVaultUpdate body, Context context);
+
+ /**
+ * Patch the specified NetApp Elastic Backup Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @param body The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp elastic backup vault resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticBackupVaultInner update(String resourceGroupName, String accountName, String backupVaultName,
+ ElasticBackupVaultUpdate body);
+
+ /**
+ * Patch the specified NetApp Elastic Backup Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @param body The resource properties to be updated.
+ * @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 netApp elastic backup vault resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticBackupVaultInner update(String resourceGroupName, String accountName, String backupVaultName,
+ ElasticBackupVaultUpdate body, Context context);
+
+ /**
+ * Delete the specified Elastic Backup Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 accountName,
+ String backupVaultName);
+
+ /**
+ * Delete the specified Elastic Backup Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @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 accountName, String backupVaultName,
+ Context context);
+
+ /**
+ * Delete the specified Elastic Backup Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 accountName, String backupVaultName);
+
+ /**
+ * Delete the specified Elastic Backup Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @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 accountName, String backupVaultName, Context context);
+
+ /**
+ * List and describe all Elastic Backup Vaults in the elastic account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ElasticBackupVault list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByElasticAccount(String resourceGroupName, String accountName);
+
+ /**
+ * List and describe all Elastic Backup Vaults in the elastic account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ElasticBackupVault list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByElasticAccount(String resourceGroupName, String accountName,
+ Context context);
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupsClient.java
new file mode 100644
index 000000000000..ea1cbfc596b4
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupsClient.java
@@ -0,0 +1,284 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.netapp.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.netapp.fluent.models.ElasticBackupInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ElasticBackupsClient.
+ */
+public interface ElasticBackupsClient {
+ /**
+ * Get the specified Elastic Backup under Elastic Backup Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @param backupName The name of the ElasticBackup.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Elastic Backup under Elastic Backup Vault along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String accountName, String backupVaultName,
+ String backupName, Context context);
+
+ /**
+ * Get the specified Elastic Backup under Elastic Backup Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @param backupName The name of the ElasticBackup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Elastic Backup under Elastic Backup Vault.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticBackupInner get(String resourceGroupName, String accountName, String backupVaultName, String backupName);
+
+ /**
+ * Create an elastic backup under the elastic Backup Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @param backupName The name of the ElasticBackup.
+ * @param body Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of netApp Elastic Backup under an elastic Backup Vault.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticBackupInner> beginCreateOrUpdate(String resourceGroupName,
+ String accountName, String backupVaultName, String backupName, ElasticBackupInner body);
+
+ /**
+ * Create an elastic backup under the elastic Backup Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @param backupName The name of the ElasticBackup.
+ * @param body Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of netApp Elastic Backup under an elastic Backup Vault.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticBackupInner> beginCreateOrUpdate(String resourceGroupName,
+ String accountName, String backupVaultName, String backupName, ElasticBackupInner body, Context context);
+
+ /**
+ * Create an elastic backup under the elastic Backup Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @param backupName The name of the ElasticBackup.
+ * @param body Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp Elastic Backup under an elastic Backup Vault.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticBackupInner createOrUpdate(String resourceGroupName, String accountName, String backupVaultName,
+ String backupName, ElasticBackupInner body);
+
+ /**
+ * Create an elastic backup under the elastic Backup Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @param backupName The name of the ElasticBackup.
+ * @param body Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp Elastic Backup under an elastic Backup Vault.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticBackupInner createOrUpdate(String resourceGroupName, String accountName, String backupVaultName,
+ String backupName, ElasticBackupInner body, Context context);
+
+ /**
+ * Patch an elastic Backup under the Elastic Backup Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @param backupName The name of the ElasticBackup.
+ * @param body The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 netApp Elastic Backup under an elastic Backup Vault.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticBackupInner> beginUpdate(String resourceGroupName,
+ String accountName, String backupVaultName, String backupName, ElasticBackupInner body);
+
+ /**
+ * Patch an elastic Backup under the Elastic Backup Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @param backupName The name of the ElasticBackup.
+ * @param body The resource properties to be updated.
+ * @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 netApp Elastic Backup under an elastic Backup Vault.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticBackupInner> beginUpdate(String resourceGroupName,
+ String accountName, String backupVaultName, String backupName, ElasticBackupInner body, Context context);
+
+ /**
+ * Patch an elastic Backup under the Elastic Backup Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @param backupName The name of the ElasticBackup.
+ * @param body The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp Elastic Backup under an elastic Backup Vault.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticBackupInner update(String resourceGroupName, String accountName, String backupVaultName, String backupName,
+ ElasticBackupInner body);
+
+ /**
+ * Patch an elastic Backup under the Elastic Backup Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @param backupName The name of the ElasticBackup.
+ * @param body The resource properties to be updated.
+ * @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 netApp Elastic Backup under an elastic Backup Vault.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticBackupInner update(String resourceGroupName, String accountName, String backupVaultName, String backupName,
+ ElasticBackupInner body, Context context);
+
+ /**
+ * Delete a ElasticBackup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @param backupName The name of the ElasticBackup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 accountName, String backupVaultName,
+ String backupName);
+
+ /**
+ * Delete a ElasticBackup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @param backupName The name of the ElasticBackup.
+ * @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 accountName, String backupVaultName,
+ String backupName, Context context);
+
+ /**
+ * Delete a ElasticBackup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @param backupName The name of the ElasticBackup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 accountName, String backupVaultName, String backupName);
+
+ /**
+ * Delete a ElasticBackup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @param backupName The name of the ElasticBackup.
+ * @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 accountName, String backupVaultName, String backupName,
+ Context context);
+
+ /**
+ * List all elastic backups Under an elastic Backup Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ElasticBackup list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByVault(String resourceGroupName, String accountName, String backupVaultName);
+
+ /**
+ * List all elastic backups Under an elastic Backup Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param backupVaultName The name of the ElasticBackupVault.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ElasticBackup list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByVault(String resourceGroupName, String accountName, String backupVaultName,
+ Context context);
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticCapacityPoolsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticCapacityPoolsClient.java
new file mode 100644
index 000000000000..bdf6643876d8
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticCapacityPoolsClient.java
@@ -0,0 +1,370 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.netapp.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.netapp.fluent.models.CheckElasticResourceAvailabilityResponseInner;
+import com.azure.resourcemanager.netapp.fluent.models.ElasticCapacityPoolInner;
+import com.azure.resourcemanager.netapp.models.ChangeZoneRequest;
+import com.azure.resourcemanager.netapp.models.CheckElasticVolumeFilePathAvailabilityRequest;
+import com.azure.resourcemanager.netapp.models.ElasticCapacityPoolUpdate;
+
+/**
+ * An instance of this class provides access to all the operations defined in ElasticCapacityPoolsClient.
+ */
+public interface ElasticCapacityPoolsClient {
+ /**
+ * Get the NetApp Elastic Capacity Pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @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 NetApp Elastic Capacity Pool along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String accountName, String poolName,
+ Context context);
+
+ /**
+ * Get the NetApp Elastic Capacity Pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 NetApp Elastic Capacity Pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticCapacityPoolInner get(String resourceGroupName, String accountName, String poolName);
+
+ /**
+ * Create or update the specified NetApp Elastic Capacity Pool within the resource group and NetApp Elastic Account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param body Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of netApp Elastic Capacity Pool resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticCapacityPoolInner> beginCreateOrUpdate(
+ String resourceGroupName, String accountName, String poolName, ElasticCapacityPoolInner body);
+
+ /**
+ * Create or update the specified NetApp Elastic Capacity Pool within the resource group and NetApp Elastic Account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param body Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of netApp Elastic Capacity Pool resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticCapacityPoolInner> beginCreateOrUpdate(
+ String resourceGroupName, String accountName, String poolName, ElasticCapacityPoolInner body, Context context);
+
+ /**
+ * Create or update the specified NetApp Elastic Capacity Pool within the resource group and NetApp Elastic Account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param body Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp Elastic Capacity Pool resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticCapacityPoolInner createOrUpdate(String resourceGroupName, String accountName, String poolName,
+ ElasticCapacityPoolInner body);
+
+ /**
+ * Create or update the specified NetApp Elastic Capacity Pool within the resource group and NetApp Elastic Account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param body Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp Elastic Capacity Pool resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticCapacityPoolInner createOrUpdate(String resourceGroupName, String accountName, String poolName,
+ ElasticCapacityPoolInner body, Context context);
+
+ /**
+ * Patch the specified NetApp Elastic Capacity Pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param body The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 netApp Elastic Capacity Pool resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticCapacityPoolInner> beginUpdate(String resourceGroupName,
+ String accountName, String poolName, ElasticCapacityPoolUpdate body);
+
+ /**
+ * Patch the specified NetApp Elastic Capacity Pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param body The resource properties to be updated.
+ * @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 netApp Elastic Capacity Pool resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticCapacityPoolInner> beginUpdate(String resourceGroupName,
+ String accountName, String poolName, ElasticCapacityPoolUpdate body, Context context);
+
+ /**
+ * Patch the specified NetApp Elastic Capacity Pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param body The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp Elastic Capacity Pool resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticCapacityPoolInner update(String resourceGroupName, String accountName, String poolName,
+ ElasticCapacityPoolUpdate body);
+
+ /**
+ * Patch the specified NetApp Elastic Capacity Pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param body The resource properties to be updated.
+ * @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 netApp Elastic Capacity Pool resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticCapacityPoolInner update(String resourceGroupName, String accountName, String poolName,
+ ElasticCapacityPoolUpdate body, Context context);
+
+ /**
+ * Delete the specified NetApp Elastic Capacity Pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 accountName, String poolName);
+
+ /**
+ * Delete the specified NetApp Elastic Capacity Pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @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 accountName, String poolName,
+ Context context);
+
+ /**
+ * Delete the specified NetApp Elastic Capacity Pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 accountName, String poolName);
+
+ /**
+ * Delete the specified NetApp Elastic Capacity Pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @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 accountName, String poolName, Context context);
+
+ /**
+ * List and describe all NetApp Elastic Capacity Pools in the Elastic NetApp Account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ElasticCapacityPool list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByElasticAccount(String resourceGroupName, String accountName);
+
+ /**
+ * List and describe all NetApp Elastic Capacity Pools in the Elastic NetApp Account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ElasticCapacityPool list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByElasticAccount(String resourceGroupName, String accountName,
+ Context context);
+
+ /**
+ * Moves pool to another zone.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 netApp Elastic Capacity Pool resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticCapacityPoolInner> beginChangeZone(String resourceGroupName,
+ String accountName, String poolName, ChangeZoneRequest body);
+
+ /**
+ * Moves pool to another zone.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param body The content of the action request.
+ * @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 netApp Elastic Capacity Pool resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticCapacityPoolInner> beginChangeZone(String resourceGroupName,
+ String accountName, String poolName, ChangeZoneRequest body, Context context);
+
+ /**
+ * Moves pool to another zone.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp Elastic Capacity Pool resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticCapacityPoolInner changeZone(String resourceGroupName, String accountName, String poolName,
+ ChangeZoneRequest body);
+
+ /**
+ * Moves pool to another zone.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param body The content of the action request.
+ * @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 netApp Elastic Capacity Pool resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticCapacityPoolInner changeZone(String resourceGroupName, String accountName, String poolName,
+ ChangeZoneRequest body, Context context);
+
+ /**
+ * Check if an Elastic Volume file path is available within the given Elastic Capacity Pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information regarding availability of a resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkVolumeFilePathAvailabilityWithResponse(
+ String resourceGroupName, String accountName, String poolName,
+ CheckElasticVolumeFilePathAvailabilityRequest body, Context context);
+
+ /**
+ * Check if an Elastic Volume file path is available within the given Elastic Capacity Pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information regarding availability of a resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CheckElasticResourceAvailabilityResponseInner checkVolumeFilePathAvailability(String resourceGroupName,
+ String accountName, String poolName, CheckElasticVolumeFilePathAvailabilityRequest body);
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticSnapshotPoliciesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticSnapshotPoliciesClient.java
new file mode 100644
index 000000000000..062bc0b19bb4
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticSnapshotPoliciesClient.java
@@ -0,0 +1,301 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.netapp.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.netapp.fluent.models.ElasticSnapshotPolicyInner;
+import com.azure.resourcemanager.netapp.fluent.models.ElasticVolumeInner;
+import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyUpdate;
+
+/**
+ * An instance of this class provides access to all the operations defined in ElasticSnapshotPoliciesClient.
+ */
+public interface ElasticSnapshotPoliciesClient {
+ /**
+ * Get a ElasticSnapshotPolicy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param snapshotPolicyName The name of the ElasticSnapshotPolicy.
+ * @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 ElasticSnapshotPolicy along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String accountName,
+ String snapshotPolicyName, Context context);
+
+ /**
+ * Get a ElasticSnapshotPolicy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param snapshotPolicyName The name of the ElasticSnapshotPolicy.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 ElasticSnapshotPolicy.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticSnapshotPolicyInner get(String resourceGroupName, String accountName, String snapshotPolicyName);
+
+ /**
+ * Create a ElasticSnapshotPolicy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param snapshotPolicyName The name of the ElasticSnapshotPolicy.
+ * @param body Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of netApp Elastic Snapshot Policy under an Elastic Account.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticSnapshotPolicyInner> beginCreateOrUpdate(
+ String resourceGroupName, String accountName, String snapshotPolicyName, ElasticSnapshotPolicyInner body);
+
+ /**
+ * Create a ElasticSnapshotPolicy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param snapshotPolicyName The name of the ElasticSnapshotPolicy.
+ * @param body Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of netApp Elastic Snapshot Policy under an Elastic Account.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticSnapshotPolicyInner> beginCreateOrUpdate(
+ String resourceGroupName, String accountName, String snapshotPolicyName, ElasticSnapshotPolicyInner body,
+ Context context);
+
+ /**
+ * Create a ElasticSnapshotPolicy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param snapshotPolicyName The name of the ElasticSnapshotPolicy.
+ * @param body Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp Elastic Snapshot Policy under an Elastic Account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticSnapshotPolicyInner createOrUpdate(String resourceGroupName, String accountName, String snapshotPolicyName,
+ ElasticSnapshotPolicyInner body);
+
+ /**
+ * Create a ElasticSnapshotPolicy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param snapshotPolicyName The name of the ElasticSnapshotPolicy.
+ * @param body Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp Elastic Snapshot Policy under an Elastic Account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticSnapshotPolicyInner createOrUpdate(String resourceGroupName, String accountName, String snapshotPolicyName,
+ ElasticSnapshotPolicyInner body, Context context);
+
+ /**
+ * Update a ElasticSnapshotPolicy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param snapshotPolicyName The name of the ElasticSnapshotPolicy.
+ * @param body The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 netApp Elastic Snapshot Policy under an Elastic Account.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticSnapshotPolicyInner> beginUpdate(String resourceGroupName,
+ String accountName, String snapshotPolicyName, ElasticSnapshotPolicyUpdate body);
+
+ /**
+ * Update a ElasticSnapshotPolicy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param snapshotPolicyName The name of the ElasticSnapshotPolicy.
+ * @param body The resource properties to be updated.
+ * @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 netApp Elastic Snapshot Policy under an Elastic Account.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticSnapshotPolicyInner> beginUpdate(String resourceGroupName,
+ String accountName, String snapshotPolicyName, ElasticSnapshotPolicyUpdate body, Context context);
+
+ /**
+ * Update a ElasticSnapshotPolicy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param snapshotPolicyName The name of the ElasticSnapshotPolicy.
+ * @param body The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp Elastic Snapshot Policy under an Elastic Account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticSnapshotPolicyInner update(String resourceGroupName, String accountName, String snapshotPolicyName,
+ ElasticSnapshotPolicyUpdate body);
+
+ /**
+ * Update a ElasticSnapshotPolicy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param snapshotPolicyName The name of the ElasticSnapshotPolicy.
+ * @param body The resource properties to be updated.
+ * @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 netApp Elastic Snapshot Policy under an Elastic Account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticSnapshotPolicyInner update(String resourceGroupName, String accountName, String snapshotPolicyName,
+ ElasticSnapshotPolicyUpdate body, Context context);
+
+ /**
+ * Delete a ElasticSnapshotPolicy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param snapshotPolicyName The name of the ElasticSnapshotPolicy.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 accountName,
+ String snapshotPolicyName);
+
+ /**
+ * Delete a ElasticSnapshotPolicy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param snapshotPolicyName The name of the ElasticSnapshotPolicy.
+ * @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 accountName,
+ String snapshotPolicyName, Context context);
+
+ /**
+ * Delete a ElasticSnapshotPolicy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param snapshotPolicyName The name of the ElasticSnapshotPolicy.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 accountName, String snapshotPolicyName);
+
+ /**
+ * Delete a ElasticSnapshotPolicy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param snapshotPolicyName The name of the ElasticSnapshotPolicy.
+ * @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 accountName, String snapshotPolicyName, Context context);
+
+ /**
+ * List ElasticSnapshotPolicy resources by ElasticAccount.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ElasticSnapshotPolicy list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByElasticAccount(String resourceGroupName, String accountName);
+
+ /**
+ * List ElasticSnapshotPolicy resources by ElasticAccount.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ElasticSnapshotPolicy list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByElasticAccount(String resourceGroupName, String accountName,
+ Context context);
+
+ /**
+ * Get elastic volumes associated with Elastic Snapshot Policy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param snapshotPolicyName The name of the ElasticSnapshotPolicy.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return elastic volumes associated with Elastic Snapshot Policy as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listElasticVolumes(String resourceGroupName, String accountName,
+ String snapshotPolicyName);
+
+ /**
+ * Get elastic volumes associated with Elastic Snapshot Policy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param snapshotPolicyName The name of the ElasticSnapshotPolicy.
+ * @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 elastic volumes associated with Elastic Snapshot Policy as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listElasticVolumes(String resourceGroupName, String accountName,
+ String snapshotPolicyName, Context context);
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticSnapshotsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticSnapshotsClient.java
new file mode 100644
index 000000000000..b2021a544dba
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticSnapshotsClient.java
@@ -0,0 +1,229 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.netapp.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.netapp.fluent.models.ElasticSnapshotInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ElasticSnapshotsClient.
+ */
+public interface ElasticSnapshotsClient {
+ /**
+ * Get a ElasticSnapshot.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @param snapshotName The name of the ElasticSnapshot.
+ * @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 ElasticSnapshot along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String accountName, String poolName,
+ String volumeName, String snapshotName, Context context);
+
+ /**
+ * Get a ElasticSnapshot.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @param snapshotName The name of the ElasticSnapshot.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 ElasticSnapshot.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticSnapshotInner get(String resourceGroupName, String accountName, String poolName, String volumeName,
+ String snapshotName);
+
+ /**
+ * Create a ElasticSnapshot.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @param snapshotName The name of the ElasticSnapshot.
+ * @param body Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of netApp Elastic Snapshot under an Elastic Volume.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticSnapshotInner> beginCreateOrUpdate(String resourceGroupName,
+ String accountName, String poolName, String volumeName, String snapshotName, ElasticSnapshotInner body);
+
+ /**
+ * Create a ElasticSnapshot.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @param snapshotName The name of the ElasticSnapshot.
+ * @param body Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of netApp Elastic Snapshot under an Elastic Volume.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticSnapshotInner> beginCreateOrUpdate(String resourceGroupName,
+ String accountName, String poolName, String volumeName, String snapshotName, ElasticSnapshotInner body,
+ Context context);
+
+ /**
+ * Create a ElasticSnapshot.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @param snapshotName The name of the ElasticSnapshot.
+ * @param body Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp Elastic Snapshot under an Elastic Volume.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticSnapshotInner createOrUpdate(String resourceGroupName, String accountName, String poolName,
+ String volumeName, String snapshotName, ElasticSnapshotInner body);
+
+ /**
+ * Create a ElasticSnapshot.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @param snapshotName The name of the ElasticSnapshot.
+ * @param body Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp Elastic Snapshot under an Elastic Volume.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticSnapshotInner createOrUpdate(String resourceGroupName, String accountName, String poolName,
+ String volumeName, String snapshotName, ElasticSnapshotInner body, Context context);
+
+ /**
+ * Delete a ElasticSnapshot.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @param snapshotName The name of the ElasticSnapshot.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 accountName, String poolName,
+ String volumeName, String snapshotName);
+
+ /**
+ * Delete a ElasticSnapshot.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @param snapshotName The name of the ElasticSnapshot.
+ * @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 accountName, String poolName,
+ String volumeName, String snapshotName, Context context);
+
+ /**
+ * Delete a ElasticSnapshot.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @param snapshotName The name of the ElasticSnapshot.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 accountName, String poolName, String volumeName, String snapshotName);
+
+ /**
+ * Delete a ElasticSnapshot.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @param snapshotName The name of the ElasticSnapshot.
+ * @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 accountName, String poolName, String volumeName, String snapshotName,
+ Context context);
+
+ /**
+ * List ElasticSnapshot resources by ElasticVolume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ElasticSnapshot list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByElasticVolume(String resourceGroupName, String accountName,
+ String poolName, String volumeName);
+
+ /**
+ * List ElasticSnapshot resources by ElasticVolume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ElasticSnapshot list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByElasticVolume(String resourceGroupName, String accountName,
+ String poolName, String volumeName, Context context);
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticVolumesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticVolumesClient.java
new file mode 100644
index 000000000000..b273fd6e03d0
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticVolumesClient.java
@@ -0,0 +1,355 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.netapp.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.netapp.fluent.models.ElasticVolumeInner;
+import com.azure.resourcemanager.netapp.models.ElasticVolumeRevert;
+import com.azure.resourcemanager.netapp.models.ElasticVolumeUpdate;
+
+/**
+ * An instance of this class provides access to all the operations defined in ElasticVolumesClient.
+ */
+public interface ElasticVolumesClient {
+ /**
+ * Get the details of the specified volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @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 details of the specified volume along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String accountName, String poolName,
+ String volumeName, Context context);
+
+ /**
+ * Get the details of the specified volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 details of the specified volume.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticVolumeInner get(String resourceGroupName, String accountName, String poolName, String volumeName);
+
+ /**
+ * Create or update the specified volume within the capacity pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @param body Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of netApp Elastic Volume resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticVolumeInner> beginCreateOrUpdate(String resourceGroupName,
+ String accountName, String poolName, String volumeName, ElasticVolumeInner body);
+
+ /**
+ * Create or update the specified volume within the capacity pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @param body Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of netApp Elastic Volume resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticVolumeInner> beginCreateOrUpdate(String resourceGroupName,
+ String accountName, String poolName, String volumeName, ElasticVolumeInner body, Context context);
+
+ /**
+ * Create or update the specified volume within the capacity pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @param body Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp Elastic Volume resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticVolumeInner createOrUpdate(String resourceGroupName, String accountName, String poolName, String volumeName,
+ ElasticVolumeInner body);
+
+ /**
+ * Create or update the specified volume within the capacity pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @param body Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp Elastic Volume resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticVolumeInner createOrUpdate(String resourceGroupName, String accountName, String poolName, String volumeName,
+ ElasticVolumeInner body, Context context);
+
+ /**
+ * Patch the specified elastic volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @param body The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 netApp Elastic Volume resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticVolumeInner> beginUpdate(String resourceGroupName,
+ String accountName, String poolName, String volumeName, ElasticVolumeUpdate body);
+
+ /**
+ * Patch the specified elastic volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @param body The resource properties to be updated.
+ * @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 netApp Elastic Volume resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticVolumeInner> beginUpdate(String resourceGroupName,
+ String accountName, String poolName, String volumeName, ElasticVolumeUpdate body, Context context);
+
+ /**
+ * Patch the specified elastic volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @param body The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp Elastic Volume resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticVolumeInner update(String resourceGroupName, String accountName, String poolName, String volumeName,
+ ElasticVolumeUpdate body);
+
+ /**
+ * Patch the specified elastic volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @param body The resource properties to be updated.
+ * @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 netApp Elastic Volume resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticVolumeInner update(String resourceGroupName, String accountName, String poolName, String volumeName,
+ ElasticVolumeUpdate body, Context context);
+
+ /**
+ * Delete the specified Elastic Volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 accountName, String poolName,
+ String volumeName);
+
+ /**
+ * Delete the specified Elastic Volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @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 accountName, String poolName,
+ String volumeName, Context context);
+
+ /**
+ * Delete the specified Elastic Volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 accountName, String poolName, String volumeName);
+
+ /**
+ * Delete the specified Elastic Volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @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 accountName, String poolName, String volumeName, Context context);
+
+ /**
+ * List all Elastic Volumes within the Elastic Capacity Pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ElasticVolume list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByElasticPool(String resourceGroupName, String accountName, String poolName);
+
+ /**
+ * List all Elastic Volumes within the Elastic Capacity Pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ElasticVolume list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByElasticPool(String resourceGroupName, String accountName, String poolName,
+ Context context);
+
+ /**
+ * Revert an Elastic Volume to the snapshot specified in the body.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 netApp Elastic Volume resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticVolumeInner> beginRevert(String resourceGroupName,
+ String accountName, String poolName, String volumeName, ElasticVolumeRevert body);
+
+ /**
+ * Revert an Elastic Volume to the snapshot specified in the body.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @param body The content of the action request.
+ * @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 netApp Elastic Volume resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ElasticVolumeInner> beginRevert(String resourceGroupName,
+ String accountName, String poolName, String volumeName, ElasticVolumeRevert body, Context context);
+
+ /**
+ * Revert an Elastic Volume to the snapshot specified in the body.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return netApp Elastic Volume resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticVolumeInner revert(String resourceGroupName, String accountName, String poolName, String volumeName,
+ ElasticVolumeRevert body);
+
+ /**
+ * Revert an Elastic Volume to the snapshot specified in the body.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the ElasticAccount.
+ * @param poolName The name of the ElasticCapacityPool.
+ * @param volumeName The name of the ElasticVolume.
+ * @param body The content of the action request.
+ * @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 netApp Elastic Volume resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticVolumeInner revert(String resourceGroupName, String accountName, String poolName, String volumeName,
+ ElasticVolumeRevert body, Context context);
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java
index 39883afaff97..57bd68b86eac 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java
@@ -137,6 +137,69 @@ public interface NetAppManagementClient {
*/
CachesClient getCaches();
+ /**
+ * Gets the ElasticAccountsClient object to access its operations.
+ *
+ * @return the ElasticAccountsClient object.
+ */
+ ElasticAccountsClient getElasticAccounts();
+
+ /**
+ * Gets the ElasticCapacityPoolsClient object to access its operations.
+ *
+ * @return the ElasticCapacityPoolsClient object.
+ */
+ ElasticCapacityPoolsClient getElasticCapacityPools();
+
+ /**
+ * Gets the ElasticVolumesClient object to access its operations.
+ *
+ * @return the ElasticVolumesClient object.
+ */
+ ElasticVolumesClient getElasticVolumes();
+
+ /**
+ * Gets the ElasticSnapshotsClient object to access its operations.
+ *
+ * @return the ElasticSnapshotsClient object.
+ */
+ ElasticSnapshotsClient getElasticSnapshots();
+
+ /**
+ * Gets the ElasticSnapshotPoliciesClient object to access its operations.
+ *
+ * @return the ElasticSnapshotPoliciesClient object.
+ */
+ ElasticSnapshotPoliciesClient getElasticSnapshotPolicies();
+
+ /**
+ * Gets the ElasticBackupVaultsClient object to access its operations.
+ *
+ * @return the ElasticBackupVaultsClient object.
+ */
+ ElasticBackupVaultsClient getElasticBackupVaults();
+
+ /**
+ * Gets the ElasticBackupPoliciesClient object to access its operations.
+ *
+ * @return the ElasticBackupPoliciesClient object.
+ */
+ ElasticBackupPoliciesClient getElasticBackupPolicies();
+
+ /**
+ * Gets the ElasticBackupsClient object to access its operations.
+ *
+ * @return the ElasticBackupsClient object.
+ */
+ ElasticBackupsClient getElasticBackups();
+
+ /**
+ * Gets the ActiveDirectoryConfigsClient object to access its operations.
+ *
+ * @return the ActiveDirectoryConfigsClient object.
+ */
+ ActiveDirectoryConfigsClient getActiveDirectoryConfigs();
+
/**
* Gets the NetAppResourceQuotaLimitsClient object to access its operations.
*
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java
index 667ce9fe0bd8..27e42ab8104f 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java
@@ -11,6 +11,8 @@
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.netapp.models.AccountEncryption;
import com.azure.resourcemanager.netapp.models.ActiveDirectory;
+import com.azure.resourcemanager.netapp.models.EntraIdConfig;
+import com.azure.resourcemanager.netapp.models.LdapConfiguration;
import com.azure.resourcemanager.netapp.models.MultiAdStatus;
import java.io.IOException;
import java.util.List;
@@ -30,6 +32,11 @@ public final class AccountProperties implements JsonSerializable activeDirectories;
+ /*
+ * Entra ID configuration for the account.
+ */
+ private EntraIdConfig entraIdConfig;
+
/*
* Encryption settings
*/
@@ -51,6 +58,11 @@ public final class AccountProperties implements JsonSerializable activeDirec
return this;
}
+ /**
+ * Get the entraIdConfig property: Entra ID configuration for the account.
+ *
+ * @return the entraIdConfig value.
+ */
+ public EntraIdConfig entraIdConfig() {
+ return this.entraIdConfig;
+ }
+
+ /**
+ * Set the entraIdConfig property: Entra ID configuration for the account.
+ *
+ * @param entraIdConfig the entraIdConfig value to set.
+ * @return the AccountProperties object itself.
+ */
+ public AccountProperties withEntraIdConfig(EntraIdConfig entraIdConfig) {
+ this.entraIdConfig = entraIdConfig;
+ return this;
+ }
+
/**
* Get the encryption property: Encryption settings.
*
@@ -147,6 +179,26 @@ public MultiAdStatus multiAdStatus() {
return this.multiAdStatus;
}
+ /**
+ * Get the ldapConfiguration property: LDAP Configuration for the account.
+ *
+ * @return the ldapConfiguration value.
+ */
+ public LdapConfiguration ldapConfiguration() {
+ return this.ldapConfiguration;
+ }
+
+ /**
+ * Set the ldapConfiguration property: LDAP Configuration for the account.
+ *
+ * @param ldapConfiguration the ldapConfiguration value to set.
+ * @return the AccountProperties object itself.
+ */
+ public AccountProperties withLdapConfiguration(LdapConfiguration ldapConfiguration) {
+ this.ldapConfiguration = ldapConfiguration;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -156,9 +208,15 @@ public void validate() {
if (activeDirectories() != null) {
activeDirectories().forEach(e -> e.validate());
}
+ if (entraIdConfig() != null) {
+ entraIdConfig().validate();
+ }
if (encryption() != null) {
encryption().validate();
}
+ if (ldapConfiguration() != null) {
+ ldapConfiguration().validate();
+ }
}
/**
@@ -169,8 +227,10 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeArrayField("activeDirectories", this.activeDirectories,
(writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("entraIdConfig", this.entraIdConfig);
jsonWriter.writeJsonField("encryption", this.encryption);
jsonWriter.writeStringField("nfsV4IDDomain", this.nfsV4IdDomain);
+ jsonWriter.writeJsonField("ldapConfiguration", this.ldapConfiguration);
return jsonWriter.writeEndObject();
}
@@ -195,6 +255,8 @@ public static AccountProperties fromJson(JsonReader jsonReader) throws IOExcepti
List activeDirectories
= reader.readArray(reader1 -> ActiveDirectory.fromJson(reader1));
deserializedAccountProperties.activeDirectories = activeDirectories;
+ } else if ("entraIdConfig".equals(fieldName)) {
+ deserializedAccountProperties.entraIdConfig = EntraIdConfig.fromJson(reader);
} else if ("encryption".equals(fieldName)) {
deserializedAccountProperties.encryption = AccountEncryption.fromJson(reader);
} else if ("disableShowmount".equals(fieldName)) {
@@ -203,6 +265,8 @@ public static AccountProperties fromJson(JsonReader jsonReader) throws IOExcepti
deserializedAccountProperties.nfsV4IdDomain = reader.getString();
} else if ("multiAdStatus".equals(fieldName)) {
deserializedAccountProperties.multiAdStatus = MultiAdStatus.fromString(reader.getString());
+ } else if ("ldapConfiguration".equals(fieldName)) {
+ deserializedAccountProperties.ldapConfiguration = LdapConfiguration.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountPropertiesPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountPropertiesPatch.java
new file mode 100644
index 000000000000..fa5e77c84b13
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountPropertiesPatch.java
@@ -0,0 +1,228 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.netapp.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.netapp.models.AccountEncryption;
+import com.azure.resourcemanager.netapp.models.ActiveDirectory;
+import com.azure.resourcemanager.netapp.models.EntraIdConfigPatch;
+import com.azure.resourcemanager.netapp.models.LdapConfigurationPatch;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * NetApp account patch properties.
+ */
+@Fluent
+public final class AccountPropertiesPatch implements JsonSerializable {
+ /*
+ * Active Directories
+ */
+ private List activeDirectories;
+
+ /*
+ * Encryption settings
+ */
+ private AccountEncryption encryption;
+
+ /*
+ * Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and
+ * region and only affect non ldap NFSv4 volumes.
+ */
+ private String nfsV4IdDomain;
+
+ /*
+ * Entra ID configuration for the account.
+ */
+ private EntraIdConfigPatch entraIdConfig;
+
+ /*
+ * LDAP Configuration for the account.
+ */
+ private LdapConfigurationPatch ldapConfiguration;
+
+ /**
+ * Creates an instance of AccountPropertiesPatch class.
+ */
+ public AccountPropertiesPatch() {
+ }
+
+ /**
+ * Get the activeDirectories property: Active Directories.
+ *
+ * @return the activeDirectories value.
+ */
+ public List activeDirectories() {
+ return this.activeDirectories;
+ }
+
+ /**
+ * Set the activeDirectories property: Active Directories.
+ *
+ * @param activeDirectories the activeDirectories value to set.
+ * @return the AccountPropertiesPatch object itself.
+ */
+ public AccountPropertiesPatch withActiveDirectories(List activeDirectories) {
+ this.activeDirectories = activeDirectories;
+ return this;
+ }
+
+ /**
+ * Get the encryption property: Encryption settings.
+ *
+ * @return the encryption value.
+ */
+ public AccountEncryption encryption() {
+ return this.encryption;
+ }
+
+ /**
+ * Set the encryption property: Encryption settings.
+ *
+ * @param encryption the encryption value to set.
+ * @return the AccountPropertiesPatch object itself.
+ */
+ public AccountPropertiesPatch withEncryption(AccountEncryption encryption) {
+ this.encryption = encryption;
+ return this;
+ }
+
+ /**
+ * Get the nfsV4IdDomain property: Domain for NFSv4 user ID mapping. This property will be set for all NetApp
+ * accounts in the subscription and region and only affect non ldap NFSv4 volumes.
+ *
+ * @return the nfsV4IdDomain value.
+ */
+ public String nfsV4IdDomain() {
+ return this.nfsV4IdDomain;
+ }
+
+ /**
+ * Set the nfsV4IdDomain property: Domain for NFSv4 user ID mapping. This property will be set for all NetApp
+ * accounts in the subscription and region and only affect non ldap NFSv4 volumes.
+ *
+ * @param nfsV4IdDomain the nfsV4IdDomain value to set.
+ * @return the AccountPropertiesPatch object itself.
+ */
+ public AccountPropertiesPatch withNfsV4IdDomain(String nfsV4IdDomain) {
+ this.nfsV4IdDomain = nfsV4IdDomain;
+ return this;
+ }
+
+ /**
+ * Get the entraIdConfig property: Entra ID configuration for the account.
+ *
+ * @return the entraIdConfig value.
+ */
+ public EntraIdConfigPatch entraIdConfig() {
+ return this.entraIdConfig;
+ }
+
+ /**
+ * Set the entraIdConfig property: Entra ID configuration for the account.
+ *
+ * @param entraIdConfig the entraIdConfig value to set.
+ * @return the AccountPropertiesPatch object itself.
+ */
+ public AccountPropertiesPatch withEntraIdConfig(EntraIdConfigPatch entraIdConfig) {
+ this.entraIdConfig = entraIdConfig;
+ return this;
+ }
+
+ /**
+ * Get the ldapConfiguration property: LDAP Configuration for the account.
+ *
+ * @return the ldapConfiguration value.
+ */
+ public LdapConfigurationPatch ldapConfiguration() {
+ return this.ldapConfiguration;
+ }
+
+ /**
+ * Set the ldapConfiguration property: LDAP Configuration for the account.
+ *
+ * @param ldapConfiguration the ldapConfiguration value to set.
+ * @return the AccountPropertiesPatch object itself.
+ */
+ public AccountPropertiesPatch withLdapConfiguration(LdapConfigurationPatch ldapConfiguration) {
+ this.ldapConfiguration = ldapConfiguration;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (activeDirectories() != null) {
+ activeDirectories().forEach(e -> e.validate());
+ }
+ if (encryption() != null) {
+ encryption().validate();
+ }
+ if (entraIdConfig() != null) {
+ entraIdConfig().validate();
+ }
+ if (ldapConfiguration() != null) {
+ ldapConfiguration().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("activeDirectories", this.activeDirectories,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("encryption", this.encryption);
+ jsonWriter.writeStringField("nfsV4IDDomain", this.nfsV4IdDomain);
+ jsonWriter.writeJsonField("entraIdConfig", this.entraIdConfig);
+ jsonWriter.writeJsonField("ldapConfiguration", this.ldapConfiguration);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AccountPropertiesPatch from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AccountPropertiesPatch if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the AccountPropertiesPatch.
+ */
+ public static AccountPropertiesPatch fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AccountPropertiesPatch deserializedAccountPropertiesPatch = new AccountPropertiesPatch();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("activeDirectories".equals(fieldName)) {
+ List activeDirectories
+ = reader.readArray(reader1 -> ActiveDirectory.fromJson(reader1));
+ deserializedAccountPropertiesPatch.activeDirectories = activeDirectories;
+ } else if ("encryption".equals(fieldName)) {
+ deserializedAccountPropertiesPatch.encryption = AccountEncryption.fromJson(reader);
+ } else if ("nfsV4IDDomain".equals(fieldName)) {
+ deserializedAccountPropertiesPatch.nfsV4IdDomain = reader.getString();
+ } else if ("entraIdConfig".equals(fieldName)) {
+ deserializedAccountPropertiesPatch.entraIdConfig = EntraIdConfigPatch.fromJson(reader);
+ } else if ("ldapConfiguration".equals(fieldName)) {
+ deserializedAccountPropertiesPatch.ldapConfiguration = LdapConfigurationPatch.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAccountPropertiesPatch;
+ });
+ }
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ActiveDirectoryConfigInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ActiveDirectoryConfigInner.java
new file mode 100644
index 000000000000..fdbfdf2c2060
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ActiveDirectoryConfigInner.java
@@ -0,0 +1,245 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.netapp.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigProperties;
+import com.azure.resourcemanager.netapp.models.ManagedServiceIdentity;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * Active Directory Configuration resource.
+ */
+@Fluent
+public final class ActiveDirectoryConfigInner extends Resource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private ActiveDirectoryConfigProperties properties;
+
+ /*
+ * "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."
+ * )
+ */
+ private String etag;
+
+ /*
+ * The managed service identities assigned to this resource.
+ */
+ private ManagedServiceIdentity identity;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of ActiveDirectoryConfigInner class.
+ */
+ public ActiveDirectoryConfigInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public ActiveDirectoryConfigProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the ActiveDirectoryConfigInner object itself.
+ */
+ public ActiveDirectoryConfigInner withProperties(ActiveDirectoryConfigProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the etag property: "If etag is provided in the response body, it may also be provided as a header per the
+ * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource.
+ * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26),
+ * and If-Range (section 14.27) header fields.").
+ *
+ * @return the etag value.
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+ /**
+ * Get the identity property: The managed service identities assigned to this resource.
+ *
+ * @return the identity value.
+ */
+ public ManagedServiceIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The managed service identities assigned to this resource.
+ *
+ * @param identity the identity value to set.
+ * @return the ActiveDirectoryConfigInner object itself.
+ */
+ public ActiveDirectoryConfigInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ActiveDirectoryConfigInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ActiveDirectoryConfigInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ if (identity() != null) {
+ identity().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ jsonWriter.writeJsonField("identity", this.identity);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ActiveDirectoryConfigInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ActiveDirectoryConfigInner if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ActiveDirectoryConfigInner.
+ */
+ public static ActiveDirectoryConfigInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ActiveDirectoryConfigInner deserializedActiveDirectoryConfigInner = new ActiveDirectoryConfigInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedActiveDirectoryConfigInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedActiveDirectoryConfigInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedActiveDirectoryConfigInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedActiveDirectoryConfigInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedActiveDirectoryConfigInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedActiveDirectoryConfigInner.properties
+ = ActiveDirectoryConfigProperties.fromJson(reader);
+ } else if ("etag".equals(fieldName)) {
+ deserializedActiveDirectoryConfigInner.etag = reader.getString();
+ } else if ("identity".equals(fieldName)) {
+ deserializedActiveDirectoryConfigInner.identity = ManagedServiceIdentity.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedActiveDirectoryConfigInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedActiveDirectoryConfigInner;
+ });
+ }
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java
index 4ec65b42aeb2..254bfbbada50 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java
@@ -147,8 +147,8 @@ public String poolId() {
}
/**
- * Get the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be
- * multiple of 1099511627776).
+ * Get the size property: Provisioned size of the pool (in bytes). Allowed values are 512GiB (549755813888 bytes) or
+ * in 1TiB chunks (value must be multiple of 1099511627776).
*
* @return the size value.
*/
@@ -157,8 +157,8 @@ public long size() {
}
/**
- * Set the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be
- * multiple of 1099511627776).
+ * Set the size property: Provisioned size of the pool (in bytes). Allowed values are 512GiB (549755813888 bytes) or
+ * in 1TiB chunks (value must be multiple of 1099511627776).
*
* @param size the size value to set.
* @return the CapacityPoolInner object itself.
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckElasticResourceAvailabilityResponseInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckElasticResourceAvailabilityResponseInner.java
new file mode 100644
index 000000000000..e510e0cead5c
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckElasticResourceAvailabilityResponseInner.java
@@ -0,0 +1,129 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.netapp.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityReason;
+import com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityStatus;
+import java.io.IOException;
+
+/**
+ * Information regarding availability of a resource.
+ */
+@Immutable
+public final class CheckElasticResourceAvailabilityResponseInner
+ implements JsonSerializable {
+ /*
+ * True indicates name is valid and available. False indicates the name is invalid, unavailable, or both.
+ */
+ private CheckElasticResourceAvailabilityStatus isAvailable;
+
+ /*
+ * Invalid indicates the name provided does not match Azure NetApp Files naming requirements. AlreadyExists
+ * indicates that the name is already in use and is therefore unavailable.
+ */
+ private CheckElasticResourceAvailabilityReason reason;
+
+ /*
+ * If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource
+ * naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that resource
+ * name is already in use, and direct them to select a different name.
+ */
+ private String message;
+
+ /**
+ * Creates an instance of CheckElasticResourceAvailabilityResponseInner class.
+ */
+ private CheckElasticResourceAvailabilityResponseInner() {
+ }
+
+ /**
+ * Get the isAvailable property: True indicates name is valid and available. False indicates the name is invalid,
+ * unavailable, or both.
+ *
+ * @return the isAvailable value.
+ */
+ public CheckElasticResourceAvailabilityStatus isAvailable() {
+ return this.isAvailable;
+ }
+
+ /**
+ * Get the reason property: Invalid indicates the name provided does not match Azure NetApp Files naming
+ * requirements. AlreadyExists indicates that the name is already in use and is therefore unavailable.
+ *
+ * @return the reason value.
+ */
+ public CheckElasticResourceAvailabilityReason reason() {
+ return this.reason;
+ }
+
+ /**
+ * Get the message property: If reason == invalid, provide the user with the reason why the given name is invalid,
+ * and provide the resource naming requirements so that the user can select a valid name. If reason ==
+ * AlreadyExists, explain that resource name is already in use, and direct them to select a different name.
+ *
+ * @return the message value.
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("isAvailable", this.isAvailable == null ? null : this.isAvailable.toString());
+ jsonWriter.writeStringField("reason", this.reason == null ? null : this.reason.toString());
+ jsonWriter.writeStringField("message", this.message);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CheckElasticResourceAvailabilityResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CheckElasticResourceAvailabilityResponseInner if the JsonReader was pointing to an
+ * instance of it, or null if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the CheckElasticResourceAvailabilityResponseInner.
+ */
+ public static CheckElasticResourceAvailabilityResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CheckElasticResourceAvailabilityResponseInner deserializedCheckElasticResourceAvailabilityResponseInner
+ = new CheckElasticResourceAvailabilityResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("isAvailable".equals(fieldName)) {
+ deserializedCheckElasticResourceAvailabilityResponseInner.isAvailable
+ = CheckElasticResourceAvailabilityStatus.fromString(reader.getString());
+ } else if ("reason".equals(fieldName)) {
+ deserializedCheckElasticResourceAvailabilityResponseInner.reason
+ = CheckElasticResourceAvailabilityReason.fromString(reader.getString());
+ } else if ("message".equals(fieldName)) {
+ deserializedCheckElasticResourceAvailabilityResponseInner.message = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCheckElasticResourceAvailabilityResponseInner;
+ });
+ }
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticAccountInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticAccountInner.java
new file mode 100644
index 000000000000..fec53001fe1a
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticAccountInner.java
@@ -0,0 +1,246 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.netapp.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.netapp.models.ElasticAccountProperties;
+import com.azure.resourcemanager.netapp.models.ManagedServiceIdentity;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * NetApp elastic account resource.
+ */
+@Fluent
+public final class ElasticAccountInner extends Resource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private ElasticAccountProperties properties;
+
+ /*
+ * If eTag is provided in the response body, it may also be provided as a header per the normal etag convention.
+ * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity
+ * tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section
+ * 14.27) header fields.
+ */
+ private String eTag;
+
+ /*
+ * The managed service identities assigned to this resource.
+ */
+ private ManagedServiceIdentity identity;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of ElasticAccountInner class.
+ */
+ public ElasticAccountInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public ElasticAccountProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the ElasticAccountInner object itself.
+ */
+ public ElasticAccountInner withProperties(ElasticAccountProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the eTag property: If eTag is provided in the response body, it may also be provided as a header per the
+ * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource.
+ * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26),
+ * and If-Range (section 14.27) header fields.
+ *
+ * @return the eTag value.
+ */
+ public String eTag() {
+ return this.eTag;
+ }
+
+ /**
+ * Get the identity property: The managed service identities assigned to this resource.
+ *
+ * @return the identity value.
+ */
+ public ManagedServiceIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The managed service identities assigned to this resource.
+ *
+ * @param identity the identity value to set.
+ * @return the ElasticAccountInner object itself.
+ */
+ public ElasticAccountInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ElasticAccountInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ElasticAccountInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ if (identity() != null) {
+ identity().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ jsonWriter.writeJsonField("identity", this.identity);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ElasticAccountInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ElasticAccountInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ElasticAccountInner.
+ */
+ public static ElasticAccountInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ElasticAccountInner deserializedElasticAccountInner = new ElasticAccountInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedElasticAccountInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedElasticAccountInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedElasticAccountInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedElasticAccountInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedElasticAccountInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedElasticAccountInner.properties = ElasticAccountProperties.fromJson(reader);
+ } else if ("eTag".equals(fieldName)) {
+ deserializedElasticAccountInner.eTag = reader.getString();
+ } else if ("identity".equals(fieldName)) {
+ deserializedElasticAccountInner.identity = ManagedServiceIdentity.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedElasticAccountInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedElasticAccountInner;
+ });
+ }
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupInner.java
new file mode 100644
index 000000000000..355c759d9ec7
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupInner.java
@@ -0,0 +1,166 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.netapp.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.netapp.models.ElasticBackupProperties;
+import java.io.IOException;
+
+/**
+ * NetApp Elastic Backup under an elastic Backup Vault.
+ */
+@Fluent
+public final class ElasticBackupInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private ElasticBackupProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of ElasticBackupInner class.
+ */
+ public ElasticBackupInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public ElasticBackupProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the ElasticBackupInner object itself.
+ */
+ public ElasticBackupInner withProperties(ElasticBackupProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ElasticBackupInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ElasticBackupInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ElasticBackupInner.
+ */
+ public static ElasticBackupInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ElasticBackupInner deserializedElasticBackupInner = new ElasticBackupInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedElasticBackupInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedElasticBackupInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedElasticBackupInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedElasticBackupInner.properties = ElasticBackupProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedElasticBackupInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedElasticBackupInner;
+ });
+ }
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupPolicyInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupPolicyInner.java
new file mode 100644
index 000000000000..46c2fe6bfa0d
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupPolicyInner.java
@@ -0,0 +1,214 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.netapp.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyProperties;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * NetApp Elastic Backup Policy resource.
+ */
+@Fluent
+public final class ElasticBackupPolicyInner extends Resource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private ElasticBackupPolicyProperties properties;
+
+ /*
+ * If eTag is provided in the response body, it may also be provided as a header per the normal etag convention.
+ * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity
+ * tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section
+ * 14.27) header fields.
+ */
+ private String eTag;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of ElasticBackupPolicyInner class.
+ */
+ public ElasticBackupPolicyInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public ElasticBackupPolicyProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the ElasticBackupPolicyInner object itself.
+ */
+ public ElasticBackupPolicyInner withProperties(ElasticBackupPolicyProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the eTag property: If eTag is provided in the response body, it may also be provided as a header per the
+ * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource.
+ * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26),
+ * and If-Range (section 14.27) header fields.
+ *
+ * @return the eTag value.
+ */
+ public String eTag() {
+ return this.eTag;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ElasticBackupPolicyInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ElasticBackupPolicyInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ElasticBackupPolicyInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ElasticBackupPolicyInner if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ElasticBackupPolicyInner.
+ */
+ public static ElasticBackupPolicyInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ElasticBackupPolicyInner deserializedElasticBackupPolicyInner = new ElasticBackupPolicyInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedElasticBackupPolicyInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedElasticBackupPolicyInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedElasticBackupPolicyInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedElasticBackupPolicyInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedElasticBackupPolicyInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedElasticBackupPolicyInner.properties = ElasticBackupPolicyProperties.fromJson(reader);
+ } else if ("eTag".equals(fieldName)) {
+ deserializedElasticBackupPolicyInner.eTag = reader.getString();
+ } else if ("systemData".equals(fieldName)) {
+ deserializedElasticBackupPolicyInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedElasticBackupPolicyInner;
+ });
+ }
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupVaultInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupVaultInner.java
new file mode 100644
index 000000000000..578bd49e28cd
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupVaultInner.java
@@ -0,0 +1,214 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.netapp.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.netapp.models.ElasticBackupVaultProperties;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * NetApp elastic backup vault resource.
+ */
+@Fluent
+public final class ElasticBackupVaultInner extends Resource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private ElasticBackupVaultProperties properties;
+
+ /*
+ * If eTag is provided in the response body, it may also be provided as a header per the normal etag convention.
+ * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity
+ * tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section
+ * 14.27) header fields.
+ */
+ private String eTag;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of ElasticBackupVaultInner class.
+ */
+ public ElasticBackupVaultInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public ElasticBackupVaultProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the ElasticBackupVaultInner object itself.
+ */
+ public ElasticBackupVaultInner withProperties(ElasticBackupVaultProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the eTag property: If eTag is provided in the response body, it may also be provided as a header per the
+ * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource.
+ * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26),
+ * and If-Range (section 14.27) header fields.
+ *
+ * @return the eTag value.
+ */
+ public String eTag() {
+ return this.eTag;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ElasticBackupVaultInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ElasticBackupVaultInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ElasticBackupVaultInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ElasticBackupVaultInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ElasticBackupVaultInner.
+ */
+ public static ElasticBackupVaultInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ElasticBackupVaultInner deserializedElasticBackupVaultInner = new ElasticBackupVaultInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedElasticBackupVaultInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedElasticBackupVaultInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedElasticBackupVaultInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedElasticBackupVaultInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedElasticBackupVaultInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedElasticBackupVaultInner.properties = ElasticBackupVaultProperties.fromJson(reader);
+ } else if ("eTag".equals(fieldName)) {
+ deserializedElasticBackupVaultInner.eTag = reader.getString();
+ } else if ("systemData".equals(fieldName)) {
+ deserializedElasticBackupVaultInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedElasticBackupVaultInner;
+ });
+ }
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticCapacityPoolInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticCapacityPoolInner.java
new file mode 100644
index 000000000000..9440f6af3ca5
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticCapacityPoolInner.java
@@ -0,0 +1,244 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.netapp.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.netapp.models.ElasticCapacityPoolProperties;
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * NetApp Elastic Capacity Pool resource.
+ */
+@Fluent
+public final class ElasticCapacityPoolInner extends Resource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private ElasticCapacityPoolProperties properties;
+
+ /*
+ * If eTag is provided in the response body, it may also be provided as a header per the normal etag convention.
+ * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity
+ * tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section
+ * 14.27) header fields.
+ */
+ private String eTag;
+
+ /*
+ * The availability zones.
+ */
+ private List zones;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of ElasticCapacityPoolInner class.
+ */
+ public ElasticCapacityPoolInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public ElasticCapacityPoolProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the ElasticCapacityPoolInner object itself.
+ */
+ public ElasticCapacityPoolInner withProperties(ElasticCapacityPoolProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the eTag property: If eTag is provided in the response body, it may also be provided as a header per the
+ * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource.
+ * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26),
+ * and If-Range (section 14.27) header fields.
+ *
+ * @return the eTag value.
+ */
+ public String eTag() {
+ return this.eTag;
+ }
+
+ /**
+ * Get the zones property: The availability zones.
+ *
+ * @return the zones value.
+ */
+ public List zones() {
+ return this.zones;
+ }
+
+ /**
+ * Set the zones property: The availability zones.
+ *
+ * @param zones the zones value to set.
+ * @return the ElasticCapacityPoolInner object itself.
+ */
+ public ElasticCapacityPoolInner withZones(List zones) {
+ this.zones = zones;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ElasticCapacityPoolInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ElasticCapacityPoolInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ElasticCapacityPoolInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ElasticCapacityPoolInner if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ElasticCapacityPoolInner.
+ */
+ public static ElasticCapacityPoolInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ElasticCapacityPoolInner deserializedElasticCapacityPoolInner = new ElasticCapacityPoolInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedElasticCapacityPoolInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedElasticCapacityPoolInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedElasticCapacityPoolInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedElasticCapacityPoolInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedElasticCapacityPoolInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedElasticCapacityPoolInner.properties = ElasticCapacityPoolProperties.fromJson(reader);
+ } else if ("eTag".equals(fieldName)) {
+ deserializedElasticCapacityPoolInner.eTag = reader.getString();
+ } else if ("zones".equals(fieldName)) {
+ List zones = reader.readArray(reader1 -> reader1.getString());
+ deserializedElasticCapacityPoolInner.zones = zones;
+ } else if ("systemData".equals(fieldName)) {
+ deserializedElasticCapacityPoolInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedElasticCapacityPoolInner;
+ });
+ }
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticSnapshotInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticSnapshotInner.java
new file mode 100644
index 000000000000..0e81120fbefd
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticSnapshotInner.java
@@ -0,0 +1,166 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.netapp.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.netapp.models.ElasticSnapshotProperties;
+import java.io.IOException;
+
+/**
+ * NetApp Elastic Snapshot under an Elastic Volume.
+ */
+@Fluent
+public final class ElasticSnapshotInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private ElasticSnapshotProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of ElasticSnapshotInner class.
+ */
+ public ElasticSnapshotInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public ElasticSnapshotProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the ElasticSnapshotInner object itself.
+ */
+ public ElasticSnapshotInner withProperties(ElasticSnapshotProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ElasticSnapshotInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ElasticSnapshotInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ElasticSnapshotInner.
+ */
+ public static ElasticSnapshotInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ElasticSnapshotInner deserializedElasticSnapshotInner = new ElasticSnapshotInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedElasticSnapshotInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedElasticSnapshotInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedElasticSnapshotInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedElasticSnapshotInner.properties = ElasticSnapshotProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedElasticSnapshotInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedElasticSnapshotInner;
+ });
+ }
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticSnapshotPolicyInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticSnapshotPolicyInner.java
new file mode 100644
index 000000000000..2aa9cb9185f2
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticSnapshotPolicyInner.java
@@ -0,0 +1,215 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.netapp.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyProperties;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * NetApp Elastic Snapshot Policy under an Elastic Account.
+ */
+@Fluent
+public final class ElasticSnapshotPolicyInner extends Resource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private ElasticSnapshotPolicyProperties properties;
+
+ /*
+ * If eTag is provided in the response body, it may also be provided as a header per the normal etag convention.
+ * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity
+ * tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section
+ * 14.27) header fields.
+ */
+ private String eTag;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of ElasticSnapshotPolicyInner class.
+ */
+ public ElasticSnapshotPolicyInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public ElasticSnapshotPolicyProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the ElasticSnapshotPolicyInner object itself.
+ */
+ public ElasticSnapshotPolicyInner withProperties(ElasticSnapshotPolicyProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the eTag property: If eTag is provided in the response body, it may also be provided as a header per the
+ * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource.
+ * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26),
+ * and If-Range (section 14.27) header fields.
+ *
+ * @return the eTag value.
+ */
+ public String eTag() {
+ return this.eTag;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ElasticSnapshotPolicyInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ElasticSnapshotPolicyInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ElasticSnapshotPolicyInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ElasticSnapshotPolicyInner if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ElasticSnapshotPolicyInner.
+ */
+ public static ElasticSnapshotPolicyInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ElasticSnapshotPolicyInner deserializedElasticSnapshotPolicyInner = new ElasticSnapshotPolicyInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedElasticSnapshotPolicyInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedElasticSnapshotPolicyInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedElasticSnapshotPolicyInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedElasticSnapshotPolicyInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedElasticSnapshotPolicyInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedElasticSnapshotPolicyInner.properties
+ = ElasticSnapshotPolicyProperties.fromJson(reader);
+ } else if ("eTag".equals(fieldName)) {
+ deserializedElasticSnapshotPolicyInner.eTag = reader.getString();
+ } else if ("systemData".equals(fieldName)) {
+ deserializedElasticSnapshotPolicyInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedElasticSnapshotPolicyInner;
+ });
+ }
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticVolumeInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticVolumeInner.java
new file mode 100644
index 000000000000..53b43ec7950f
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticVolumeInner.java
@@ -0,0 +1,244 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.netapp.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.netapp.models.ElasticVolumeProperties;
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * NetApp Elastic Volume resource.
+ */
+@Fluent
+public final class ElasticVolumeInner extends Resource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private ElasticVolumeProperties properties;
+
+ /*
+ * If eTag is provided in the response body, it may also be provided as a header per the normal etag convention.
+ * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity
+ * tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section
+ * 14.27) header fields.
+ */
+ private String eTag;
+
+ /*
+ * The availability zones.
+ */
+ private List zones;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of ElasticVolumeInner class.
+ */
+ public ElasticVolumeInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public ElasticVolumeProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the ElasticVolumeInner object itself.
+ */
+ public ElasticVolumeInner withProperties(ElasticVolumeProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the eTag property: If eTag is provided in the response body, it may also be provided as a header per the
+ * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource.
+ * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26),
+ * and If-Range (section 14.27) header fields.
+ *
+ * @return the eTag value.
+ */
+ public String eTag() {
+ return this.eTag;
+ }
+
+ /**
+ * Get the zones property: The availability zones.
+ *
+ * @return the zones value.
+ */
+ public List zones() {
+ return this.zones;
+ }
+
+ /**
+ * Set the zones property: The availability zones.
+ *
+ * @param zones the zones value to set.
+ * @return the ElasticVolumeInner object itself.
+ */
+ public ElasticVolumeInner withZones(List zones) {
+ this.zones = zones;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ElasticVolumeInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ElasticVolumeInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ElasticVolumeInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ElasticVolumeInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ElasticVolumeInner.
+ */
+ public static ElasticVolumeInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ElasticVolumeInner deserializedElasticVolumeInner = new ElasticVolumeInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedElasticVolumeInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedElasticVolumeInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedElasticVolumeInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedElasticVolumeInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedElasticVolumeInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedElasticVolumeInner.properties = ElasticVolumeProperties.fromJson(reader);
+ } else if ("eTag".equals(fieldName)) {
+ deserializedElasticVolumeInner.eTag = reader.getString();
+ } else if ("zones".equals(fieldName)) {
+ List zones = reader.readArray(reader1 -> reader1.getString());
+ deserializedElasticVolumeInner.zones = zones;
+ } else if ("systemData".equals(fieldName)) {
+ deserializedElasticVolumeInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedElasticVolumeInner;
+ });
+ }
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java
index ec793e09817a..c55ef862ec67 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java
@@ -12,6 +12,8 @@
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.netapp.models.AccountEncryption;
import com.azure.resourcemanager.netapp.models.ActiveDirectory;
+import com.azure.resourcemanager.netapp.models.EntraIdConfig;
+import com.azure.resourcemanager.netapp.models.LdapConfiguration;
import com.azure.resourcemanager.netapp.models.ManagedServiceIdentity;
import com.azure.resourcemanager.netapp.models.MultiAdStatus;
import java.io.IOException;
@@ -195,6 +197,29 @@ public NetAppAccountInner withActiveDirectories(List activeDire
return this;
}
+ /**
+ * Get the entraIdConfig property: Entra ID configuration for the account.
+ *
+ * @return the entraIdConfig value.
+ */
+ public EntraIdConfig entraIdConfig() {
+ return this.innerProperties() == null ? null : this.innerProperties().entraIdConfig();
+ }
+
+ /**
+ * Set the entraIdConfig property: Entra ID configuration for the account.
+ *
+ * @param entraIdConfig the entraIdConfig value to set.
+ * @return the NetAppAccountInner object itself.
+ */
+ public NetAppAccountInner withEntraIdConfig(EntraIdConfig entraIdConfig) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AccountProperties();
+ }
+ this.innerProperties().withEntraIdConfig(entraIdConfig);
+ return this;
+ }
+
/**
* Get the encryption property: Encryption settings.
*
@@ -262,6 +287,29 @@ public MultiAdStatus multiAdStatus() {
return this.innerProperties() == null ? null : this.innerProperties().multiAdStatus();
}
+ /**
+ * Get the ldapConfiguration property: LDAP Configuration for the account.
+ *
+ * @return the ldapConfiguration value.
+ */
+ public LdapConfiguration ldapConfiguration() {
+ return this.innerProperties() == null ? null : this.innerProperties().ldapConfiguration();
+ }
+
+ /**
+ * Set the ldapConfiguration property: LDAP Configuration for the account.
+ *
+ * @param ldapConfiguration the ldapConfiguration value to set.
+ * @return the NetAppAccountInner object itself.
+ */
+ public NetAppAccountInner withLdapConfiguration(LdapConfiguration ldapConfiguration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AccountProperties();
+ }
+ this.innerProperties().withLdapConfiguration(ldapConfiguration);
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java
index a7f3357ea72a..f38106329998 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java
@@ -18,8 +18,8 @@
@Fluent
public final class PoolPatchProperties implements JsonSerializable {
/*
- * Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of
- * 1099511627776).
+ * Provisioned size of the pool (in bytes). Allowed values are 512GiB (549755813888 bytes) or in 1TiB chunks (value
+ * must be multiple of 1099511627776).
*/
private Long size;
@@ -46,8 +46,8 @@ public PoolPatchProperties() {
}
/**
- * Get the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be
- * multiple of 1099511627776).
+ * Get the size property: Provisioned size of the pool (in bytes). Allowed values are 512GiB (549755813888 bytes) or
+ * in 1TiB chunks (value must be multiple of 1099511627776).
*
* @return the size value.
*/
@@ -56,8 +56,8 @@ public Long size() {
}
/**
- * Set the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be
- * multiple of 1099511627776).
+ * Set the size property: Provisioned size of the pool (in bytes). Allowed values are 512GiB (549755813888 bytes) or
+ * in 1TiB chunks (value must be multiple of 1099511627776).
*
* @param size the size value to set.
* @return the PoolPatchProperties object itself.
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java
index 25b7c2934f0f..f9c2741a0671 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java
@@ -26,8 +26,8 @@ public final class PoolProperties implements JsonSerializable {
private String poolId;
/*
- * Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of
- * 1099511627776).
+ * Provisioned size of the pool (in bytes). Allowed values are 512GiB (549755813888 bytes) or in 1TiB chunks (value
+ * must be multiple of 1099511627776).
*/
private long size;
@@ -89,8 +89,8 @@ public String poolId() {
}
/**
- * Get the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be
- * multiple of 1099511627776).
+ * Get the size property: Provisioned size of the pool (in bytes). Allowed values are 512GiB (549755813888 bytes) or
+ * in 1TiB chunks (value must be multiple of 1099511627776).
*
* @return the size value.
*/
@@ -99,8 +99,8 @@ public long size() {
}
/**
- * Set the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be
- * multiple of 1099511627776).
+ * Set the size property: Provisioned size of the pool (in bytes). Allowed values are 512GiB (549755813888 bytes) or
+ * in 1TiB chunks (value must be multiple of 1099511627776).
*
* @param size the size value to set.
* @return the PoolProperties object itself.
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java
index 39be9012ae6e..553aed0bff5f 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java
@@ -19,6 +19,8 @@
import com.azure.resourcemanager.netapp.models.EnableSubvolumes;
import com.azure.resourcemanager.netapp.models.EncryptionKeySource;
import com.azure.resourcemanager.netapp.models.FileAccessLogs;
+import com.azure.resourcemanager.netapp.models.LargeVolumeType;
+import com.azure.resourcemanager.netapp.models.LdapServerType;
import com.azure.resourcemanager.netapp.models.MountTargetProperties;
import com.azure.resourcemanager.netapp.models.NetworkFeatures;
import com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs;
@@ -26,6 +28,7 @@
import com.azure.resourcemanager.netapp.models.ServiceLevel;
import com.azure.resourcemanager.netapp.models.SmbAccessBasedEnumeration;
import com.azure.resourcemanager.netapp.models.SmbNonBrowsable;
+import com.azure.resourcemanager.netapp.models.VolumeLanguage;
import com.azure.resourcemanager.netapp.models.VolumePropertiesDataProtection;
import com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy;
import com.azure.resourcemanager.netapp.models.VolumeStorageToNetworkProximity;
@@ -235,9 +238,11 @@ public VolumeInner withServiceLevel(ServiceLevel serviceLevel) {
/**
* Get the usageThreshold property: Maximum storage quota allowed for a file system in bytes. This is a soft quota
- * used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes,
- * valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values
- * expressed in bytes as multiples of 1 GiB.
+ * used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB.
+ * For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB
+ * to 2400TiB.
+ * For extra large volumes, valid values are in the range 2400GiB to 7200TiB. Values expressed in bytes as multiples
+ * of 1 GiB.
*
* @return the usageThreshold value.
*/
@@ -247,9 +252,11 @@ public long usageThreshold() {
/**
* Set the usageThreshold property: Maximum storage quota allowed for a file system in bytes. This is a soft quota
- * used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes,
- * valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values
- * expressed in bytes as multiples of 1 GiB.
+ * used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB.
+ * For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB
+ * to 2400TiB.
+ * For extra large volumes, valid values are in the range 2400GiB to 7200TiB. Values expressed in bytes as multiples
+ * of 1 GiB.
*
* @param usageThreshold the usageThreshold value to set.
* @return the VolumeInner object itself.
@@ -863,6 +870,29 @@ public VolumeInner withLdapEnabled(Boolean ldapEnabled) {
return this;
}
+ /**
+ * Get the ldapServerType property: Specifies the type of LDAP server for a given NFS volume.
+ *
+ * @return the ldapServerType value.
+ */
+ public LdapServerType ldapServerType() {
+ return this.innerProperties() == null ? null : this.innerProperties().ldapServerType();
+ }
+
+ /**
+ * Set the ldapServerType property: Specifies the type of LDAP server for a given NFS volume.
+ *
+ * @param ldapServerType the ldapServerType value to set.
+ * @return the VolumeInner object itself.
+ */
+ public VolumeInner withLdapServerType(LdapServerType ldapServerType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VolumeProperties();
+ }
+ this.innerProperties().withLdapServerType(ldapServerType);
+ return this;
+ }
+
/**
* Get the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume.
*
@@ -1324,6 +1354,37 @@ public VolumeInner withIsLargeVolume(Boolean isLargeVolume) {
return this;
}
+ /**
+ * Get the largeVolumeType property: Specifies the type of the Large Volume. When set to 'LargeVolume', the large
+ * volume is created with standard configuration.
+ * If it is set to 'ExtraLargeVolume7Dot2PiB', the extra large volume is created with higher capacity limit 7.2PiB
+ * with cool access enabled,
+ * delivering higher capacity limit with lower costs.
+ *
+ * @return the largeVolumeType value.
+ */
+ public LargeVolumeType largeVolumeType() {
+ return this.innerProperties() == null ? null : this.innerProperties().largeVolumeType();
+ }
+
+ /**
+ * Set the largeVolumeType property: Specifies the type of the Large Volume. When set to 'LargeVolume', the large
+ * volume is created with standard configuration.
+ * If it is set to 'ExtraLargeVolume7Dot2PiB', the extra large volume is created with higher capacity limit 7.2PiB
+ * with cool access enabled,
+ * delivering higher capacity limit with lower costs.
+ *
+ * @param largeVolumeType the largeVolumeType value to set.
+ * @return the VolumeInner object itself.
+ */
+ public VolumeInner withLargeVolumeType(LargeVolumeType largeVolumeType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VolumeProperties();
+ }
+ this.innerProperties().withLargeVolumeType(largeVolumeType);
+ return this;
+ }
+
/**
* Get the originatingResourceId property: Id of the snapshot or backup that the volume is restored from.
*
@@ -1342,6 +1403,29 @@ public Long inheritedSizeInBytes() {
return this.innerProperties() == null ? null : this.innerProperties().inheritedSizeInBytes();
}
+ /**
+ * Get the language property: Language supported for volume.
+ *
+ * @return the language value.
+ */
+ public VolumeLanguage language() {
+ return this.innerProperties() == null ? null : this.innerProperties().language();
+ }
+
+ /**
+ * Set the language property: Language supported for volume.
+ *
+ * @param language the language value to set.
+ * @return the VolumeInner object itself.
+ */
+ public VolumeInner withLanguage(VolumeLanguage language) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VolumeProperties();
+ }
+ this.innerProperties().withLanguage(language);
+ return this;
+ }
+
/**
* Get the breakthroughMode property: Specifies whether the volume operates in Breakthrough Mode.
*
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java
index b03bf0e90072..a719bc951111 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java
@@ -31,8 +31,10 @@ public final class VolumePatchProperties implements JsonSerializable changeKeyVaultSync(@HostParam("endpoint") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
@BodyParam("application/json") ChangeKeyVault body, Context context);
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/refreshLdapBindPassword")
+ @ExpectedResponses({ 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> refreshLdapBindPassword(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
+ Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/refreshLdapBindPassword")
+ @ExpectedResponses({ 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response refreshLdapBindPasswordSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
+ Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@@ -2345,6 +2363,209 @@ public void changeKeyVault(String resourceGroupName, String accountName, ChangeK
beginChangeKeyVault(resourceGroupName, accountName, body, context).getFinalResult();
}
+ /**
+ * Refresh LDAP Bind DN password by fetching the latest password from Azure Key Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> refreshLdapBindPasswordWithResponseAsync(String resourceGroupName,
+ String accountName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(context -> service.refreshLdapBindPassword(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accountName, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Refresh LDAP Bind DN password by fetching the latest password from Azure Key Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response refreshLdapBindPasswordWithResponse(String resourceGroupName, String accountName) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ return service.refreshLdapBindPasswordSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, accountName, Context.NONE);
+ }
+
+ /**
+ * Refresh LDAP Bind DN password by fetching the latest password from Azure Key Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response refreshLdapBindPasswordWithResponse(String resourceGroupName, String accountName,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ return service.refreshLdapBindPasswordSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, accountName, context);
+ }
+
+ /**
+ * Refresh LDAP Bind DN password by fetching the latest password from Azure Key Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginRefreshLdapBindPasswordAsync(String resourceGroupName,
+ String accountName) {
+ Mono>> mono
+ = refreshLdapBindPasswordWithResponseAsync(resourceGroupName, accountName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Refresh LDAP Bind DN password by fetching the latest password from Azure Key Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginRefreshLdapBindPassword(String resourceGroupName,
+ String accountName) {
+ Response response = refreshLdapBindPasswordWithResponse(resourceGroupName, accountName);
+ return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Refresh LDAP Bind DN password by fetching the latest password from Azure Key Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginRefreshLdapBindPassword(String resourceGroupName, String accountName,
+ Context context) {
+ Response response = refreshLdapBindPasswordWithResponse(resourceGroupName, accountName, context);
+ return this.client.getLroResult(response, Void.class, Void.class, context);
+ }
+
+ /**
+ * Refresh LDAP Bind DN password by fetching the latest password from Azure Key Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono refreshLdapBindPasswordAsync(String resourceGroupName, String accountName) {
+ return beginRefreshLdapBindPasswordAsync(resourceGroupName, accountName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Refresh LDAP Bind DN password by fetching the latest password from Azure Key Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void refreshLdapBindPassword(String resourceGroupName, String accountName) {
+ beginRefreshLdapBindPassword(resourceGroupName, accountName).getFinalResult();
+ }
+
+ /**
+ * Refresh LDAP Bind DN password by fetching the latest password from Azure Key Vault.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void refreshLdapBindPassword(String resourceGroupName, String accountName, Context context) {
+ beginRefreshLdapBindPassword(resourceGroupName, accountName, context).getFinalResult();
+ }
+
/**
* Get the next page of items.
*
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java
index c0ff6e240394..7b8ebdb2d4ec 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java
@@ -122,6 +122,14 @@ public void changeKeyVault(String resourceGroupName, String accountName, ChangeK
this.serviceClient().changeKeyVault(resourceGroupName, accountName, body, context);
}
+ public void refreshLdapBindPassword(String resourceGroupName, String accountName) {
+ this.serviceClient().refreshLdapBindPassword(resourceGroupName, accountName);
+ }
+
+ public void refreshLdapBindPassword(String resourceGroupName, String accountName, Context context) {
+ this.serviceClient().refreshLdapBindPassword(resourceGroupName, accountName, context);
+ }
+
public NetAppAccount getById(String id) {
String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigImpl.java
new file mode 100644
index 000000000000..9608e5b64d4d
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigImpl.java
@@ -0,0 +1,204 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.netapp.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.netapp.fluent.models.ActiveDirectoryConfigInner;
+import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfig;
+import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigProperties;
+import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigUpdate;
+import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigUpdateProperties;
+import com.azure.resourcemanager.netapp.models.ManagedServiceIdentity;
+import java.util.Collections;
+import java.util.Map;
+
+public final class ActiveDirectoryConfigImpl
+ implements ActiveDirectoryConfig, ActiveDirectoryConfig.Definition, ActiveDirectoryConfig.Update {
+ private ActiveDirectoryConfigInner innerObject;
+
+ private final com.azure.resourcemanager.netapp.NetAppFilesManager 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 ActiveDirectoryConfigProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public String etag() {
+ return this.innerModel().etag();
+ }
+
+ public ManagedServiceIdentity identity() {
+ return this.innerModel().identity();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public ActiveDirectoryConfigInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.netapp.NetAppFilesManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String activeDirectoryConfigName;
+
+ private ActiveDirectoryConfigUpdate updateBody;
+
+ public ActiveDirectoryConfigImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public ActiveDirectoryConfig create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getActiveDirectoryConfigs()
+ .createOrUpdate(resourceGroupName, activeDirectoryConfigName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public ActiveDirectoryConfig create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getActiveDirectoryConfigs()
+ .createOrUpdate(resourceGroupName, activeDirectoryConfigName, this.innerModel(), context);
+ return this;
+ }
+
+ ActiveDirectoryConfigImpl(String name, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) {
+ this.innerObject = new ActiveDirectoryConfigInner();
+ this.serviceManager = serviceManager;
+ this.activeDirectoryConfigName = name;
+ }
+
+ public ActiveDirectoryConfigImpl update() {
+ this.updateBody = new ActiveDirectoryConfigUpdate();
+ return this;
+ }
+
+ public ActiveDirectoryConfig apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getActiveDirectoryConfigs()
+ .update(resourceGroupName, activeDirectoryConfigName, updateBody, Context.NONE);
+ return this;
+ }
+
+ public ActiveDirectoryConfig apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getActiveDirectoryConfigs()
+ .update(resourceGroupName, activeDirectoryConfigName, updateBody, context);
+ return this;
+ }
+
+ ActiveDirectoryConfigImpl(ActiveDirectoryConfigInner innerObject,
+ com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.activeDirectoryConfigName
+ = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "activeDirectoryConfigs");
+ }
+
+ public ActiveDirectoryConfig refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getActiveDirectoryConfigs()
+ .getByResourceGroupWithResponse(resourceGroupName, activeDirectoryConfigName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ActiveDirectoryConfig refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getActiveDirectoryConfigs()
+ .getByResourceGroupWithResponse(resourceGroupName, activeDirectoryConfigName, context)
+ .getValue();
+ return this;
+ }
+
+ public ActiveDirectoryConfigImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public ActiveDirectoryConfigImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public ActiveDirectoryConfigImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.innerModel().withTags(tags);
+ return this;
+ } else {
+ this.updateBody.withTags(tags);
+ return this;
+ }
+ }
+
+ public ActiveDirectoryConfigImpl withProperties(ActiveDirectoryConfigProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+
+ public ActiveDirectoryConfigImpl withIdentity(ManagedServiceIdentity identity) {
+ if (isInCreateMode()) {
+ this.innerModel().withIdentity(identity);
+ return this;
+ } else {
+ this.updateBody.withIdentity(identity);
+ return this;
+ }
+ }
+
+ public ActiveDirectoryConfigImpl withProperties(ActiveDirectoryConfigUpdateProperties properties) {
+ this.updateBody.withProperties(properties);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel() == null || this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigsClientImpl.java
new file mode 100644
index 000000000000..0b1642b1e178
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigsClientImpl.java
@@ -0,0 +1,1468 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.netapp.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient;
+import com.azure.resourcemanager.netapp.fluent.models.ActiveDirectoryConfigInner;
+import com.azure.resourcemanager.netapp.implementation.models.ActiveDirectoryConfigListResult;
+import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigUpdate;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in ActiveDirectoryConfigsClient.
+ */
+public final class ActiveDirectoryConfigsClientImpl implements ActiveDirectoryConfigsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final ActiveDirectoryConfigsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final NetAppManagementClientImpl client;
+
+ /**
+ * Initializes an instance of ActiveDirectoryConfigsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ActiveDirectoryConfigsClientImpl(NetAppManagementClientImpl client) {
+ this.service = RestProxy.create(ActiveDirectoryConfigsService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for NetAppManagementClientActiveDirectoryConfigs to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "NetAppManagementClientActiveDirectoryConfigs")
+ public interface ActiveDirectoryConfigsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/activeDirectoryConfigs/{activeDirectoryConfigName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("activeDirectoryConfigName") String activeDirectoryConfigName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/activeDirectoryConfigs/{activeDirectoryConfigName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("activeDirectoryConfigName") String activeDirectoryConfigName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/activeDirectoryConfigs/{activeDirectoryConfigName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("activeDirectoryConfigName") String activeDirectoryConfigName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ActiveDirectoryConfigInner body, Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/activeDirectoryConfigs/{activeDirectoryConfigName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response createOrUpdateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("activeDirectoryConfigName") String activeDirectoryConfigName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ActiveDirectoryConfigInner body, Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/activeDirectoryConfigs/{activeDirectoryConfigName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("activeDirectoryConfigName") String activeDirectoryConfigName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ActiveDirectoryConfigUpdate body, Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/activeDirectoryConfigs/{activeDirectoryConfigName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response updateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("activeDirectoryConfigName") String activeDirectoryConfigName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ActiveDirectoryConfigUpdate body, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/activeDirectoryConfigs/{activeDirectoryConfigName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("activeDirectoryConfigName") String activeDirectoryConfigName, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/activeDirectoryConfigs/{activeDirectoryConfigName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response deleteSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("activeDirectoryConfigName") String activeDirectoryConfigName, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/activeDirectoryConfigs")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/activeDirectoryConfigs")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/activeDirectoryConfigs")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/activeDirectoryConfigs")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroupNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByResourceGroupNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listBySubscriptionNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listBySubscriptionNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Get the details of the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the details of the specified active directory configuration along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String activeDirectoryConfigName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (activeDirectoryConfigName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter activeDirectoryConfigName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, activeDirectoryConfigName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the details of the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the details of the specified active directory configuration on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(String resourceGroupName,
+ String activeDirectoryConfigName) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, activeDirectoryConfigName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get the details of the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the details of the specified active directory configuration along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(String resourceGroupName,
+ String activeDirectoryConfigName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (activeDirectoryConfigName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter activeDirectoryConfigName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, activeDirectoryConfigName, accept, context);
+ }
+
+ /**
+ * Get the details of the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the details of the specified active directory configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ActiveDirectoryConfigInner getByResourceGroup(String resourceGroupName, String activeDirectoryConfigName) {
+ return getByResourceGroupWithResponse(resourceGroupName, activeDirectoryConfigName, Context.NONE).getValue();
+ }
+
+ /**
+ * Create or update the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return active Directory Configuration resource along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String activeDirectoryConfigName, ActiveDirectoryConfigInner body) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (activeDirectoryConfigName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter activeDirectoryConfigName is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, activeDirectoryConfigName, contentType, accept,
+ body, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create or update the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return active Directory Configuration resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createOrUpdateWithResponse(String resourceGroupName, String activeDirectoryConfigName,
+ ActiveDirectoryConfigInner body) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (activeDirectoryConfigName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter activeDirectoryConfigName is required and cannot be null."));
+ }
+ if (body == null) {
+ throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, activeDirectoryConfigName, contentType, accept, body,
+ Context.NONE);
+ }
+
+ /**
+ * Create or update the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return active Directory Configuration resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createOrUpdateWithResponse(String resourceGroupName, String activeDirectoryConfigName,
+ ActiveDirectoryConfigInner body, Context context) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (activeDirectoryConfigName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter activeDirectoryConfigName is required and cannot be null."));
+ }
+ if (body == null) {
+ throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, activeDirectoryConfigName, contentType, accept, body,
+ context);
+ }
+
+ /**
+ * Create or update the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of active Directory Configuration resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ActiveDirectoryConfigInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String activeDirectoryConfigName, ActiveDirectoryConfigInner body) {
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, activeDirectoryConfigName, body);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), ActiveDirectoryConfigInner.class, ActiveDirectoryConfigInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Create or update the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of active Directory Configuration resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ActiveDirectoryConfigInner> beginCreateOrUpdate(
+ String resourceGroupName, String activeDirectoryConfigName, ActiveDirectoryConfigInner body) {
+ Response response = createOrUpdateWithResponse(resourceGroupName, activeDirectoryConfigName, body);
+ return this.client.getLroResult(response,
+ ActiveDirectoryConfigInner.class, ActiveDirectoryConfigInner.class, Context.NONE);
+ }
+
+ /**
+ * Create or update the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of active Directory Configuration resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ActiveDirectoryConfigInner> beginCreateOrUpdate(
+ String resourceGroupName, String activeDirectoryConfigName, ActiveDirectoryConfigInner body, Context context) {
+ Response response
+ = createOrUpdateWithResponse(resourceGroupName, activeDirectoryConfigName, body, context);
+ return this.client.getLroResult(response,
+ ActiveDirectoryConfigInner.class, ActiveDirectoryConfigInner.class, context);
+ }
+
+ /**
+ * Create or update the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return active Directory Configuration resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName,
+ String activeDirectoryConfigName, ActiveDirectoryConfigInner body) {
+ return beginCreateOrUpdateAsync(resourceGroupName, activeDirectoryConfigName, body).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or update the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return active Directory Configuration resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ActiveDirectoryConfigInner createOrUpdate(String resourceGroupName, String activeDirectoryConfigName,
+ ActiveDirectoryConfigInner body) {
+ return beginCreateOrUpdate(resourceGroupName, activeDirectoryConfigName, body).getFinalResult();
+ }
+
+ /**
+ * Create or update the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return active Directory Configuration resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ActiveDirectoryConfigInner createOrUpdate(String resourceGroupName, String activeDirectoryConfigName,
+ ActiveDirectoryConfigInner body, Context context) {
+ return beginCreateOrUpdate(resourceGroupName, activeDirectoryConfigName, body, context).getFinalResult();
+ }
+
+ /**
+ * Patch the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return active Directory Configuration resource along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName,
+ String activeDirectoryConfigName, ActiveDirectoryConfigUpdate body) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (activeDirectoryConfigName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter activeDirectoryConfigName is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, activeDirectoryConfigName, contentType, accept,
+ body, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Patch the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return active Directory Configuration resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response updateWithResponse(String resourceGroupName, String activeDirectoryConfigName,
+ ActiveDirectoryConfigUpdate body) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (activeDirectoryConfigName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter activeDirectoryConfigName is required and cannot be null."));
+ }
+ if (body == null) {
+ throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, activeDirectoryConfigName, contentType, accept, body,
+ Context.NONE);
+ }
+
+ /**
+ * Patch the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return active Directory Configuration resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response updateWithResponse(String resourceGroupName, String activeDirectoryConfigName,
+ ActiveDirectoryConfigUpdate body, Context context) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (activeDirectoryConfigName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter activeDirectoryConfigName is required and cannot be null."));
+ }
+ if (body == null) {
+ throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, activeDirectoryConfigName, contentType, accept, body,
+ context);
+ }
+
+ /**
+ * Patch the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of active Directory Configuration resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ActiveDirectoryConfigInner>
+ beginUpdateAsync(String resourceGroupName, String activeDirectoryConfigName, ActiveDirectoryConfigUpdate body) {
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, activeDirectoryConfigName, body);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), ActiveDirectoryConfigInner.class, ActiveDirectoryConfigInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Patch the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of active Directory Configuration resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ActiveDirectoryConfigInner>
+ beginUpdate(String resourceGroupName, String activeDirectoryConfigName, ActiveDirectoryConfigUpdate body) {
+ Response response = updateWithResponse(resourceGroupName, activeDirectoryConfigName, body);
+ return this.client.getLroResult(response,
+ ActiveDirectoryConfigInner.class, ActiveDirectoryConfigInner.class, Context.NONE);
+ }
+
+ /**
+ * Patch the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of active Directory Configuration resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ActiveDirectoryConfigInner> beginUpdate(
+ String resourceGroupName, String activeDirectoryConfigName, ActiveDirectoryConfigUpdate body, Context context) {
+ Response response = updateWithResponse(resourceGroupName, activeDirectoryConfigName, body, context);
+ return this.client.getLroResult(response,
+ ActiveDirectoryConfigInner.class, ActiveDirectoryConfigInner.class, context);
+ }
+
+ /**
+ * Patch the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return active Directory Configuration resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String activeDirectoryConfigName,
+ ActiveDirectoryConfigUpdate body) {
+ return beginUpdateAsync(resourceGroupName, activeDirectoryConfigName, body).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Patch the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return active Directory Configuration resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ActiveDirectoryConfigInner update(String resourceGroupName, String activeDirectoryConfigName,
+ ActiveDirectoryConfigUpdate body) {
+ return beginUpdate(resourceGroupName, activeDirectoryConfigName, body).getFinalResult();
+ }
+
+ /**
+ * Patch the specified active directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param body The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return active Directory Configuration resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ActiveDirectoryConfigInner update(String resourceGroupName, String activeDirectoryConfigName,
+ ActiveDirectoryConfigUpdate body, Context context) {
+ return beginUpdate(resourceGroupName, activeDirectoryConfigName, body, context).getFinalResult();
+ }
+
+ /**
+ * Delete the specified Active Directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName,
+ String activeDirectoryConfigName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (activeDirectoryConfigName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter activeDirectoryConfigName is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, activeDirectoryConfigName, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete the specified Active Directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String activeDirectoryConfigName) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (activeDirectoryConfigName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter activeDirectoryConfigName is required and cannot be null."));
+ }
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, activeDirectoryConfigName, Context.NONE);
+ }
+
+ /**
+ * Delete the specified Active Directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String activeDirectoryConfigName,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (activeDirectoryConfigName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter activeDirectoryConfigName is required and cannot be null."));
+ }
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, activeDirectoryConfigName, context);
+ }
+
+ /**
+ * Delete the specified Active Directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName,
+ String activeDirectoryConfigName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, activeDirectoryConfigName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Delete the specified Active Directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String activeDirectoryConfigName) {
+ Response response = deleteWithResponse(resourceGroupName, activeDirectoryConfigName);
+ return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Delete the specified Active Directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String activeDirectoryConfigName,
+ Context context) {
+ Response response = deleteWithResponse(resourceGroupName, activeDirectoryConfigName, context);
+ return this.client.getLroResult(response, Void.class, Void.class, context);
+ }
+
+ /**
+ * Delete the specified Active Directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String activeDirectoryConfigName) {
+ return beginDeleteAsync(resourceGroupName, activeDirectoryConfigName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete the specified Active Directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String activeDirectoryConfigName) {
+ beginDelete(resourceGroupName, activeDirectoryConfigName).getFinalResult();
+ }
+
+ /**
+ * Delete the specified Active Directory configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String activeDirectoryConfigName, Context context) {
+ beginDelete(resourceGroupName, activeDirectoryConfigName, context).getFinalResult();
+ }
+
+ /**
+ * List all active directory configurations within the resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ActiveDirectoryConfig list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listByResourceGroupSinglePageAsync(String resourceGroupName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List all active directory configurations within the resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ActiveDirectoryConfig list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List all active directory configurations within the resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ActiveDirectoryConfig list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res = service.listByResourceGroupSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List all active directory configurations within the 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 ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ActiveDirectoryConfig list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupSinglePage(String resourceGroupName,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res = service.listByResourceGroupSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List all active directory configurations within the resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ActiveDirectoryConfig list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName),
+ nextLink -> listByResourceGroupNextSinglePage(nextLink));
+ }
+
+ /**
+ * List all active directory configurations within the 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 ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ActiveDirectoryConfig list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
+ return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context),
+ nextLink -> listByResourceGroupNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * List all active directory configurations within the subscription.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ActiveDirectoryConfig list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync() {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List all active directory configurations within the subscription.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ActiveDirectoryConfig list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(() -> listSinglePageAsync(),
+ nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List all active directory configurations within the subscription.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ActiveDirectoryConfig list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage() {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res = service.listSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List all active directory configurations within the subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ActiveDirectoryConfig list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage(Context context) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res = service.listSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List all active directory configurations within the subscription.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ActiveDirectoryConfig list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(() -> listSinglePage(), nextLink -> listBySubscriptionNextSinglePage(nextLink));
+ }
+
+ /**
+ * List all active directory configurations within the subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ActiveDirectoryConfig list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(() -> listSinglePage(context),
+ nextLink -> listBySubscriptionNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ActiveDirectoryConfig list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ActiveDirectoryConfig list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupNextSinglePage(String nextLink) {
+ if (nextLink == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res
+ = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ActiveDirectoryConfig list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupNextSinglePage(String nextLink,
+ Context context) {
+ if (nextLink == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res
+ = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ActiveDirectoryConfig list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ActiveDirectoryConfig list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listBySubscriptionNextSinglePage(String nextLink) {
+ if (nextLink == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res
+ = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ActiveDirectoryConfig list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listBySubscriptionNextSinglePage(String nextLink,
+ Context context) {
+ if (nextLink == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res
+ = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ActiveDirectoryConfigsClientImpl.class);
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigsImpl.java
new file mode 100644
index 000000000000..57f4f5033f33
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigsImpl.java
@@ -0,0 +1,145 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.netapp.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient;
+import com.azure.resourcemanager.netapp.fluent.models.ActiveDirectoryConfigInner;
+import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfig;
+import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigs;
+
+public final class ActiveDirectoryConfigsImpl implements ActiveDirectoryConfigs {
+ private static final ClientLogger LOGGER = new ClientLogger(ActiveDirectoryConfigsImpl.class);
+
+ private final ActiveDirectoryConfigsClient innerClient;
+
+ private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager;
+
+ public ActiveDirectoryConfigsImpl(ActiveDirectoryConfigsClient innerClient,
+ com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getByResourceGroupWithResponse(String resourceGroupName,
+ String activeDirectoryConfigName, Context context) {
+ Response inner = this.serviceClient()
+ .getByResourceGroupWithResponse(resourceGroupName, activeDirectoryConfigName, context);
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new ActiveDirectoryConfigImpl(inner.getValue(), this.manager()));
+ }
+
+ public ActiveDirectoryConfig getByResourceGroup(String resourceGroupName, String activeDirectoryConfigName) {
+ ActiveDirectoryConfigInner inner
+ = this.serviceClient().getByResourceGroup(resourceGroupName, activeDirectoryConfigName);
+ if (inner != null) {
+ return new ActiveDirectoryConfigImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void deleteByResourceGroup(String resourceGroupName, String activeDirectoryConfigName) {
+ this.serviceClient().delete(resourceGroupName, activeDirectoryConfigName);
+ }
+
+ public void delete(String resourceGroupName, String activeDirectoryConfigName, Context context) {
+ this.serviceClient().delete(resourceGroupName, activeDirectoryConfigName, context);
+ }
+
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new ActiveDirectoryConfigImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable