diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 23e0ed2a0c274..2ec60fe5e3e72 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -302,7 +302,7 @@ com.azure.resourcemanager:azure-resourcemanager-healthbot;1.2.0;1.3.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-confluent;1.2.0;1.3.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-digitaltwins;1.3.0;1.4.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-discovery;1.0.0-beta.1;1.0.0-beta.2
-com.azure.resourcemanager:azure-resourcemanager-netapp;2.4.0;2.5.0-beta.3
+com.azure.resourcemanager:azure-resourcemanager-netapp;2.4.0;2.5.0
com.azure.resourcemanager:azure-resourcemanager-storagecache;1.3.0;1.4.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-redisenterprise;2.1.0;2.2.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-hybridkubernetes;1.0.0;1.1.0-beta.2
diff --git a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md
index 7b9717a4c99ba..edc3c5c505b06 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md
+++ b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md
@@ -1,14 +1,87 @@
# Release History
-## 2.5.0-beta.3 (Unreleased)
+## 2.5.0 (2026-10-15)
-### 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-07-01. 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
+* `withEncryption(models.AccountEncryption)` was removed
+* `provisioningState()` was removed
+* `id()` was removed
+* `withNfsV4IdDomain(java.lang.String)` was removed
+* `name()` was removed
+* `disableShowmount()` was removed
+* `type()` was removed
+* `nfsV4IdDomain()` was removed
+* `multiAdStatus()` was removed
+* `models.AccountEncryption encryption()` -> `models.AccountEncryptionPatch encryption()`
+* `location()` was removed
+* `withLocation(java.lang.String)` was removed
+
+#### `models.NetAppAccount$Update` was modified
+
+* `withActiveDirectories(java.util.List)` was removed
+* `withEncryption(models.AccountEncryption)` was removed
+* `withNfsV4IdDomain(java.lang.String)` was removed
+
+### Features Added
+
+* `models.LdapConfiguration` was added
+
+* `models.AccountEncryptionPatch` was added
+
+* `models.EncryptionIdentityPatch` was added
+
+* `models.KeyVaultPropertiesPatch` was added
+
+* `models.BindPasswordAkvConfigPatch` was added
+
+* `models.BindPasswordAkvConfig` was added
+
+* `models.LdapConfigurationPatch` was added
+
+* `models.BindAuthenticationLevel` was added
+
+* `models.SecureLdapType` was added
+
+* `models.ActiveDirectoryPatch` was added
+
+#### `models.NetAppAccount$Definition` was modified
+
+* `withLdapConfiguration(models.LdapConfiguration)` was added
+
+#### `models.ProvisioningState` was modified
+
+* `CANCELED` was added
+
+#### `models.NetAppAccountPatch` was modified
+
+* `nfsV4IDDomain()` was added
+* `withEncryption(models.AccountEncryptionPatch)` was added
+* `withLdapConfiguration(models.LdapConfigurationPatch)` was added
+* `withNfsV4IDDomain(java.lang.String)` was added
+* `ldapConfiguration()` was added
+
+#### `models.NetAppAccount$Update` was modified
+
+* `withLdapConfiguration(models.LdapConfigurationPatch)` was added
+* `withActiveDirectoriesForUpdate(java.util.List)` was added
+* `withEncryption(models.AccountEncryptionPatch)` was added
+* `withNfsV4IDDomain(java.lang.String)` 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
+* `ldapConfiguration()` was added
+* `refreshLdapBindPassword(com.azure.core.util.Context)` was added
## 2.5.0-beta.2 (2026-08-26)
diff --git a/sdk/netapp/azure-resourcemanager-netapp/README.md b/sdk/netapp/azure-resourcemanager-netapp/README.md
index 6ddf725d9f721..24e00aa6c8e50 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-06-15-preview. 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-07-01. 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.5.0-beta.2
+ 2.5.0
```
[//]: # ({x-version-update-end})
diff --git a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md
index aa82840d8d794..371441625fd76 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md
+++ b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md
@@ -15,15 +15,6 @@
- [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)
@@ -84,74 +75,6 @@
- [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)
@@ -282,7 +205,7 @@ import java.util.Arrays;
*/
public final class AccountsChangeKeyVaultSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Accounts_ChangeKeyVault.json
+ * x-ms-original-file: 2026-07-01/Accounts_ChangeKeyVault.json
*/
/**
* Sample code: Accounts_ChangeKeyVault.
@@ -318,7 +241,7 @@ import java.util.Arrays;
*/
public final class AccountsCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Accounts_CreateOrUpdate.json
+ * x-ms-original-file: 2026-07-01/Accounts_CreateOrUpdate.json
*/
/**
* Sample code: Accounts_CreateOrUpdate.
@@ -330,7 +253,7 @@ public final class AccountsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: 2026-06-15-preview/Accounts_CreateOrUpdateAD.json
+ * x-ms-original-file: 2026-07-01/Accounts_CreateOrUpdateAD.json
*/
/**
* Sample code: Accounts_CreateOrUpdateWithActiveDirectory.
@@ -357,7 +280,7 @@ public final class AccountsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: 2026-06-15-preview/Accounts_CreateOrUpdateLdapConfig.json
+ * x-ms-original-file: 2026-07-01/Accounts_CreateOrUpdateLdapConfig.json
*/
/**
* Sample code: Accounts_CreateOrUpdateLdapConfig.
@@ -397,7 +320,7 @@ public final class AccountsCreateOrUpdateSamples {
*/
public final class AccountsDeleteSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Accounts_Delete.json
+ * x-ms-original-file: 2026-07-01/Accounts_Delete.json
*/
/**
* Sample code: Accounts_Delete.
@@ -418,7 +341,7 @@ public final class AccountsDeleteSamples {
*/
public final class AccountsGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Accounts_Get.json
+ * x-ms-original-file: 2026-07-01/Accounts_Get.json
*/
/**
* Sample code: Accounts_Get.
@@ -439,7 +362,7 @@ public final class AccountsGetByResourceGroupSamples {
*/
public final class AccountsGetChangeKeyVaultInformationSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Accounts_GetChangeKeyVaultInformation.json
+ * x-ms-original-file: 2026-07-01/Accounts_GetChangeKeyVaultInformation.json
*/
/**
* Sample code: Accounts_GetChangeKeyVaultInformation.
@@ -461,7 +384,7 @@ public final class AccountsGetChangeKeyVaultInformationSamples {
*/
public final class AccountsListSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Accounts_ListBySubscription.json
+ * x-ms-original-file: 2026-07-01/Accounts_ListBySubscription.json
*/
/**
* Sample code: Accounts_ListBySubscription.
@@ -482,7 +405,7 @@ public final class AccountsListSamples {
*/
public final class AccountsListByResourceGroupSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Accounts_List.json
+ * x-ms-original-file: 2026-07-01/Accounts_List.json
*/
/**
* Sample code: Accounts_List.
@@ -503,7 +426,7 @@ public final class AccountsListByResourceGroupSamples {
*/
public final class AccountsRefreshLdapBindPasswordSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Accounts_RefreshLdapBindPassword.json
+ * x-ms-original-file: 2026-07-01/Accounts_RefreshLdapBindPassword.json
*/
/**
* Sample code: NetAppAccounts_RefreshLdapBindPassword.
@@ -525,7 +448,7 @@ public final class AccountsRefreshLdapBindPasswordSamples {
*/
public final class AccountsRenewCredentialsSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Accounts_RenewCredentials.json
+ * x-ms-original-file: 2026-07-01/Accounts_RenewCredentials.json
*/
/**
* Sample code: Accounts_RenewCredentials.
@@ -548,7 +471,7 @@ import com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest;
*/
public final class AccountsTransitionToCmkSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Accounts_TransitionEncryptionKey.json
+ * x-ms-original-file: 2026-07-01/Accounts_TransitionEncryptionKey.json
*/
/**
* Sample code: Accounts_MigrateEncryptionKey.
@@ -569,7 +492,10 @@ public final class AccountsTransitionToCmkSamples {
### Accounts_Update
```java
+import com.azure.resourcemanager.netapp.models.LdapConfigurationPatch;
import com.azure.resourcemanager.netapp.models.NetAppAccount;
+import com.azure.resourcemanager.netapp.models.SecureLdapType;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
@@ -578,7 +504,7 @@ import java.util.Map;
*/
public final class AccountsUpdateSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Accounts_Update.json
+ * x-ms-original-file: 2026-07-01/Accounts_Update.json
*/
/**
* Sample code: Accounts_Update.
@@ -589,76 +515,13 @@ public final class AccountsUpdateSamples {
NetAppAccount resource = manager.accounts()
.getByResourceGroupWithResponse("myRG", "account1", 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;
- }
-}
-```
-
-### 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-06-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();
+ resource.update()
+ .withTags(mapOf("Tag1", "Value1"))
+ .withLdapConfiguration(new LdapConfigurationPatch().withDomain("example.com")
+ .withLdapServers(Arrays.asList("192.0.2.1", "192.0.2.2"))
+ .withSecureLdapType(SecureLdapType.LDAP_OVER_TLS)
+ .withLdapPort(636))
+ .apply();
}
// Use "Map.of" if available
@@ -675,122 +538,6 @@ public final class ActiveDirectoryConfigsCreateOrUpdateSamples {
}
```
-### ActiveDirectoryConfigs_Delete
-
-```java
-/**
- * Samples for ActiveDirectoryConfigs Delete.
- */
-public final class ActiveDirectoryConfigsDeleteSamples {
- /*
- * x-ms-original-file: 2026-06-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-06-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-06-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-06-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-06-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
@@ -799,7 +546,7 @@ public final class ActiveDirectoryConfigsUpdateSamples {
*/
public final class BackupPoliciesCreateSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/BackupPolicies_Create.json
+ * x-ms-original-file: 2026-07-01/BackupPolicies_Create.json
*/
/**
* Sample code: BackupPolicies_Create.
@@ -828,7 +575,7 @@ public final class BackupPoliciesCreateSamples {
*/
public final class BackupPoliciesDeleteSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/BackupPolicies_Delete.json
+ * x-ms-original-file: 2026-07-01/BackupPolicies_Delete.json
*/
/**
* Sample code: BackupPolicies_Delete.
@@ -850,7 +597,7 @@ public final class BackupPoliciesDeleteSamples {
*/
public final class BackupPoliciesGetSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/BackupPolicies_Get.json
+ * x-ms-original-file: 2026-07-01/BackupPolicies_Get.json
*/
/**
* Sample code: BackupPolicies_Get.
@@ -872,7 +619,7 @@ public final class BackupPoliciesGetSamples {
*/
public final class BackupPoliciesListSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/BackupPolicies_List.json
+ * x-ms-original-file: 2026-07-01/BackupPolicies_List.json
*/
/**
* Sample code: BackupPolicies_List.
@@ -895,7 +642,7 @@ import com.azure.resourcemanager.netapp.models.BackupPolicy;
*/
public final class BackupPoliciesUpdateSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/BackupPolicies_Update.json
+ * x-ms-original-file: 2026-07-01/BackupPolicies_Update.json
*/
/**
* Sample code: BackupPolicies_Update.
@@ -924,7 +671,7 @@ public final class BackupPoliciesUpdateSamples {
*/
public final class BackupVaultsCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/BackupVaults_Create.json
+ * x-ms-original-file: 2026-07-01/BackupVaults_Create.json
*/
/**
* Sample code: BackupVault_CreateOrUpdate.
@@ -949,7 +696,7 @@ public final class BackupVaultsCreateOrUpdateSamples {
*/
public final class BackupVaultsDeleteSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/BackupVaults_Delete.json
+ * x-ms-original-file: 2026-07-01/BackupVaults_Delete.json
*/
/**
* Sample code: BackupVaults_Delete.
@@ -970,7 +717,7 @@ public final class BackupVaultsDeleteSamples {
*/
public final class BackupVaultsGetSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/BackupVaults_Get.json
+ * x-ms-original-file: 2026-07-01/BackupVaults_Get.json
*/
/**
* Sample code: BackupVaults_Get.
@@ -991,7 +738,7 @@ public final class BackupVaultsGetSamples {
*/
public final class BackupVaultsListByNetAppAccountSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/BackupVaults_List.json
+ * x-ms-original-file: 2026-07-01/BackupVaults_List.json
*/
/**
* Sample code: BackupVaults_List.
@@ -1016,7 +763,7 @@ import java.util.Map;
*/
public final class BackupVaultsUpdateSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/BackupVaults_Update.json
+ * x-ms-original-file: 2026-07-01/BackupVaults_Update.json
*/
/**
* Sample code: BackupVaults_Update.
@@ -1052,7 +799,7 @@ public final class BackupVaultsUpdateSamples {
*/
public final class BackupsCreateSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/BackupsUnderBackupVault_Create.json
+ * x-ms-original-file: 2026-07-01/BackupsUnderBackupVault_Create.json
*/
/**
* Sample code: BackupsUnderBackupVault_Create.
@@ -1079,7 +826,7 @@ public final class BackupsCreateSamples {
*/
public final class BackupsDeleteSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/BackupsUnderBackupVault_Delete.json
+ * x-ms-original-file: 2026-07-01/BackupsUnderBackupVault_Delete.json
*/
/**
* Sample code: BackupsUnderBackupVault_Delete.
@@ -1101,7 +848,7 @@ public final class BackupsDeleteSamples {
*/
public final class BackupsGetSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/BackupsUnderBackupVault_Get.json
+ * x-ms-original-file: 2026-07-01/BackupsUnderBackupVault_Get.json
*/
/**
* Sample code: BackupsUnderBackupVault_Get.
@@ -1123,7 +870,7 @@ public final class BackupsGetSamples {
*/
public final class BackupsGetLatestStatusSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_LatestBackupStatus.json
+ * x-ms-original-file: 2026-07-01/Volumes_LatestBackupStatus.json
*/
/**
* Sample code: Volumes_BackupStatus.
@@ -1145,7 +892,7 @@ public final class BackupsGetLatestStatusSamples {
*/
public final class BackupsGetVolumeLatestRestoreStatusSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_LatestRestoreStatus.json
+ * x-ms-original-file: 2026-07-01/Volumes_LatestRestoreStatus.json
*/
/**
* Sample code: Volumes_RestoreStatus.
@@ -1168,14 +915,14 @@ public final class BackupsGetVolumeLatestRestoreStatusSamples {
*/
public final class BackupsListByVaultSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Backups_ListByVault.json
+ * x-ms-original-file: 2026-07-01/BackupsUnderBackupVault_List.json
*/
/**
- * Sample code: Backups_ListByVault.
+ * Sample code: Backups_List.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void backupsListByVault(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ public static void backupsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.backups().listByVault("myRG", "account1", "backupVault1", null, com.azure.core.util.Context.NONE);
}
}
@@ -1191,7 +938,7 @@ import com.azure.resourcemanager.netapp.models.Backup;
*/
public final class BackupsUpdateSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/BackupsUnderBackupVault_Update.json
+ * x-ms-original-file: 2026-07-01/BackupsUnderBackupVault_Update.json
*/
/**
* Sample code: BackupsUnderBackupVault_Update.
@@ -1217,7 +964,7 @@ import com.azure.resourcemanager.netapp.models.BackupsMigrationRequest;
*/
public final class BackupsUnderAccountMigrateBackupsSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/BackupsUnderAccount_Migrate.json
+ * x-ms-original-file: 2026-07-01/BackupsUnderAccount_Migrate.json
*/
/**
* Sample code: BackupsUnderAccount_Migrate.
@@ -1244,7 +991,7 @@ import java.util.Arrays;
*/
public final class BackupsUnderBackupVaultRestoreFilesSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/BackupsUnderBackupVault_SingleFileRestore.json
+ * x-ms-original-file: 2026-07-01/BackupsUnderBackupVault_SingleFileRestore.json
*/
/**
* Sample code: Backups_SingleFileRestore.
@@ -1272,7 +1019,7 @@ import com.azure.resourcemanager.netapp.models.BackupsMigrationRequest;
*/
public final class BackupsUnderVolumeMigrateBackupsSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/BackupsUnderVolume_Migrate.json
+ * x-ms-original-file: 2026-07-01/BackupsUnderVolume_Migrate.json
*/
/**
* Sample code: BackupsUnderVolume_Migrate.
@@ -1305,7 +1052,7 @@ import com.azure.resourcemanager.netapp.models.OnCertificateConflictAction;
*/
public final class BucketsCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Buckets_CreateOrUpdate.json
+ * x-ms-original-file: 2026-07-01/Buckets_CreateOrUpdate.json
*/
/**
* Sample code: Buckets_CreateOrUpdate.
@@ -1326,7 +1073,7 @@ public final class BucketsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: 2026-06-15-preview/Buckets_CreateOrUpdateWithAkv.json
+ * x-ms-original-file: 2026-07-01/Buckets_CreateOrUpdateWithAkv.json
*/
/**
* Sample code: Buckets_CreateOrUpdateWithAkv.
@@ -1342,16 +1089,13 @@ 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")
- .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")))
+ .withAkvDetails(new AzureKeyVaultDetails()
+ .withCertificateAkvDetails(
+ new CertificateAkvDetails().withCertificateKeyVaultUri("fakeTokenPlaceholder")
+ .withCertificateName("my-certificate"))
+ .withCredentialsAkvDetails(
+ new CredentialsAkvDetails().withCredentialsKeyVaultUri("fakeTokenPlaceholder")
+ .withSecretName("fakeTokenPlaceholder")))
.create();
}
}
@@ -1365,7 +1109,7 @@ public final class BucketsCreateOrUpdateSamples {
*/
public final class BucketsDeleteSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Buckets_Delete.json
+ * x-ms-original-file: 2026-07-01/Buckets_Delete.json
*/
/**
* Sample code: Buckets_Delete.
@@ -1388,7 +1132,7 @@ import com.azure.resourcemanager.netapp.models.BucketCredentialsExpiry;
*/
public final class BucketsGenerateAkvCredentialsSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Buckets_GenerateAkvCredentials.json
+ * x-ms-original-file: 2026-07-01/Buckets_GenerateAkvCredentials.json
*/
/**
* Sample code: Buckets_GenerateAkvCredentials.
@@ -1413,7 +1157,7 @@ import com.azure.resourcemanager.netapp.models.BucketCredentialsExpiry;
*/
public final class BucketsGenerateCredentialsSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Buckets_GenerateCredentials.json
+ * x-ms-original-file: 2026-07-01/Buckets_GenerateCredentials.json
*/
/**
* Sample code: Buckets_GenerateCredentials.
@@ -1436,7 +1180,7 @@ public final class BucketsGenerateCredentialsSamples {
*/
public final class BucketsGetSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Buckets_Get.json
+ * x-ms-original-file: 2026-07-01/Buckets_Get.json
*/
/**
* Sample code: Buckets_Get.
@@ -1458,7 +1202,7 @@ public final class BucketsGetSamples {
*/
public final class BucketsListSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Buckets_List.json
+ * x-ms-original-file: 2026-07-01/Buckets_List.json
*/
/**
* Sample code: Buckets_List.
@@ -1479,7 +1223,7 @@ public final class BucketsListSamples {
*/
public final class BucketsRefreshCertificateSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Buckets_RefreshCertificate.json
+ * x-ms-original-file: 2026-07-01/Buckets_RefreshCertificate.json
*/
/**
* Sample code: Buckets_RefreshCertificate.
@@ -1509,7 +1253,7 @@ import com.azure.resourcemanager.netapp.models.OnCertificateConflictAction;
*/
public final class BucketsUpdateSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Buckets_Update.json
+ * x-ms-original-file: 2026-07-01/Buckets_Update.json
*/
/**
* Sample code: Buckets_Update.
@@ -1529,7 +1273,7 @@ public final class BucketsUpdateSamples {
}
/*
- * x-ms-original-file: 2026-06-15-preview/Buckets_UpdateWithAkv.json
+ * x-ms-original-file: 2026-07-01/Buckets_UpdateWithAkv.json
*/
/**
* Sample code: Buckets_UpdateWithAkv.
@@ -1544,16 +1288,13 @@ 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")
- .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")))
+ .withAkvDetails(new AzureKeyVaultDetails()
+ .withCertificateAkvDetails(
+ new CertificateAkvDetails().withCertificateKeyVaultUri("fakeTokenPlaceholder")
+ .withCertificateName("my-certificate"))
+ .withCredentialsAkvDetails(
+ new CredentialsAkvDetails().withCredentialsKeyVaultUri("fakeTokenPlaceholder")
+ .withSecretName("fakeTokenPlaceholder")))
.apply();
}
}
@@ -1574,7 +1315,7 @@ import java.util.Arrays;
*/
public final class CachesCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Caches_CreateOrUpdate.json
+ * x-ms-original-file: 2026-07-01/Caches_CreateOrUpdate.json
*/
/**
* Sample code: Caches_CreateOrUpdate.
@@ -1612,7 +1353,7 @@ public final class CachesCreateOrUpdateSamples {
*/
public final class CachesDeleteSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Caches_Delete.json
+ * x-ms-original-file: 2026-07-01/Caches_Delete.json
*/
/**
* Sample code: Caches_Delete.
@@ -1633,7 +1374,7 @@ public final class CachesDeleteSamples {
*/
public final class CachesGetSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Caches_Get.json
+ * x-ms-original-file: 2026-07-01/Caches_Get.json
*/
/**
* Sample code: Caches_Get.
@@ -1654,7 +1395,7 @@ public final class CachesGetSamples {
*/
public final class CachesListSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Caches_List.json
+ * x-ms-original-file: 2026-07-01/Caches_List.json
*/
/**
* Sample code: Caches_List.
@@ -1675,7 +1416,7 @@ public final class CachesListSamples {
*/
public final class CachesListPeeringPassphrasesSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Caches_ListPeeringPassphrases.json
+ * x-ms-original-file: 2026-07-01/Caches_ListPeeringPassphrases.json
*/
/**
* Sample code: Caches_ListPeeringPassphrases.
@@ -1700,7 +1441,7 @@ import com.azure.resourcemanager.netapp.models.PoolChangeRequest;
*/
public final class CachesPoolChangeSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Caches_PoolChange.json
+ * x-ms-original-file: 2026-07-01/Caches_PoolChange.json
*/
/**
* Sample code: Caches_PoolChange.
@@ -1724,7 +1465,7 @@ public final class CachesPoolChangeSamples {
*/
public final class CachesResetSmbPasswordSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Caches_ResetSmbPassword.json
+ * x-ms-original-file: 2026-07-01/Caches_ResetSmbPassword.json
*/
/**
* Sample code: Caches_ResetSmbPassword.
@@ -1749,7 +1490,7 @@ import com.azure.resourcemanager.netapp.models.CacheUpdateProperties;
*/
public final class CachesUpdateSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Caches_Update.json
+ * x-ms-original-file: 2026-07-01/Caches_Update.json
*/
/**
* Sample code: Caches_Update.
@@ -1765,2643 +1506,1053 @@ public final class CachesUpdateSamples {
}
```
-### ElasticAccounts_CreateOrUpdate
+### NetAppResource_CheckFilePathAvailability
```java
-import com.azure.resourcemanager.netapp.models.ElasticAccountProperties;
-import java.util.HashMap;
-import java.util.Map;
+import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest;
/**
- * Samples for ElasticAccounts CreateOrUpdate.
+ * Samples for NetAppResource CheckFilePathAvailability.
*/
-public final class ElasticAccountsCreateOrUpdateSamples {
+public final class NetAppResourceCheckFilePathAvailabilitySamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticAccounts_CreateOrUpdate.json
+ * x-ms-original-file: 2026-07-01/CheckFilePathAvailability.json
*/
/**
- * Sample code: ElasticAccounts_CreateOrUpdate.
+ * Sample code: CheckFilePathAvailability.
*
* @param manager Entry point to NetAppFilesManager.
*/
- 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;
+ public static void checkFilePathAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResources()
+ .checkFilePathAvailabilityWithResponse("eastus", new FilePathAvailabilityRequest()
+ .withName("my-exact-filepth")
+ .withSubnetId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"),
+ com.azure.core.util.Context.NONE);
}
}
```
-### ElasticAccounts_Delete
+### NetAppResource_CheckNameAvailability
```java
+import com.azure.resourcemanager.netapp.models.CheckNameResourceTypes;
+import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest;
+
/**
- * Samples for ElasticAccounts Delete.
+ * Samples for NetAppResource CheckNameAvailability.
*/
-public final class ElasticAccountsDeleteSamples {
+public final class NetAppResourceCheckNameAvailabilitySamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticAccounts_Delete.json
+ * x-ms-original-file: 2026-07-01/CheckNameAvailability.json
*/
/**
- * Sample code: ElasticAccounts_Delete.
+ * Sample code: CheckNameAvailability.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void elasticAccountsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticAccounts().delete("myRG", "account1", com.azure.core.util.Context.NONE);
+ 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);
}
}
```
-### ElasticAccounts_GetByResourceGroup
+### NetAppResource_CheckQuotaAvailability
```java
+import com.azure.resourcemanager.netapp.models.CheckQuotaNameResourceTypes;
+import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest;
+
/**
- * Samples for ElasticAccounts GetByResourceGroup.
+ * Samples for NetAppResource CheckQuotaAvailability.
*/
-public final class ElasticAccountsGetByResourceGroupSamples {
+public final class NetAppResourceCheckQuotaAvailabilitySamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticAccounts_Get.json
+ * x-ms-original-file: 2026-07-01/CheckQuotaAvailability.json
*/
/**
- * Sample code: ElasticAccounts_Get.
+ * Sample code: CheckQuotaAvailability.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void elasticAccountsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticAccounts().getByResourceGroupWithResponse("myRG", "account1", com.azure.core.util.Context.NONE);
+ 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);
}
}
```
-### ElasticAccounts_List
+### NetAppResource_QueryNetworkSiblingSet
```java
+import com.azure.resourcemanager.netapp.models.QueryNetworkSiblingSetRequest;
+
/**
- * Samples for ElasticAccounts List.
+ * Samples for NetAppResource QueryNetworkSiblingSet.
*/
-public final class ElasticAccountsListSamples {
+public final class NetAppResourceQueryNetworkSiblingSetSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticAccounts_ListBySubscription.json
+ * x-ms-original-file: 2026-07-01/NetworkSiblingSet_Query.json
*/
/**
- * Sample code: ElasticAccounts_ListBySubscription.
+ * Sample code: NetworkSiblingSet_Query.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void elasticAccountsListBySubscription(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticAccounts().list(com.azure.core.util.Context.NONE);
+ 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);
}
}
```
-### ElasticAccounts_ListByResourceGroup
+### NetAppResource_QueryRegionInfo
```java
/**
- * Samples for ElasticAccounts ListByResourceGroup.
+ * Samples for NetAppResource QueryRegionInfo.
*/
-public final class ElasticAccountsListByResourceGroupSamples {
+public final class NetAppResourceQueryRegionInfoSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticAccounts_ListByResourceGroup.json
+ * x-ms-original-file: 2026-07-01/RegionInfo.json
*/
/**
- * Sample code: ElasticAccounts_ListByResourceGroup.
+ * Sample code: RegionInfo_Query.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void elasticAccountsListByResourceGroup(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticAccounts().listByResourceGroup("myRG", com.azure.core.util.Context.NONE);
+ public static void regionInfoQuery(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResources().queryRegionInfoWithResponse("eastus", com.azure.core.util.Context.NONE);
}
}
```
-### ElasticAccounts_Update
+### NetAppResource_UpdateNetworkSiblingSet
```java
-import com.azure.resourcemanager.netapp.models.ElasticAccount;
-import java.util.HashMap;
-import java.util.Map;
+import com.azure.resourcemanager.netapp.models.NetworkFeatures;
+import com.azure.resourcemanager.netapp.models.UpdateNetworkSiblingSetRequest;
/**
- * Samples for ElasticAccounts Update.
+ * Samples for NetAppResource UpdateNetworkSiblingSet.
*/
-public final class ElasticAccountsUpdateSamples {
+public final class NetAppResourceUpdateNetworkSiblingSetSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticAccounts_Update.json
+ * x-ms-original-file: 2026-07-01/NetworkSiblingSet_Update.json
*/
/**
- * Sample code: ElasticAccounts_Update.
+ * Sample code: NetworkFeatures_Update.
*
* @param manager Entry point to NetAppFilesManager.
*/
- 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();
- }
-
- // 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;
+ 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);
}
}
```
-### ElasticBackupPolicies_CreateOrUpdate
+### NetAppResourceQuotaLimits_Get
```java
-import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyProperties;
-import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState;
-
/**
- * Samples for ElasticBackupPolicies CreateOrUpdate.
+ * Samples for NetAppResourceQuotaLimits Get.
*/
-public final class ElasticBackupPoliciesCreateOrUpdateSamples {
+public final class NetAppResourceQuotaLimitsGetSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticBackupPolicies_CreateOrUpdate.json
+ * x-ms-original-file: 2026-07-01/NetAppResourceQuotaLimits_Get.json
*/
/**
- * Sample code: ElasticBackupPolicies_CreateOrUpdate.
+ * Sample code: QuotaLimits.
*
* @param manager Entry point to NetAppFilesManager.
*/
- 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();
- }
+ public static void quotaLimits(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResourceQuotaLimits()
+ .getWithResponse("eastus", "totalCoolAccessVolumesPerSubscription", com.azure.core.util.Context.NONE);
+ }
}
```
-### ElasticBackupPolicies_Delete
+### NetAppResourceQuotaLimits_List
```java
/**
- * Samples for ElasticBackupPolicies Delete.
+ * Samples for NetAppResourceQuotaLimits List.
*/
-public final class ElasticBackupPoliciesDeleteSamples {
+public final class NetAppResourceQuotaLimitsListSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticBackupPolicies_Delete.json
+ * x-ms-original-file: 2026-07-01/NetAppResourceQuotaLimits_List.json
*/
/**
- * Sample code: ElasticBackupPolicies_Delete.
+ * Sample code: QuotaLimits.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void elasticBackupPoliciesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticBackupPolicies()
- .delete("resourceGroup", "accountName", "backupPolicyName", com.azure.core.util.Context.NONE);
+ public static void quotaLimits(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResourceQuotaLimits().list("eastus", com.azure.core.util.Context.NONE);
}
}
```
-### ElasticBackupPolicies_Get
+### NetAppResourceQuotaLimitsAccount_Get
```java
/**
- * Samples for ElasticBackupPolicies Get.
+ * Samples for NetAppResourceQuotaLimitsAccount Get.
*/
-public final class ElasticBackupPoliciesGetSamples {
+public final class NetAppResourceQuotaLimitsAccountGetSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticBackupPolicies_Get.json
+ * x-ms-original-file: 2026-07-01/NetAppResourceQuotaLimitsAccount_Get.json
*/
/**
- * Sample code: ElasticBackupPolicies_Get.
+ * Sample code: QuotaLimits.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void elasticBackupPoliciesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticBackupPolicies()
- .getWithResponse("myRG", "account1", "backupPolicyName", com.azure.core.util.Context.NONE);
+ public static void quotaLimits(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResourceQuotaLimitsAccounts()
+ .getWithResponse("myRG", "myAccount", "poolsPerAccount", com.azure.core.util.Context.NONE);
}
}
```
-### ElasticBackupPolicies_ListByElasticAccount
+### NetAppResourceQuotaLimitsAccount_List
```java
/**
- * Samples for ElasticBackupPolicies ListByElasticAccount.
+ * Samples for NetAppResourceQuotaLimitsAccount List.
*/
-public final class ElasticBackupPoliciesListByElasticAccountSamples {
+public final class NetAppResourceQuotaLimitsAccountListSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticBackupPolicies_List.json
+ * x-ms-original-file: 2026-07-01/NetAppResourceQuotaLimitsAccount_List.json
*/
/**
- * Sample code: ElasticBackupPolicies_ListByElasticAccount.
+ * Sample code: QuotaLimits.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void
- elasticBackupPoliciesListByElasticAccount(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticBackupPolicies().listByElasticAccount("myRG", "account1", com.azure.core.util.Context.NONE);
+ public static void quotaLimits(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResourceQuotaLimitsAccounts().list("myRG", "myAccount", com.azure.core.util.Context.NONE);
}
}
```
-### ElasticBackupPolicies_Update
+### NetAppResourceRegionInfos_Get
```java
-import com.azure.resourcemanager.netapp.models.ElasticBackupPolicy;
-import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState;
-import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyUpdateProperties;
-
/**
- * Samples for ElasticBackupPolicies Update.
+ * Samples for NetAppResourceRegionInfos Get.
*/
-public final class ElasticBackupPoliciesUpdateSamples {
+public final class NetAppResourceRegionInfosGetSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticBackupPolicies_Update.json
+ * x-ms-original-file: 2026-07-01/RegionInfos_Get.json
*/
/**
- * Sample code: ElasticBackupPolicies_Update.
+ * Sample code: RegionInfos_Get.
*
* @param manager Entry point to NetAppFilesManager.
*/
- 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();
+ public static void regionInfosGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResourceRegionInfos().getWithResponse("eastus", com.azure.core.util.Context.NONE);
}
}
```
-### ElasticBackupVaults_CreateOrUpdate
+### NetAppResourceRegionInfos_List
```java
/**
- * Samples for ElasticBackupVaults CreateOrUpdate.
+ * Samples for NetAppResourceRegionInfos List.
*/
-public final class ElasticBackupVaultsCreateOrUpdateSamples {
+public final class NetAppResourceRegionInfosListSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticBackupVaults_Create.json
+ * x-ms-original-file: 2026-07-01/RegionInfos_List.json
*/
/**
- * Sample code: ElasticBackupVaults_CreateOrUpdate.
+ * Sample code: RegionInfos_List.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void elasticBackupVaultsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticBackupVaults()
- .define("backupVault1")
- .withRegion("eastus")
- .withExistingElasticAccount("myRG", "account1")
- .create();
+ public static void regionInfosList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResourceRegionInfos().list("eastus", com.azure.core.util.Context.NONE);
}
}
```
-### ElasticBackupVaults_Delete
+### NetAppResourceUsages_Get
```java
/**
- * Samples for ElasticBackupVaults Delete.
+ * Samples for NetAppResourceUsages Get.
*/
-public final class ElasticBackupVaultsDeleteSamples {
+public final class NetAppResourceUsagesGetSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticBackupVaults_Delete.json
+ * x-ms-original-file: 2026-07-01/Usages_Get.json
*/
/**
- * Sample code: ElasticBackupVaults_Delete.
+ * Sample code: Usages_Get.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void elasticBackupVaultsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticBackupVaults()
- .delete("resourceGroup", "account1", "backupVault1", com.azure.core.util.Context.NONE);
+ public static void usagesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResourceUsages()
+ .getWithResponse("eastus", "totalTibsPerSubscription", com.azure.core.util.Context.NONE);
}
}
```
-### ElasticBackupVaults_Get
+### NetAppResourceUsages_List
```java
/**
- * Samples for ElasticBackupVaults Get.
+ * Samples for NetAppResourceUsages List.
*/
-public final class ElasticBackupVaultsGetSamples {
+public final class NetAppResourceUsagesListSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticBackupVaults_Get.json
+ * x-ms-original-file: 2026-07-01/Usages_List.json
*/
/**
- * Sample code: ElasticBackupVaults_Get.
+ * Sample code: Usages_List.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void elasticBackupVaultsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticBackupVaults()
- .getWithResponse("myRG", "account1", "backupVault1", com.azure.core.util.Context.NONE);
+ public static void usagesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResourceUsages().list("eastus", com.azure.core.util.Context.NONE);
}
}
```
-### ElasticBackupVaults_ListByElasticAccount
+### Operations_List
```java
/**
- * Samples for ElasticBackupVaults ListByElasticAccount.
+ * Samples for Operations List.
*/
-public final class ElasticBackupVaultsListByElasticAccountSamples {
+public final class OperationsListSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticBackupVaults_ListByElasticAccount.json
+ * x-ms-original-file: 2026-07-01/OperationList.json
*/
/**
- * Sample code: ElasticBackupVaults_ListByElasticAccount.
+ * Sample code: OperationList.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void
- elasticBackupVaultsListByElasticAccount(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticBackupVaults().listByElasticAccount("myRG", "account1", com.azure.core.util.Context.NONE);
+ public static void operationList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.operations().list(com.azure.core.util.Context.NONE);
}
}
```
-### ElasticBackupVaults_Update
+### Pools_CreateOrUpdate
```java
-import com.azure.resourcemanager.netapp.models.ElasticBackupVault;
-import java.util.HashMap;
-import java.util.Map;
+import com.azure.resourcemanager.netapp.models.QosType;
+import com.azure.resourcemanager.netapp.models.ServiceLevel;
/**
- * Samples for ElasticBackupVaults Update.
+ * Samples for Pools CreateOrUpdate.
*/
-public final class ElasticBackupVaultsUpdateSamples {
+public final class PoolsCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticBackupVaults_Update.json
+ * x-ms-original-file: 2026-07-01/Pools_CreateOrUpdate.json
*/
/**
- * Sample code: ElasticBackupVaults_Update.
+ * Sample code: Pools_CreateOrUpdate.
*
* @param manager Entry point to NetAppFilesManager.
*/
- 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();
+ 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();
}
- // 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;
+ /*
+ * x-ms-original-file: 2026-07-01/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();
}
}
```
-### ElasticBackups_CreateOrUpdate
+### Pools_Delete
```java
-import com.azure.resourcemanager.netapp.models.ElasticBackupProperties;
-import com.azure.resourcemanager.netapp.models.SnapshotUsage;
-
/**
- * Samples for ElasticBackups CreateOrUpdate.
+ * Samples for Pools Delete.
*/
-public final class ElasticBackupsCreateOrUpdateSamples {
+public final class PoolsDeleteSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticBackups_CreateOrUpdate.json
+ * x-ms-original-file: 2026-07-01/Pools_Delete.json
*/
/**
- * Sample code: ElasticBackups_CreateOrUpdate.
+ * Sample code: Pools_Delete.
*
* @param manager Entry point to NetAppFilesManager.
*/
- 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();
+ public static void poolsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.pools().delete("myRG", "account1", "pool1", com.azure.core.util.Context.NONE);
}
}
```
-### ElasticBackups_Delete
+### Pools_Get
```java
/**
- * Samples for ElasticBackups Delete.
+ * Samples for Pools Get.
*/
-public final class ElasticBackupsDeleteSamples {
+public final class PoolsGetSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticBackups_Delete.json
+ * x-ms-original-file: 2026-07-01/Pools_Get_CustomThroughput.json
*/
/**
- * Sample code: ElasticBackups_Delete.
+ * Sample code: Pools_Get_CustomThroughput.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void elasticBackupsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticBackups()
- .delete("resourceGroup", "account1", "backupVault1", "backup1", com.azure.core.util.Context.NONE);
+ public static void poolsGetCustomThroughput(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.pools().getWithResponse("myRG", "account1", "customPool1", com.azure.core.util.Context.NONE);
}
-}
-```
-### ElasticBackups_Get
-
-```java
-/**
- * Samples for ElasticBackups Get.
- */
-public final class ElasticBackupsGetSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticBackups_Get.json
+ * x-ms-original-file: 2026-07-01/Pools_Get.json
*/
/**
- * Sample code: ElasticBackups_Get.
+ * Sample code: Pools_Get.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void elasticBackupsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticBackups()
- .getWithResponse("myRG", "account1", "backupVault1", "backup1", com.azure.core.util.Context.NONE);
+ public static void poolsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.pools().getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE);
}
}
```
-### ElasticBackups_ListByVault
+### Pools_List
```java
/**
- * Samples for ElasticBackups ListByVault.
+ * Samples for Pools List.
*/
-public final class ElasticBackupsListByVaultSamples {
+public final class PoolsListSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticBackups_ListByVault.json
+ * x-ms-original-file: 2026-07-01/Pools_List.json
*/
/**
- * Sample code: ElasticBackups_ListByVault.
+ * Sample code: Pools_List.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void elasticBackupsListByVault(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticBackups().listByVault("myRG", "account1", "backupVault1", com.azure.core.util.Context.NONE);
+ public static void poolsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.pools().list("myRG", "account1", com.azure.core.util.Context.NONE);
}
}
```
-### ElasticBackups_Update
+### Pools_Update
```java
-import com.azure.resourcemanager.netapp.models.ElasticBackup;
+import com.azure.resourcemanager.netapp.models.CapacityPool;
/**
- * Samples for ElasticBackups Update.
+ * Samples for Pools Update.
*/
-public final class ElasticBackupsUpdateSamples {
+public final class PoolsUpdateSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticBackups_Update.json
+ * x-ms-original-file: 2026-07-01/Pools_Update.json
*/
/**
- * Sample code: ElasticBackups_Update.
+ * Sample code: Pools_Update.
*
* @param manager Entry point to NetAppFilesManager.
*/
- 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)
+ 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-07-01/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();
}
}
```
-### ElasticCapacityPools_ChangeZone
+### RansomwareReports_ClearSuspects
```java
-import com.azure.resourcemanager.netapp.models.ChangeZoneRequest;
+import com.azure.resourcemanager.netapp.models.RansomwareSuspectResolution;
+import com.azure.resourcemanager.netapp.models.RansomwareSuspectsClearRequest;
+import java.util.Arrays;
/**
- * Samples for ElasticCapacityPools ChangeZone.
+ * Samples for RansomwareReports ClearSuspects.
*/
-public final class ElasticCapacityPoolsChangeZoneSamples {
+public final class RansomwareReportsClearSuspectsSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticCapacityPools_ChangeZone.json
+ * x-ms-original-file: 2026-07-01/RansomwareReports_ClearSuspects.json
*/
/**
- * Sample code: ElasticCapacityPools_ChangeZone.
+ * Sample code: RansomwareReports_ClearSuspects.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void elasticCapacityPoolsChangeZone(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticCapacityPools()
- .changeZone("myRG", "account1", "pool1", new ChangeZoneRequest().withNewZone("3"),
+ 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);
}
}
```
-### ElasticCapacityPools_CheckVolumeFilePathAvailability
+### RansomwareReports_Get
```java
-import com.azure.resourcemanager.netapp.models.CheckElasticVolumeFilePathAvailabilityRequest;
-
/**
- * Samples for ElasticCapacityPools CheckVolumeFilePathAvailability.
+ * Samples for RansomwareReports Get.
*/
-public final class ElasticCapacityPoolsCheckVolumeFilePathAvailabilitySamples {
+public final class RansomwareReportsGetSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticCapacityPools_CheckVolumeFilePathAvailability.json
+ * x-ms-original-file: 2026-07-01/RansomwareReports_Get.json
*/
/**
- * Sample code: ElasticCapacityPools_CheckVolumeFilePathAvailability.
+ * Sample code: RansomwareReports_Get.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void elasticCapacityPoolsCheckVolumeFilePathAvailability(
- com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticCapacityPools()
- .checkVolumeFilePathAvailabilityWithResponse("myRG", "account1", "pool1",
- new CheckElasticVolumeFilePathAvailabilityRequest().withFilePath("my-exact-filepath"),
+ public static void ransomwareReportsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.ransomwareReports()
+ .getWithResponse("myRG", "account1", "pool1", "volume1", "ransomwareReport1",
com.azure.core.util.Context.NONE);
}
}
```
-### ElasticCapacityPools_CreateOrUpdate
+### RansomwareReports_List
```java
-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 ElasticCapacityPools CreateOrUpdate.
+ * Samples for RansomwareReports List.
*/
-public final class ElasticCapacityPoolsCreateOrUpdateSamples {
+public final class RansomwareReportsListSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticCapacityPools_CreateOrUpdateCMK.json
+ * x-ms-original-file: 2026-07-01/RansomwareReports_List.json
*/
/**
- * Sample code: ElasticCapacityPools_CreateOrUpdateCMK.
+ * Sample code: RansomwareReports_List.
*
* @param manager Entry point to NetAppFilesManager.
*/
- 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();
+ 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-06-15-preview/ElasticCapacityPools_CreateOrUpdate.json
+ * x-ms-original-file: 2026-07-01/SnapshotPolicies_Create.json
*/
/**
- * Sample code: ElasticCapacityPools_CreateOrUpdate.
+ * Sample code: SnapshotPolicies_Create.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void elasticCapacityPoolsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticCapacityPools()
- .define("pool1")
+ public static void snapshotPoliciesCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.snapshotPolicies()
+ .define("snapshotPolicyName")
.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"))
+ .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();
}
}
```
-### ElasticCapacityPools_Delete
+### SnapshotPolicies_Delete
```java
/**
- * Samples for ElasticCapacityPools Delete.
+ * Samples for SnapshotPolicies Delete.
*/
-public final class ElasticCapacityPoolsDeleteSamples {
+public final class SnapshotPoliciesDeleteSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticCapacityPools_Delete.json
+ * x-ms-original-file: 2026-07-01/SnapshotPolicies_Delete.json
*/
/**
- * Sample code: ElasticCapacityPools_Delete.
+ * Sample code: SnapshotPolicies_Delete.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void elasticCapacityPoolsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticCapacityPools().delete("myRG", "account1", "pool1", com.azure.core.util.Context.NONE);
+ public static void snapshotPoliciesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.snapshotPolicies()
+ .delete("resourceGroup", "accountName", "snapshotPolicyName", com.azure.core.util.Context.NONE);
}
}
```
-### ElasticCapacityPools_Get
+### SnapshotPolicies_Get
```java
/**
- * Samples for ElasticCapacityPools Get.
+ * Samples for SnapshotPolicies Get.
*/
-public final class ElasticCapacityPoolsGetSamples {
+public final class SnapshotPoliciesGetSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticCapacityPools_Get.json
+ * x-ms-original-file: 2026-07-01/SnapshotPolicies_Get.json
*/
/**
- * Sample code: ElasticCapacityPools_Get.
+ * Sample code: SnapshotPolicies_Get.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void elasticCapacityPoolsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticCapacityPools().getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE);
+ public static void snapshotPoliciesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.snapshotPolicies()
+ .getWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE);
}
}
```
-### ElasticCapacityPools_ListByElasticAccount
+### SnapshotPolicies_List
```java
/**
- * Samples for ElasticCapacityPools ListByElasticAccount.
+ * Samples for SnapshotPolicies List.
*/
-public final class ElasticCapacityPoolsListByElasticAccountSamples {
+public final class SnapshotPoliciesListSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticCapacityPools_ListByElasticAccount.json
+ * x-ms-original-file: 2026-07-01/SnapshotPolicies_List.json
*/
/**
- * Sample code: ElasticCapacityPools_ListByElasticAccount.
+ * Sample code: SnapshotPolicies_List.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void
- elasticCapacityPoolsListByElasticAccount(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticCapacityPools().listByElasticAccount("myRG", "account1", com.azure.core.util.Context.NONE);
+ public static void snapshotPoliciesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.snapshotPolicies().list("myRG", "account1", com.azure.core.util.Context.NONE);
}
}
```
-### ElasticCapacityPools_Update
+### SnapshotPolicies_ListVolumes
```java
-import com.azure.resourcemanager.netapp.models.ElasticCapacityPool;
-import com.azure.resourcemanager.netapp.models.ElasticCapacityPoolUpdateProperties;
-
/**
- * Samples for ElasticCapacityPools Update.
+ * Samples for SnapshotPolicies ListVolumes.
*/
-public final class ElasticCapacityPoolsUpdateSamples {
+public final class SnapshotPoliciesListVolumesSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticCapacityPools_Update.json
+ * x-ms-original-file: 2026-07-01/SnapshotPolicies_ListVolumes.json
*/
/**
- * Sample code: ElasticCapacityPools_Update.
+ * Sample code: SnapshotPolicies_ListVolumes.
*
* @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-06-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();
- }
-}
-```
-
-### ElasticSnapshotPolicies_Delete
-
-```java
-/**
- * Samples for ElasticSnapshotPolicies Delete.
- */
-public final class ElasticSnapshotPoliciesDeleteSamples {
- /*
- * x-ms-original-file: 2026-06-15-preview/ElasticSnapshotPolicies_Delete.json
- */
- /**
- * Sample code: ElasticSnapshotPolicies_Delete.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void elasticSnapshotPoliciesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticSnapshotPolicies()
- .delete("resourceGroup", "accountName", "snapshotPolicyName", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ElasticSnapshotPolicies_Get
-
-```java
-/**
- * Samples for ElasticSnapshotPolicies Get.
- */
-public final class ElasticSnapshotPoliciesGetSamples {
- /*
- * x-ms-original-file: 2026-06-15-preview/ElasticSnapshotPolicies_Get.json
- */
- /**
- * Sample code: ElasticSnapshotPolicies_Get.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void elasticSnapshotPoliciesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticSnapshotPolicies()
- .getWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ElasticSnapshotPolicies_ListByElasticAccount
-
-```java
-/**
- * Samples for ElasticSnapshotPolicies ListByElasticAccount.
- */
-public final class ElasticSnapshotPoliciesListByElasticAccountSamples {
- /*
- * x-ms-original-file: 2026-06-15-preview/ElasticSnapshotPolicies_ListByElasticAccount.json
- */
- /**
- * Sample code: ElasticSnapshotPolicies_ListByElasticAccount.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void
- elasticSnapshotPoliciesListByElasticAccount(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticSnapshotPolicies().listByElasticAccount("myRG", "account1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ElasticSnapshotPolicies_ListElasticVolumes
-
-```java
-/**
- * Samples for ElasticSnapshotPolicies ListElasticVolumes.
- */
-public final class ElasticSnapshotPoliciesListElasticVolumesSamples {
- /*
- * x-ms-original-file: 2026-06-15-preview/ElasticSnapshotPolicies_ListElasticVolumes.json
- */
- /**
- * Sample code: ElasticSnapshotPolicies_ListElasticVolumes.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void
- elasticSnapshotPoliciesListElasticVolumes(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticSnapshotPolicies()
- .listElasticVolumes("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE);
+ public static void snapshotPoliciesListVolumes(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.snapshotPolicies()
+ .listVolumesWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE);
}
}
```
-### ElasticSnapshotPolicies_Update
+### SnapshotPolicies_Update
```java
-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;
+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 ElasticSnapshotPolicies Update.
+ * Samples for SnapshotPolicies Update.
*/
-public final class ElasticSnapshotPoliciesUpdateSamples {
+public final class SnapshotPoliciesUpdateSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticSnapshotPolicies_Update.json
+ * x-ms-original-file: 2026-07-01/SnapshotPolicies_Update.json
*/
/**
- * Sample code: ElasticSnapshotPolicies_Update.
+ * Sample code: SnapshotPolicies_Update.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void elasticSnapshotPoliciesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- ElasticSnapshotPolicy resource = manager.elasticSnapshotPolicies()
+ 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()
- .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))
+ .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();
}
}
```
-### ElasticSnapshots_CreateOrUpdate
+### Snapshots_Create
```java
/**
- * Samples for ElasticSnapshots CreateOrUpdate.
+ * Samples for Snapshots Create.
*/
-public final class ElasticSnapshotsCreateOrUpdateSamples {
+public final class SnapshotsCreateSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticSnapshots_CreateOrUpdate.json
+ * x-ms-original-file: 2026-07-01/Snapshots_Create.json
*/
/**
- * Sample code: ElasticSnapshots_CreateOrUpdate.
+ * Sample code: Snapshots_Create.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void elasticSnapshotsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticSnapshots()
+ public static void snapshotsCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.snapshots()
.define("snapshot1")
- .withExistingElasticVolume("myRG", "account1", "pool1", "volume1")
+ .withRegion("eastus")
+ .withExistingVolume("myRG", "account1", "pool1", "volume1")
.create();
}
}
```
-### ElasticSnapshots_Delete
+### Snapshots_Delete
```java
/**
- * Samples for ElasticSnapshots Delete.
+ * Samples for Snapshots Delete.
*/
-public final class ElasticSnapshotsDeleteSamples {
+public final class SnapshotsDeleteSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticSnapshots_Delete.json
+ * x-ms-original-file: 2026-07-01/Snapshots_Delete.json
*/
/**
- * Sample code: ElasticSnapshots_Delete.
+ * Sample code: Snapshots_Delete.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void elasticSnapshotsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticSnapshots()
+ public static void snapshotsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.snapshots()
.delete("myRG", "account1", "pool1", "volume1", "snapshot1", com.azure.core.util.Context.NONE);
}
}
```
-### ElasticSnapshots_Get
+### Snapshots_Get
```java
/**
- * Samples for ElasticSnapshots Get.
+ * Samples for Snapshots Get.
*/
-public final class ElasticSnapshotsGetSamples {
+public final class SnapshotsGetSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticSnapshots_Get.json
+ * x-ms-original-file: 2026-07-01/Snapshots_Get.json
*/
/**
- * Sample code: ElasticSnapshots_Get.
+ * Sample code: Snapshots_Get.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void elasticSnapshotsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticSnapshots()
+ public static void snapshotsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.snapshots()
.getWithResponse("myRG", "account1", "pool1", "volume1", "snapshot1", com.azure.core.util.Context.NONE);
}
}
```
-### ElasticSnapshots_ListByElasticVolume
+### Snapshots_List
```java
/**
- * Samples for ElasticSnapshots ListByElasticVolume.
+ * Samples for Snapshots List.
*/
-public final class ElasticSnapshotsListByElasticVolumeSamples {
+public final class SnapshotsListSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticSnapshots_ListByElasticVolume.json
+ * x-ms-original-file: 2026-07-01/Snapshots_List.json
*/
/**
- * Sample code: ElasticSnapshots_ListByElasticVolume.
+ * Sample code: Snapshots_List.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void
- elasticSnapshotsListByElasticVolume(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticSnapshots()
- .listByElasticVolume("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE);
+ public static void snapshotsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.snapshots().list("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE);
}
}
```
-### ElasticVolumes_CreateOrUpdate
+### Snapshots_RestoreFiles
```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.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 com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles;
import java.util.Arrays;
/**
- * Samples for ElasticVolumes CreateOrUpdate.
- */
-public final class ElasticVolumesCreateOrUpdateSamples {
- /*
- * x-ms-original-file: 2026-06-15-preview/ElasticVolumes_CreateOrUpdate.json
- */
- /**
- * Sample code: ElasticVolumes_CreateOrUpdate.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- 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();
- }
-}
-```
-
-### ElasticVolumes_Delete
-
-```java
-/**
- * Samples for ElasticVolumes Delete.
- */
-public final class ElasticVolumesDeleteSamples {
- /*
- * x-ms-original-file: 2026-06-15-preview/ElasticVolumes_Delete.json
- */
- /**
- * Sample code: ElasticVolumes_Delete.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void elasticVolumesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticVolumes().delete("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ElasticVolumes_Get
-
-```java
-/**
- * Samples for ElasticVolumes Get.
+ * Samples for Snapshots RestoreFiles.
*/
-public final class ElasticVolumesGetSamples {
+public final class SnapshotsRestoreFilesSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticVolumes_Get.json
+ * x-ms-original-file: 2026-07-01/Snapshots_SingleFileRestore.json
*/
/**
- * Sample code: ElasticVolumes_Get.
+ * Sample code: Snapshots_SingleFileRestore.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void elasticVolumesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticVolumes()
- .getWithResponse("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE);
+ 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);
}
}
```
-### ElasticVolumes_ListByElasticPool
+### Subvolumes_Create
```java
/**
- * Samples for ElasticVolumes ListByElasticPool.
+ * Samples for Subvolumes Create.
*/
-public final class ElasticVolumesListByElasticPoolSamples {
+public final class SubvolumesCreateSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticVolumes_ListByElasticPool.json
+ * x-ms-original-file: 2026-07-01/Subvolumes_Create.json
*/
/**
- * Sample code: ElasticVolumes_ListByElasticPool.
+ * Sample code: Subvolumes_Create.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void elasticVolumesListByElasticPool(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.elasticVolumes().listByElasticPool("myRG", "account1", "pool1", com.azure.core.util.Context.NONE);
+ public static void subvolumesCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.subvolumes()
+ .define("subvolume1")
+ .withExistingVolume("myRG", "account1", "pool1", "volume1")
+ .withPath("/subvolumePath")
+ .create();
}
}
```
-### ElasticVolumes_Revert
+### Subvolumes_Delete
```java
-import com.azure.resourcemanager.netapp.models.ElasticVolumeRevert;
-
/**
- * Samples for ElasticVolumes Revert.
+ * Samples for Subvolumes Delete.
*/
-public final class ElasticVolumesRevertSamples {
+public final class SubvolumesDeleteSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticVolumes_Revert.json
+ * x-ms-original-file: 2026-07-01/Subvolumes_Delete.json
*/
/**
- * Sample code: ElasticVolumes_Revert.
+ * Sample code: Subvolumes_Delete.
*
* @param manager Entry point to NetAppFilesManager.
*/
- 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);
+ public static void subvolumesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.subvolumes()
+ .delete("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE);
}
}
```
-### ElasticVolumes_Update
+### Subvolumes_Get
```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 ElasticVolumes Update.
+ * Samples for Subvolumes Get.
*/
-public final class ElasticVolumesUpdateSamples {
+public final class SubvolumesGetSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/ElasticVolumes_Update.json
+ * x-ms-original-file: 2026-07-01/Subvolumes_Get.json
*/
/**
- * Sample code: ElasticVolumes_Update.
+ * Sample code: Subvolumes_Get.
*
* @param manager Entry point to NetAppFilesManager.
*/
- 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();
+ public static void subvolumesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.subvolumes()
+ .getWithResponse("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE);
}
}
```
-### NetAppResource_CheckFilePathAvailability
+### Subvolumes_GetMetadata
```java
-import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest;
-
/**
- * Samples for NetAppResource CheckFilePathAvailability.
+ * Samples for Subvolumes GetMetadata.
*/
-public final class NetAppResourceCheckFilePathAvailabilitySamples {
+public final class SubvolumesGetMetadataSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/CheckFilePathAvailability.json
+ * x-ms-original-file: 2026-07-01/Subvolumes_Metadata.json
*/
/**
- * Sample code: CheckFilePathAvailability.
+ * Sample code: Subvolumes_Metadata.
*
* @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-filepath")
- .withSubnetId(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"),
- com.azure.core.util.Context.NONE);
+ public static void subvolumesMetadata(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.subvolumes()
+ .getMetadata("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE);
}
}
```
-### NetAppResource_CheckNameAvailability
+### Subvolumes_ListByVolume
```java
-import com.azure.resourcemanager.netapp.models.CheckNameResourceTypes;
-import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest;
-
/**
- * Samples for NetAppResource CheckNameAvailability.
+ * Samples for Subvolumes ListByVolume.
*/
-public final class NetAppResourceCheckNameAvailabilitySamples {
+public final class SubvolumesListByVolumeSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/CheckNameAvailability.json
+ * x-ms-original-file: 2026-07-01/Subvolumes_List.json
*/
/**
- * Sample code: CheckNameAvailability.
+ * Sample code: Subvolumes_List.
*
* @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 subvolumesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.subvolumes().listByVolume("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE);
}
}
```
-### NetAppResource_CheckQuotaAvailability
+### Subvolumes_Update
```java
-import com.azure.resourcemanager.netapp.models.CheckQuotaNameResourceTypes;
-import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest;
+import com.azure.resourcemanager.netapp.models.SubvolumeInfo;
/**
- * Samples for NetAppResource CheckQuotaAvailability.
+ * Samples for Subvolumes Update.
*/
-public final class NetAppResourceCheckQuotaAvailabilitySamples {
+public final class SubvolumesUpdateSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/CheckQuotaAvailability.json
+ * x-ms-original-file: 2026-07-01/Subvolumes_Update.json
*/
/**
- * Sample code: CheckQuotaAvailability.
+ * Sample code: Subvolumes_Update.
*
* @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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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-06-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)
- .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-data7"),
- new VolumeGroupVolumeProperties().withName("test-ora-data8")
- .withZones(Arrays.asList("1"))
+ 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.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;
+
+/**
+ * Samples for VolumeGroups Create.
+ */
+public final class VolumeGroupsCreateSamples {
+ /*
+ * x-ms-original-file: 2026-07-01/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)
@@ -4426,9 +2577,10 @@ 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")
- .withZones(Arrays.asList("1"))
+ .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)
@@ -4453,9 +2605,10 @@ 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")
- .withZones(Arrays.asList("1"))
+ .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)
@@ -4480,9 +2633,10 @@ 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")
- .withZones(Arrays.asList("1"))
+ .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)
@@ -4507,9 +2661,10 @@ 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")
- .withZones(Arrays.asList("1"))
+ .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)
@@ -4534,28 +2689,30 @@ 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")))
+ .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-06-15-preview/VolumeGroups_Create_Custom.json
+ * x-ms-original-file: 2026-07-01/VolumeGroups_Create_Oracle.json
*/
/**
- * Sample code: VolumeGroups_Create_Custom.
+ * Sample code: VolumeGroups_Create_Oracle.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void volumeGroupsCreateCustom(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ 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.fromString("CUSTOM"))
- .withApplicationIdentifier("CU2"))
+ .withApplicationType(ApplicationType.ORACLE)
+ .withApplicationIdentifier("OR2"))
.withVolumes(Arrays.asList(
- new VolumeGroupVolumeProperties().withName("test-cus-data1")
+ new VolumeGroupVolumeProperties().withName("test-ora-data1")
.withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
@@ -4581,8 +2738,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("cus-data1"),
- new VolumeGroupVolumeProperties().withName("test-cus-data2")
+ .withVolumeSpecName("ora-data1"),
+ new VolumeGroupVolumeProperties().withName("test-ora-data2")
.withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
@@ -4608,8 +2765,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("cus-data2"),
- new VolumeGroupVolumeProperties().withName("test-cus-data3")
+ .withVolumeSpecName("ora-data2"),
+ new VolumeGroupVolumeProperties().withName("test-ora-data3")
.withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
@@ -4635,8 +2792,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("cus-data3"),
- new VolumeGroupVolumeProperties().withName("test-cus-data4")
+ .withVolumeSpecName("ora-data3"),
+ new VolumeGroupVolumeProperties().withName("test-ora-data4")
.withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
@@ -4662,8 +2819,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("cus-data4"),
- new VolumeGroupVolumeProperties().withName("test-cus-data5")
+ .withVolumeSpecName("ora-data4"),
+ new VolumeGroupVolumeProperties().withName("test-ora-data5")
.withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
@@ -4689,8 +2846,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("cus-data5"),
- new VolumeGroupVolumeProperties().withName("test-cus-data6")
+ .withVolumeSpecName("ora-data5"),
+ new VolumeGroupVolumeProperties().withName("test-ora-data6")
.withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
@@ -4716,8 +2873,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("cus-data6"),
- new VolumeGroupVolumeProperties().withName("test-cus-data7")
+ .withVolumeSpecName("ora-data6"),
+ new VolumeGroupVolumeProperties().withName("test-ora-data7")
.withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
@@ -4743,8 +2900,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("cus-data7"),
- new VolumeGroupVolumeProperties().withName("test-cus-data8")
+ .withVolumeSpecName("ora-data7"),
+ new VolumeGroupVolumeProperties().withName("test-ora-data8")
.withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
@@ -4770,8 +2927,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("cus-data8"),
- new VolumeGroupVolumeProperties().withName("test-cus-data9")
+ .withVolumeSpecName("ora-data8"),
+ new VolumeGroupVolumeProperties().withName("test-ora-log")
.withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
@@ -4797,8 +2954,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("cus-data9"),
- new VolumeGroupVolumeProperties().withName("test-cus-data10")
+ .withVolumeSpecName("ora-log"),
+ new VolumeGroupVolumeProperties().withName("test-ora-log-mirror")
.withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
@@ -4824,8 +2981,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("cus-data10"),
- new VolumeGroupVolumeProperties().withName("test-cus-data11")
+ .withVolumeSpecName("ora-log-mirror"),
+ new VolumeGroupVolumeProperties().withName("test-ora-binary")
.withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
@@ -4851,8 +3008,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("cus-data11"),
- new VolumeGroupVolumeProperties().withName("test-cus-data12")
+ .withVolumeSpecName("ora-binary"),
+ new VolumeGroupVolumeProperties().withName("test-ora-backup")
.withZones(Arrays.asList("1"))
.withCreationToken("fakeTokenPlaceholder")
.withServiceLevel(ServiceLevel.PREMIUM)
@@ -4878,230 +3035,7 @@ public final class VolumeGroupsCreateSamples {
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
- .withVolumeSpecName("cus-data12")))
- .create();
- }
-
- /*
- * x-ms-original-file: 2026-06-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")))
+ .withVolumeSpecName("ora-backup")))
.create();
}
}
@@ -5115,7 +3049,7 @@ public final class VolumeGroupsCreateSamples {
*/
public final class VolumeGroupsDeleteSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/VolumeGroups_Delete.json
+ * x-ms-original-file: 2026-07-01/VolumeGroups_Delete.json
*/
/**
* Sample code: VolumeGroups_Delete.
@@ -5136,19 +3070,7 @@ public final class VolumeGroupsDeleteSamples {
*/
public final class VolumeGroupsGetSamples {
/*
- * x-ms-original-file: 2026-06-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-06-15-preview/VolumeGroups_Get_SapHana.json
+ * x-ms-original-file: 2026-07-01/VolumeGroups_Get_SapHana.json
*/
/**
* Sample code: VolumeGroups_Get_SapHana.
@@ -5160,19 +3082,7 @@ public final class VolumeGroupsGetSamples {
}
/*
- * x-ms-original-file: 2026-06-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-06-15-preview/VolumeGroups_Get_Oracle.json
+ * x-ms-original-file: 2026-07-01/VolumeGroups_Get_Oracle.json
*/
/**
* Sample code: VolumeGroups_Get_Oracle.
@@ -5193,19 +3103,7 @@ public final class VolumeGroupsGetSamples {
*/
public final class VolumeGroupsListByNetAppAccountSamples {
/*
- * x-ms-original-file: 2026-06-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-06-15-preview/VolumeGroups_List_Oracle.json
+ * x-ms-original-file: 2026-07-01/VolumeGroups_List_Oracle.json
*/
/**
* Sample code: VolumeGroups_List_Oracle.
@@ -5217,7 +3115,7 @@ public final class VolumeGroupsListByNetAppAccountSamples {
}
/*
- * x-ms-original-file: 2026-06-15-preview/VolumeGroups_List_SapHana.json
+ * x-ms-original-file: 2026-07-01/VolumeGroups_List_SapHana.json
*/
/**
* Sample code: VolumeGroups_List_SapHana.
@@ -5240,7 +3138,7 @@ import com.azure.resourcemanager.netapp.models.QuotaType;
*/
public final class VolumeQuotaRulesCreateSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/VolumeQuotaRules_Create.json
+ * x-ms-original-file: 2026-07-01/VolumeQuotaRules_Create.json
*/
/**
* Sample code: VolumeQuotaRules_Create.
@@ -5268,7 +3166,7 @@ public final class VolumeQuotaRulesCreateSamples {
*/
public final class VolumeQuotaRulesDeleteSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/VolumeQuotaRules_Delete.json
+ * x-ms-original-file: 2026-07-01/VolumeQuotaRules_Delete.json
*/
/**
* Sample code: VolumeQuotaRules_Delete.
@@ -5290,7 +3188,7 @@ public final class VolumeQuotaRulesDeleteSamples {
*/
public final class VolumeQuotaRulesGetSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/VolumeQuotaRules_Get.json
+ * x-ms-original-file: 2026-07-01/VolumeQuotaRules_Get.json
*/
/**
* Sample code: VolumeQuotaRules_Get.
@@ -5313,7 +3211,7 @@ public final class VolumeQuotaRulesGetSamples {
*/
public final class VolumeQuotaRulesListByVolumeSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/VolumeQuotaRules_List.json
+ * x-ms-original-file: 2026-07-01/VolumeQuotaRules_List.json
*/
/**
* Sample code: VolumeQuotaRules_List.
@@ -5337,7 +3235,7 @@ import com.azure.resourcemanager.netapp.models.VolumeQuotaRule;
*/
public final class VolumeQuotaRulesUpdateSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/VolumeQuotaRules_Update.json
+ * x-ms-original-file: 2026-07-01/VolumeQuotaRules_Update.json
*/
/**
* Sample code: VolumeQuotaRules_Update.
@@ -5362,7 +3260,7 @@ public final class VolumeQuotaRulesUpdateSamples {
*/
public final class VolumesAuthorizeExternalReplicationSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_AuthorizeExternalReplication.json
+ * x-ms-original-file: 2026-07-01/Volumes_AuthorizeExternalReplication.json
*/
/**
* Sample code: Volumes_AuthorizeExternalReplication.
@@ -5387,7 +3285,7 @@ import com.azure.resourcemanager.netapp.models.AuthorizeRequest;
*/
public final class VolumesAuthorizeReplicationSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_AuthorizeReplication.json
+ * x-ms-original-file: 2026-07-01/Volumes_AuthorizeReplication.json
*/
/**
* Sample code: Volumes_AuthorizeReplication.
@@ -5414,7 +3312,7 @@ import com.azure.resourcemanager.netapp.models.BreakFileLocksRequest;
*/
public final class VolumesBreakFileLocksSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_BreakFileLocks.json
+ * x-ms-original-file: 2026-07-01/Volumes_BreakFileLocks.json
*/
/**
* Sample code: Volumes_BreakFileLocks.
@@ -5440,7 +3338,7 @@ import com.azure.resourcemanager.netapp.models.BreakReplicationRequest;
*/
public final class VolumesBreakReplicationSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_BreakReplication.json
+ * x-ms-original-file: 2026-07-01/Volumes_BreakReplication.json
*/
/**
* Sample code: Volumes_BreakReplication.
@@ -5465,7 +3363,7 @@ import com.azure.resourcemanager.netapp.models.ServiceLevel;
*/
public final class VolumesCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_CreateOrUpdate.json
+ * x-ms-original-file: 2026-07-01/Volumes_CreateOrUpdate.json
*/
/**
* Sample code: Volumes_CreateOrUpdate.
@@ -5495,7 +3393,7 @@ public final class VolumesCreateOrUpdateSamples {
*/
public final class VolumesDeleteSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_Delete.json
+ * x-ms-original-file: 2026-07-01/Volumes_Delete.json
*/
/**
* Sample code: Volumes_Delete.
@@ -5516,7 +3414,7 @@ public final class VolumesDeleteSamples {
*/
public final class VolumesDeleteReplicationSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_DeleteReplication.json
+ * x-ms-original-file: 2026-07-01/Volumes_DeleteReplication.json
*/
/**
* Sample code: Volumes_DeleteReplication.
@@ -5537,7 +3435,7 @@ public final class VolumesDeleteReplicationSamples {
*/
public final class VolumesFinalizeExternalReplicationSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_FinalizeExternalReplication.json
+ * x-ms-original-file: 2026-07-01/Volumes_FinalizeExternalReplication.json
*/
/**
* Sample code: Volumes_FinalizeExternalReplication.
@@ -5559,7 +3457,7 @@ public final class VolumesFinalizeExternalReplicationSamples {
*/
public final class VolumesFinalizeRelocationSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_FinalizeRelocation.json
+ * x-ms-original-file: 2026-07-01/Volumes_FinalizeRelocation.json
*/
/**
* Sample code: Volumes_FinalizeRelocation.
@@ -5580,19 +3478,7 @@ public final class VolumesFinalizeRelocationSamples {
*/
public final class VolumesGetSamples {
/*
- * x-ms-original-file: 2026-06-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-06-15-preview/Volumes_Get.json
+ * x-ms-original-file: 2026-07-01/Volumes_Get.json
*/
/**
* Sample code: Volumes_Get.
@@ -5613,19 +3499,7 @@ public final class VolumesGetSamples {
*/
public final class VolumesListSamples {
/*
- * x-ms-original-file: 2026-06-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-06-15-preview/Volumes_List.json
+ * x-ms-original-file: 2026-07-01/Volumes_List.json
*/
/**
* Sample code: Volumes_List.
@@ -5648,7 +3522,7 @@ import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest;
*/
public final class VolumesListGetGroupIdListForLdapUserSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/GroupIdListForLDAPUser.json
+ * x-ms-original-file: 2026-07-01/GroupIdListForLDAPUser.json
*/
/**
* Sample code: GetGroupIdListForUser.
@@ -5672,7 +3546,7 @@ public final class VolumesListGetGroupIdListForLdapUserSamples {
*/
public final class VolumesListQuotaReportSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_ListQuotaReport.json
+ * x-ms-original-file: 2026-07-01/Volumes_ListQuotaReport.json
*/
/**
* Sample code: ListQuotaReport.
@@ -5697,7 +3571,7 @@ import com.azure.resourcemanager.netapp.models.ListReplicationsRequest;
*/
public final class VolumesListReplicationsSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_ListReplications.json
+ * x-ms-original-file: 2026-07-01/Volumes_ListReplications.json
*/
/**
* Sample code: Volumes_ListReplications.
@@ -5723,7 +3597,7 @@ import java.util.Arrays;
*/
public final class VolumesPeerExternalClusterSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_PeerExternalCluster.json
+ * x-ms-original-file: 2026-07-01/Volumes_PeerExternalCluster.json
*/
/**
* Sample code: Volumes_PeerExternalCluster.
@@ -5748,7 +3622,7 @@ public final class VolumesPeerExternalClusterSamples {
*/
public final class VolumesPerformReplicationTransferSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_PerformReplicationTransfer.json
+ * x-ms-original-file: 2026-07-01/Volumes_PerformReplicationTransfer.json
*/
/**
* Sample code: Volumes_PerformReplicationTransfer.
@@ -5772,7 +3646,7 @@ import com.azure.resourcemanager.netapp.models.PoolChangeRequest;
*/
public final class VolumesPoolChangeSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_PoolChange.json
+ * x-ms-original-file: 2026-07-01/Volumes_PoolChange.json
*/
/**
* Sample code: Volumes_PoolChange.
@@ -5796,7 +3670,7 @@ public final class VolumesPoolChangeSamples {
*/
public final class VolumesPopulateAvailabilityZoneSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_PopulateAvailabilityZones.json
+ * x-ms-original-file: 2026-07-01/Volumes_PopulateAvailabilityZones.json
*/
/**
* Sample code: Volumes_PopulateAvailabilityZones.
@@ -5818,7 +3692,7 @@ public final class VolumesPopulateAvailabilityZoneSamples {
*/
public final class VolumesReInitializeReplicationSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_ReInitializeReplication.json
+ * x-ms-original-file: 2026-07-01/Volumes_ReInitializeReplication.json
*/
/**
* Sample code: Volumes_ReInitializeReplication.
@@ -5842,7 +3716,7 @@ import com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest;
*/
public final class VolumesReestablishReplicationSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_ReestablishReplication.json
+ * x-ms-original-file: 2026-07-01/Volumes_ReestablishReplication.json
*/
/**
* Sample code: Volumes_ReestablishReplication.
@@ -5869,7 +3743,7 @@ import com.azure.resourcemanager.netapp.models.RelocateVolumeRequest;
*/
public final class VolumesRelocateSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_Relocate.json
+ * x-ms-original-file: 2026-07-01/Volumes_Relocate.json
*/
/**
* Sample code: Volumes_Relocate.
@@ -5892,7 +3766,7 @@ public final class VolumesRelocateSamples {
*/
public final class VolumesReplicationStatusSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_ReplicationStatus.json
+ * x-ms-original-file: 2026-07-01/Volumes_ReplicationStatus.json
*/
/**
* Sample code: Volumes_ReplicationStatus.
@@ -5914,7 +3788,7 @@ public final class VolumesReplicationStatusSamples {
*/
public final class VolumesResetCifsPasswordSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_ResetCifsPassword.json
+ * x-ms-original-file: 2026-07-01/Volumes_ResetCifsPassword.json
*/
/**
* Sample code: Volumes_ResetCifsPassword.
@@ -5935,7 +3809,7 @@ public final class VolumesResetCifsPasswordSamples {
*/
public final class VolumesResyncReplicationSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_ResyncReplication.json
+ * x-ms-original-file: 2026-07-01/Volumes_ResyncReplication.json
*/
/**
* Sample code: Volumes_ResyncReplication.
@@ -5958,7 +3832,7 @@ import com.azure.resourcemanager.netapp.models.VolumeRevert;
*/
public final class VolumesRevertSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_Revert.json
+ * x-ms-original-file: 2026-07-01/Volumes_Revert.json
*/
/**
* Sample code: Volumes_Revert.
@@ -5982,7 +3856,7 @@ public final class VolumesRevertSamples {
*/
public final class VolumesRevertRelocationSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_RevertRelocation.json
+ * x-ms-original-file: 2026-07-01/Volumes_RevertRelocation.json
*/
/**
* Sample code: Volumes_RevertRelocation.
@@ -6003,7 +3877,7 @@ public final class VolumesRevertRelocationSamples {
*/
public final class VolumesSplitCloneFromParentSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_SplitClone.json
+ * x-ms-original-file: 2026-07-01/Volumes_SplitClone.json
*/
/**
* Sample code: Volumes_SplitClone.
@@ -6027,7 +3901,7 @@ import com.azure.resourcemanager.netapp.models.Volume;
*/
public final class VolumesUpdateSamples {
/*
- * x-ms-original-file: 2026-06-15-preview/Volumes_Update.json
+ * x-ms-original-file: 2026-07-01/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 28e9602fac095..8ea72cd305c3d 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/pom.xml
+++ b/sdk/netapp/azure-resourcemanager-netapp/pom.xml
@@ -14,11 +14,11 @@
com.azure.resourcemanager
azure-resourcemanager-netapp
- 2.5.0-beta.3
+ 2.5.0
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-06-15-preview.
+ 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-07-01.
https://github.com/Azure/azure-sdk-for-java
@@ -45,7 +45,7 @@
UTF-8
0
0
- true
+ false
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 c9dd2c1cdbd6a..cded158586b5c 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,7 +26,6 @@
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;
@@ -35,14 +34,6 @@
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;
@@ -59,7 +50,6 @@
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;
@@ -68,14 +58,6 @@
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;
@@ -129,24 +111,6 @@ 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;
@@ -539,116 +503,6 @@ 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/ActiveDirectoryConfigsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ActiveDirectoryConfigsClient.java
deleted file mode 100644
index ab9def2b09538..0000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ActiveDirectoryConfigsClient.java
+++ /dev/null
@@ -1,272 +0,0 @@
-// 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
deleted file mode 100644
index 1b42177183dbc..0000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticAccountsClient.java
+++ /dev/null
@@ -1,269 +0,0 @@
-// 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
deleted file mode 100644
index 12f8ec5cce35b..0000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupPoliciesClient.java
+++ /dev/null
@@ -1,269 +0,0 @@
-// 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
deleted file mode 100644
index 7f9dfbb74b56c..0000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupVaultsClient.java
+++ /dev/null
@@ -1,269 +0,0 @@
-// 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
deleted file mode 100644
index ea1cbfc596b46..0000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupsClient.java
+++ /dev/null
@@ -1,284 +0,0 @@
-// 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
deleted file mode 100644
index bdf6643876d8f..0000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticCapacityPoolsClient.java
+++ /dev/null
@@ -1,370 +0,0 @@
-// 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
deleted file mode 100644
index 062bc0b19bb4b..0000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticSnapshotPoliciesClient.java
+++ /dev/null
@@ -1,301 +0,0 @@
-// 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
deleted file mode 100644
index b2021a544dba8..0000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticSnapshotsClient.java
+++ /dev/null
@@ -1,229 +0,0 @@
-// 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
deleted file mode 100644
index b273fd6e03d07..0000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticVolumesClient.java
+++ /dev/null
@@ -1,355 +0,0 @@
-// 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 57bd68b86eace..39883afaff97c 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,69 +137,6 @@ 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 27e42ab8104f9..3f77b6afdc9e0 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,7 +11,6 @@
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;
@@ -32,11 +31,6 @@ public final class AccountProperties implements JsonSerializable activeDirectories;
- /*
- * Entra ID configuration for the account.
- */
- private EntraIdConfig entraIdConfig;
-
/*
* Encryption settings
*/
@@ -98,26 +92,6 @@ public AccountProperties withActiveDirectories(List 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.
*
@@ -208,9 +182,6 @@ public void validate() {
if (activeDirectories() != null) {
activeDirectories().forEach(e -> e.validate());
}
- if (entraIdConfig() != null) {
- entraIdConfig().validate();
- }
if (encryption() != null) {
encryption().validate();
}
@@ -227,7 +198,6 @@ 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);
@@ -255,8 +225,6 @@ 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)) {
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
index fa5e77c84b13a..12643851e7a7f 100644
--- 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
@@ -9,9 +9,8 @@
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.AccountEncryptionPatch;
+import com.azure.resourcemanager.netapp.models.ActiveDirectoryPatch;
import com.azure.resourcemanager.netapp.models.LdapConfigurationPatch;
import java.io.IOException;
import java.util.List;
@@ -24,23 +23,18 @@ public final class AccountPropertiesPatch implements JsonSerializable activeDirectories;
+ private List activeDirectories;
/*
* Encryption settings
*/
- private AccountEncryption encryption;
+ private AccountEncryptionPatch 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;
+ private String nfsV4IDDomain;
/*
* LDAP Configuration for the account.
@@ -58,7 +52,7 @@ public AccountPropertiesPatch() {
*
* @return the activeDirectories value.
*/
- public List activeDirectories() {
+ public List activeDirectories() {
return this.activeDirectories;
}
@@ -68,7 +62,7 @@ public List activeDirectories() {
* @param activeDirectories the activeDirectories value to set.
* @return the AccountPropertiesPatch object itself.
*/
- public AccountPropertiesPatch withActiveDirectories(List activeDirectories) {
+ public AccountPropertiesPatch withActiveDirectories(List activeDirectories) {
this.activeDirectories = activeDirectories;
return this;
}
@@ -78,7 +72,7 @@ public AccountPropertiesPatch withActiveDirectories(List active
*
* @return the encryption value.
*/
- public AccountEncryption encryption() {
+ public AccountEncryptionPatch encryption() {
return this.encryption;
}
@@ -88,50 +82,30 @@ public AccountEncryption encryption() {
* @param encryption the encryption value to set.
* @return the AccountPropertiesPatch object itself.
*/
- public AccountPropertiesPatch withEncryption(AccountEncryption encryption) {
+ public AccountPropertiesPatch withEncryption(AccountEncryptionPatch encryption) {
this.encryption = encryption;
return this;
}
/**
- * Get the nfsV4IdDomain property: Domain for NFSv4 user ID mapping. This property will be set for all NetApp
+ * 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.
+ * @return the nfsV4IDDomain value.
*/
- public String nfsV4IdDomain() {
- return this.nfsV4IdDomain;
+ public String nfsV4IDDomain() {
+ return this.nfsV4IDDomain;
}
/**
- * Set the nfsV4IdDomain property: Domain for NFSv4 user ID mapping. This property will be set for all NetApp
+ * 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.
+ * @param nfsV4IDDomain the nfsV4IDDomain value to set.
* @return the AccountPropertiesPatch object itself.
*/
- public AccountPropertiesPatch withEntraIdConfig(EntraIdConfigPatch entraIdConfig) {
- this.entraIdConfig = entraIdConfig;
+ public AccountPropertiesPatch withNfsV4IDDomain(String nfsV4IDDomain) {
+ this.nfsV4IDDomain = nfsV4IDDomain;
return this;
}
@@ -167,9 +141,6 @@ public void validate() {
if (encryption() != null) {
encryption().validate();
}
- if (entraIdConfig() != null) {
- entraIdConfig().validate();
- }
if (ldapConfiguration() != null) {
ldapConfiguration().validate();
}
@@ -184,8 +155,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
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.writeStringField("nfsV4IDDomain", this.nfsV4IDDomain);
jsonWriter.writeJsonField("ldapConfiguration", this.ldapConfiguration);
return jsonWriter.writeEndObject();
}
@@ -206,15 +176,13 @@ public static AccountPropertiesPatch fromJson(JsonReader jsonReader) throws IOEx
reader.nextToken();
if ("activeDirectories".equals(fieldName)) {
- List activeDirectories
- = reader.readArray(reader1 -> ActiveDirectory.fromJson(reader1));
+ List activeDirectories
+ = reader.readArray(reader1 -> ActiveDirectoryPatch.fromJson(reader1));
deserializedAccountPropertiesPatch.activeDirectories = activeDirectories;
} else if ("encryption".equals(fieldName)) {
- deserializedAccountPropertiesPatch.encryption = AccountEncryption.fromJson(reader);
+ deserializedAccountPropertiesPatch.encryption = AccountEncryptionPatch.fromJson(reader);
} else if ("nfsV4IDDomain".equals(fieldName)) {
- deserializedAccountPropertiesPatch.nfsV4IdDomain = reader.getString();
- } else if ("entraIdConfig".equals(fieldName)) {
- deserializedAccountPropertiesPatch.entraIdConfig = EntraIdConfigPatch.fromJson(reader);
+ deserializedAccountPropertiesPatch.nfsV4IDDomain = reader.getString();
} else if ("ldapConfiguration".equals(fieldName)) {
deserializedAccountPropertiesPatch.ldapConfiguration = LdapConfigurationPatch.fromJson(reader);
} else {
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
deleted file mode 100644
index fdbfdf2c2060a..0000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ActiveDirectoryConfigInner.java
+++ /dev/null
@@ -1,245 +0,0 @@
-// 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 254bfbbada50b..4ec65b42aeb2f 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 512GiB (549755813888 bytes) or
- * in 1TiB chunks (value must be multiple of 1099511627776).
+ * Get the size property: Provisioned size of the pool (in bytes). Allowed values are 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 512GiB (549755813888 bytes) or
- * in 1TiB chunks (value must be multiple of 1099511627776).
+ * Set the size property: Provisioned size of the pool (in bytes). Allowed values are 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
deleted file mode 100644
index e510e0cead5c1..0000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckElasticResourceAvailabilityResponseInner.java
+++ /dev/null
@@ -1,129 +0,0 @@
-// 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
deleted file mode 100644
index fec53001fe1a0..0000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticAccountInner.java
+++ /dev/null
@@ -1,246 +0,0 @@
-// 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
deleted file mode 100644
index 355c759d9ec70..0000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupInner.java
+++ /dev/null
@@ -1,166 +0,0 @@
-// 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
deleted file mode 100644
index 46c2fe6bfa0d5..0000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupPolicyInner.java
+++ /dev/null
@@ -1,214 +0,0 @@
-// 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
deleted file mode 100644
index 578bd49e28cd4..0000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupVaultInner.java
+++ /dev/null
@@ -1,214 +0,0 @@
-// 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
deleted file mode 100644
index 9440f6af3ca57..0000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticCapacityPoolInner.java
+++ /dev/null
@@ -1,244 +0,0 @@
-// 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
deleted file mode 100644
index 0e81120fbefd6..0000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticSnapshotInner.java
+++ /dev/null
@@ -1,166 +0,0 @@
-// 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
deleted file mode 100644
index 2aa9cb9185f20..0000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticSnapshotPolicyInner.java
+++ /dev/null
@@ -1,215 +0,0 @@
-// 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
deleted file mode 100644
index 53b43ec7950f7..0000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticVolumeInner.java
+++ /dev/null
@@ -1,244 +0,0 @@
-// 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 c55ef862ec674..fa4ebd7949dc8 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,7 +12,6 @@
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;
@@ -197,29 +196,6 @@ 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.
*
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 f381063299987..a7f3357ea72ae 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 512GiB (549755813888 bytes) or in 1TiB chunks (value
- * must be multiple of 1099511627776).
+ * Provisioned size of the pool (in bytes). Allowed values are 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 512GiB (549755813888 bytes) or
- * in 1TiB chunks (value must be multiple of 1099511627776).
+ * Get the size property: Provisioned size of the pool (in bytes). Allowed values are 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 512GiB (549755813888 bytes) or
- * in 1TiB chunks (value must be multiple of 1099511627776).
+ * Set the size property: Provisioned size of the pool (in bytes). Allowed values are 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 f9c2741a0671d..25b7c2934f0f8 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 512GiB (549755813888 bytes) or in 1TiB chunks (value
- * must be multiple of 1099511627776).
+ * Provisioned size of the pool (in bytes). Allowed values are 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 512GiB (549755813888 bytes) or
- * in 1TiB chunks (value must be multiple of 1099511627776).
+ * Get the size property: Provisioned size of the pool (in bytes). Allowed values are 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 512GiB (549755813888 bytes) or
- * in 1TiB chunks (value must be multiple of 1099511627776).
+ * Set the size property: Provisioned size of the pool (in bytes). Allowed values are 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 636c849e8237b..dca3ce31427c0 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,8 +19,6 @@
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;
@@ -28,7 +26,6 @@
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;
@@ -238,11 +235,9 @@ 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.
- * For extra large volumes, valid values are in the range 2400GiB to 7200TiB. 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. Values
+ * expressed in bytes as multiples of 1 GiB.
*
* @return the usageThreshold value.
*/
@@ -252,11 +247,9 @@ 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.
- * For extra large volumes, valid values are in the range 2400GiB to 7200TiB. 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. Values
+ * expressed in bytes as multiples of 1 GiB.
*
* @param usageThreshold the usageThreshold value to set.
* @return the VolumeInner object itself.
@@ -874,29 +867,6 @@ 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.
*
@@ -1358,37 +1328,6 @@ 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.
*
@@ -1407,29 +1346,6 @@ 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 d2c970f6fa934..ad12e728cbfe0 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,10 +31,8 @@ public final class VolumePatchProperties implements JsonSerializable 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
deleted file mode 100644
index 0b1642b1e1788..0000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigsClientImpl.java
+++ /dev/null
@@ -1,1468 +0,0 @@
-// 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
deleted file mode 100644
index 57f4f5033f339..0000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigsImpl.java
+++ /dev/null
@@ -1,145 +0,0 @@
-// 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 listByResourceGroup(String resourceGroupName, Context context) {
- PagedIterable inner
- = this.serviceClient().listByResourceGroup(resourceGroupName, context);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new ActiveDirectoryConfigImpl(inner1, this.manager()));
- }
-
- public PagedIterable list() {
- PagedIterable inner = this.serviceClient().list();
- return ResourceManagerUtils.mapPage(inner, inner1 -> new ActiveDirectoryConfigImpl(inner1, this.manager()));
- }
-
- public PagedIterable list(Context context) {
- PagedIterable inner = this.serviceClient().list(context);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new ActiveDirectoryConfigImpl(inner1, this.manager()));
- }
-
- public ActiveDirectoryConfig getById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String activeDirectoryConfigName = ResourceManagerUtils.getValueFromIdByName(id, "activeDirectoryConfigs");
- if (activeDirectoryConfigName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
- .format("The resource ID '%s' is not valid. Missing path segment 'activeDirectoryConfigs'.", id)));
- }
- return this.getByResourceGroupWithResponse(resourceGroupName, activeDirectoryConfigName, Context.NONE)
- .getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String activeDirectoryConfigName = ResourceManagerUtils.getValueFromIdByName(id, "activeDirectoryConfigs");
- if (activeDirectoryConfigName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
- .format("The resource ID '%s' is not valid. Missing path segment 'activeDirectoryConfigs'.", id)));
- }
- return this.getByResourceGroupWithResponse(resourceGroupName, activeDirectoryConfigName, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String activeDirectoryConfigName = ResourceManagerUtils.getValueFromIdByName(id, "activeDirectoryConfigs");
- if (activeDirectoryConfigName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
- .format("The resource ID '%s' is not valid. Missing path segment 'activeDirectoryConfigs'.", id)));
- }
- this.delete(resourceGroupName, activeDirectoryConfigName, Context.NONE);
- }
-
- public void deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String activeDirectoryConfigName = ResourceManagerUtils.getValueFromIdByName(id, "activeDirectoryConfigs");
- if (activeDirectoryConfigName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
- .format("The resource ID '%s' is not valid. Missing path segment 'activeDirectoryConfigs'.", id)));
- }
- this.delete(resourceGroupName, activeDirectoryConfigName, context);
- }
-
- private ActiveDirectoryConfigsClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.netapp.NetAppFilesManager manager() {
- return this.serviceManager;
- }
-
- public ActiveDirectoryConfigImpl define(String name) {
- return new ActiveDirectoryConfigImpl(name, this.manager());
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CheckElasticResourceAvailabilityResponseImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CheckElasticResourceAvailabilityResponseImpl.java
deleted file mode 100644
index 2b7bfcf990834..0000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CheckElasticResourceAvailabilityResponseImpl.java
+++ /dev/null
@@ -1,42 +0,0 @@
-// 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.resourcemanager.netapp.fluent.models.CheckElasticResourceAvailabilityResponseInner;
-import com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityReason;
-import com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityResponse;
-import com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityStatus;
-
-public final class CheckElasticResourceAvailabilityResponseImpl implements CheckElasticResourceAvailabilityResponse {
- private CheckElasticResourceAvailabilityResponseInner innerObject;
-
- private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager;
-
- CheckElasticResourceAvailabilityResponseImpl(CheckElasticResourceAvailabilityResponseInner innerObject,
- com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- }
-
- public CheckElasticResourceAvailabilityStatus isAvailable() {
- return this.innerModel().isAvailable();
- }
-
- public CheckElasticResourceAvailabilityReason reason() {
- return this.innerModel().reason();
- }
-
- public String message() {
- return this.innerModel().message();
- }
-
- public CheckElasticResourceAvailabilityResponseInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.netapp.NetAppFilesManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountImpl.java
deleted file mode 100644
index 11bd2660a1ff0..0000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountImpl.java
+++ /dev/null
@@ -1,202 +0,0 @@
-// 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.ElasticAccountInner;
-import com.azure.resourcemanager.netapp.models.ElasticAccount;
-import com.azure.resourcemanager.netapp.models.ElasticAccountProperties;
-import com.azure.resourcemanager.netapp.models.ElasticAccountUpdate;
-import com.azure.resourcemanager.netapp.models.ElasticAccountUpdateProperties;
-import com.azure.resourcemanager.netapp.models.ManagedServiceIdentity;
-import java.util.Collections;
-import java.util.Map;
-
-public final class ElasticAccountImpl implements ElasticAccount, ElasticAccount.Definition, ElasticAccount.Update {
- private ElasticAccountInner 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 ElasticAccountProperties 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 ElasticAccountInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.netapp.NetAppFilesManager manager() {
- return this.serviceManager;
- }
-
- private String resourceGroupName;
-
- private String accountName;
-
- private ElasticAccountUpdate updateBody;
-
- public ElasticAccountImpl withExistingResourceGroup(String resourceGroupName) {
- this.resourceGroupName = resourceGroupName;
- return this;
- }
-
- public ElasticAccount create() {
- this.innerObject = serviceManager.serviceClient()
- .getElasticAccounts()
- .createOrUpdate(resourceGroupName, accountName, this.innerModel(), Context.NONE);
- return this;
- }
-
- public ElasticAccount create(Context context) {
- this.innerObject = serviceManager.serviceClient()
- .getElasticAccounts()
- .createOrUpdate(resourceGroupName, accountName, this.innerModel(), context);
- return this;
- }
-
- ElasticAccountImpl(String name, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) {
- this.innerObject = new ElasticAccountInner();
- this.serviceManager = serviceManager;
- this.accountName = name;
- }
-
- public ElasticAccountImpl update() {
- this.updateBody = new ElasticAccountUpdate();
- return this;
- }
-
- public ElasticAccount apply() {
- this.innerObject = serviceManager.serviceClient()
- .getElasticAccounts()
- .update(resourceGroupName, accountName, updateBody, Context.NONE);
- return this;
- }
-
- public ElasticAccount apply(Context context) {
- this.innerObject = serviceManager.serviceClient()
- .getElasticAccounts()
- .update(resourceGroupName, accountName, updateBody, context);
- return this;
- }
-
- ElasticAccountImpl(ElasticAccountInner innerObject,
- com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.accountName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticAccounts");
- }
-
- public ElasticAccount refresh() {
- this.innerObject = serviceManager.serviceClient()
- .getElasticAccounts()
- .getByResourceGroupWithResponse(resourceGroupName, accountName, Context.NONE)
- .getValue();
- return this;
- }
-
- public ElasticAccount refresh(Context context) {
- this.innerObject = serviceManager.serviceClient()
- .getElasticAccounts()
- .getByResourceGroupWithResponse(resourceGroupName, accountName, context)
- .getValue();
- return this;
- }
-
- public ElasticAccountImpl withRegion(Region location) {
- this.innerModel().withLocation(location.toString());
- return this;
- }
-
- public ElasticAccountImpl withRegion(String location) {
- this.innerModel().withLocation(location);
- return this;
- }
-
- public ElasticAccountImpl withTags(Map tags) {
- if (isInCreateMode()) {
- this.innerModel().withTags(tags);
- return this;
- } else {
- this.updateBody.withTags(tags);
- return this;
- }
- }
-
- public ElasticAccountImpl withProperties(ElasticAccountProperties properties) {
- this.innerModel().withProperties(properties);
- return this;
- }
-
- public ElasticAccountImpl withIdentity(ManagedServiceIdentity identity) {
- if (isInCreateMode()) {
- this.innerModel().withIdentity(identity);
- return this;
- } else {
- this.updateBody.withIdentity(identity);
- return this;
- }
- }
-
- public ElasticAccountImpl withProperties(ElasticAccountUpdateProperties 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/ElasticAccountsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountsClientImpl.java
deleted file mode 100644
index 1f3905cf94b35..0000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountsClientImpl.java
+++ /dev/null
@@ -1,1427 +0,0 @@
-// 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.ElasticAccountsClient;
-import com.azure.resourcemanager.netapp.fluent.models.ElasticAccountInner;
-import com.azure.resourcemanager.netapp.implementation.models.ElasticAccountListResult;
-import com.azure.resourcemanager.netapp.models.ElasticAccountUpdate;
-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 ElasticAccountsClient.
- */
-public final class ElasticAccountsClientImpl implements ElasticAccountsClient {
- /**
- * The proxy service used to perform REST calls.
- */
- private final ElasticAccountsService service;
-
- /**
- * The service client containing this operation class.
- */
- private final NetAppManagementClientImpl client;
-
- /**
- * Initializes an instance of ElasticAccountsClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- ElasticAccountsClientImpl(NetAppManagementClientImpl client) {
- this.service
- = RestProxy.create(ElasticAccountsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for NetAppManagementClientElasticAccounts to be used by the proxy service
- * to perform REST calls.
- */
- @Host("{endpoint}")
- @ServiceInterface(name = "NetAppManagementClientElasticAccounts")
- public interface ElasticAccountsService {
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}")
- @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("accountName") String accountName,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}")
- @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("accountName") String accountName,
- @HeaderParam("Accept") String accept, Context context);
-
- @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}")
- @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("accountName") String accountName,
- @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
- @BodyParam("application/json") ElasticAccountInner body, Context context);
-
- @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}")
- @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("accountName") String accountName,
- @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
- @BodyParam("application/json") ElasticAccountInner body, Context context);
-
- @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}")
- @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("accountName") String accountName,
- @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
- @BodyParam("application/json") ElasticAccountUpdate body, Context context);
-
- @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}")
- @ExpectedResponses({ 200, 202 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Response